Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mgmt VRF support. #3299

Merged
merged 15 commits into from
Oct 24, 2024
Merged

Add mgmt VRF support. #3299

merged 15 commits into from
Oct 24, 2024

Conversation

liuh-80
Copy link
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
Contributor Author

liuh-80 commented Sep 25, 2024

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

@liuh-80
Copy link
Contributor Author

liuh-80 commented Sep 30, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80
Copy link
Contributor Author

liuh-80 commented Oct 8, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80
Copy link
Contributor Author

liuh-80 commented Oct 11, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

case 'v':
if (optarg)
{
vrf = optarg;
Copy link
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
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
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
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
Contributor Author

liuh-80 commented Oct 16, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

Copy link

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
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
Contributor Author

liuh-80 commented Oct 18, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80
Copy link
Contributor Author

liuh-80 commented Oct 23, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liuh-80
Copy link
Contributor Author

liuh-80 commented Oct 23, 2024

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft merged commit bd945f6 into sonic-net:master Oct 24, 2024
17 checks passed
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.
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