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

[voq][minigraph] Add admin_status attribute for inband interface #8050

Merged
merged 2 commits into from Jul 26, 2021

Conversation

vganesan-nokia
Copy link
Contributor

Why I did it

In the config_db.json generated by minigraph "admin_status" attribute is missing for the VOQ inband interface port in the PORT table.

How I did it

Changes done to add admin_status attribute for voq inband interface port, if it exists in the PORT table keys.

How to verify it

  • For VOQ chassis system, generate config_db.json using minigraph.
  • Copy this config_db.json in /etc/sonic/
  • Reboot the chassis with this configuration
  • The inband interface is operationally up and iBGP sessions are established

Description for the changelog

admin_status attribute for inband interface port

Changes to add admin_status attribute for voq inband interface port, if
it exists in the PORT table keys.

Signed-off-by: vedganes <vedavinayagam.ganesan@nokia.com>
@anshuv-mfst
Copy link

@mlorrillere- could you please review, thanks!

mlorrillere
mlorrillere previously approved these changes Jul 12, 2021
Copy link
Contributor

@abdosi abdosi left a comment

Choose a reason for hiding this comment

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

lets add unit test case to cover inband port status

Following changes done to add unit test to test addition of
"admin_status" for Ethernet-IB entry in the PORT table.
- Port type voq inband interface is added in the sample minigraph.xml
- Sample port_config.ini is added for voq that has the Ethernet-IB port
defined.
- Test cases added to check for port type inband interface and presence
of 'admin_status" for Ethernet-IB port in the PORT table.

Signed-off-by: vedganes <vedavinayagam.ganesan@nokia.com>
@vganesan-nokia
Copy link
Contributor Author

lets add unit test case to cover inband port status

Added unit tests.

@abdosi abdosi merged commit d78382b into sonic-net:master Jul 26, 2021
judyjoseph pushed a commit that referenced this pull request Aug 4, 2021
Why I did it
In the config_db.json generated by minigraph "admin_status" attribute is missing for the VOQ inband interface port in the PORT table.

How I did it
Changes done to add admin_status attribute for voq inband interface port, if it exists in the PORT table keys.
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
…ic-net#8050)

Why I did it
In the config_db.json generated by minigraph "admin_status" attribute is missing for the VOQ inband interface port in the PORT table.

How I did it
Changes done to add admin_status attribute for voq inband interface port, if it exists in the PORT table keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants