Skip to content

Add mgmt VRF support.#3299

Merged
qiluo-msft merged 15 commits intosonic-net:masterfrom
liuh-80:dev/liuh/zmq_vrf
Oct 24, 2024
Merged

Add mgmt VRF support.#3299
qiluo-msft merged 15 commits intosonic-net:masterfrom
liuh-80:dev/liuh/zmq_vrf

Conversation

@liuh-80
Copy link
Copy Markdown
Contributor

@liuh-80 liuh-80 commented Sep 25, 2024

Add mgmt VRF support.

Why I did it

Fix following issue:
sonic-net/sonic-buildimage#19638

Work item tracking
  • Microsoft ADO: 29064735

How I did it

Add VRF parameter and bind ZMQ to VRF.

How to verify it

Pass all UT.
Manually verify issue fixed.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Add mgmt VRF support.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@liuh-80
Copy link
Copy Markdown
Contributor Author

liuh-80 commented Sep 25, 2024

This PR depends on sonic-net/sonic-swss-common#920 merge first.

@liuh-80
Copy link
Copy Markdown
Contributor Author

liuh-80 commented Sep 30, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80
Copy link
Copy Markdown
Contributor Author

liuh-80 commented Oct 8, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80
Copy link
Copy Markdown
Contributor Author

liuh-80 commented Oct 11, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

case 'v':
if (optarg)
{
vrf = optarg;
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is it used? #Closed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When mgmt VRF feature enabled, orchagent need start with "-v mgmt" parameter. "mgmt" is the VRF name.

Here is the code change:
sonic-net/sonic-buildimage#20345

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part of code can't cover by VS test because VS test does not enable VRF.
There already VRF test case failed in sonic-mgmt, and will fix by this PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add a test case for code coverage

@liuh-80
Copy link
Copy Markdown
Contributor Author

liuh-80 commented Oct 16, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80 liuh-80 marked this pull request as ready for review October 17, 2024 00:14
@liuh-80 liuh-80 requested a review from prsunny as a code owner October 17, 2024 00:14
@liuh-80 liuh-80 requested a review from Pterosaur October 17, 2024 00:14
Copy link
Copy Markdown
Contributor

@Pterosaur Pterosaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks good to me, but I'm not sure whether there is a same issue on the Redis channel. Should we have an ADO for tracking it?
@prsunny @qiluo-msft

@liuh-80
Copy link
Copy Markdown
Contributor Author

liuh-80 commented Oct 18, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80
Copy link
Copy Markdown
Contributor Author

liuh-80 commented Oct 23, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80
Copy link
Copy Markdown
Contributor Author

liuh-80 commented Oct 23, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft merged commit bd945f6 into sonic-net:master Oct 24, 2024
stepanblyschak pushed a commit to stepanblyschak/sonic-swss that referenced this pull request Nov 13, 2024
Add mgmt VRF support.

#### Why I did it
Fix following issue:
sonic-net/sonic-buildimage#19638

### How I did it
Add VRF parameter and bind ZMQ to VRF.

#### How to verify it
Pass all UT.
Manually verify issue fixed.


### Description for the changelog
Add mgmt VRF support.
divyachandralekha pushed a commit to divyachandralekha/sonic-swss that referenced this pull request Dec 12, 2024
Add mgmt VRF support.

#### Why I did it
Fix following issue:
sonic-net/sonic-buildimage#19638

### How I did it
Add VRF parameter and bind ZMQ to VRF.

#### How to verify it
Pass all UT.
Manually verify issue fixed.


### Description for the changelog
Add mgmt VRF support.
divyachandralekha pushed a commit to divyachandralekha/sonic-swss that referenced this pull request Dec 12, 2024
Add mgmt VRF support.

#### Why I did it
Fix following issue:
sonic-net/sonic-buildimage#19638

### How I did it
Add VRF parameter and bind ZMQ to VRF.

#### How to verify it
Pass all UT.
Manually verify issue fixed.


### Description for the changelog
Add mgmt VRF support.
shiraez pushed a commit to Marvell-switching/sonic-swss that referenced this pull request Feb 17, 2025
Add mgmt VRF support.

#### Why I did it
Fix following issue:
sonic-net/sonic-buildimage#19638

### How I did it
Add VRF parameter and bind ZMQ to VRF.

#### How to verify it
Pass all UT.
Manually verify issue fixed.


### Description for the changelog
Add mgmt VRF support.
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
Add mgmt VRF support.

#### Why I did it
Fix following issue:
sonic-net/sonic-buildimage#19638

### How I did it
Add VRF parameter and bind ZMQ to VRF.

#### How to verify it
Pass all UT.
Manually verify issue fixed.


### Description for the changelog
Add mgmt VRF support.
baorliu pushed a commit to baorliu/sonic-swss that referenced this pull request Feb 23, 2026
Add mgmt VRF support.

#### Why I did it
Fix following issue:
sonic-net/sonic-buildimage#19638

### How I did it
Add VRF parameter and bind ZMQ to VRF.

#### How to verify it
Pass all UT.
Manually verify issue fixed.

### Description for the changelog
Add mgmt VRF support.

Signed-off-by: Baorong Liu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants