-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[minigraph parser] add basic support for MGMT_PORT #2103
Conversation
src/sonic-config-engine/minigraph.py
Outdated
results['MGMT_INTERFACE'] = {} | ||
for key in mgmt_intf: | ||
alias = key[0] | ||
name = 'eth' + alias[-1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias[-1] [](start = 23, length = 9)
It is not safe to assume there is a minigraph mgmt port name ends with '0', considering sonic mgmt port names are like eth0, eth1, ... #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed. #Resolved
* [minigraph parser] add basic support for MGMT_PORT * Change method to determine local interface name
Update sonic-utilities submodule to include below commits: 510a9b9 Add date to show version (sonic-net#2086) 61b1396 [sfpshow][recycle_port] sfpshow script needs to skip recycle ports (sonic-net#2109) 4681697 Support command `show ip fib` and `show ipv6 fib` (sonic-net#2100) 2a982a1 Update `config mirror_session` CLI to support heximal gre type value (sonic-net#2095) b25f1e1 [generic-config-updater] Add caclrule validator (sonic-net#2103) 968900c [sonic-package-manager] do not mod_config for whole config db when setting init_cfg (sonic-net#2055) bf55ceb [nvgre] Added auto-generated CLI plugins and test for NVGRE Tunnel feature (sonic-net#1915)
Update sonic-utilities submodule to include below commits: 510a9b9 Add date to show version (#2086) 61b1396 [sfpshow][recycle_port] sfpshow script needs to skip recycle ports (#2109) 4681697 Support command `show ip fib` and `show ipv6 fib` (#2100) 2a982a1 Update `config mirror_session` CLI to support heximal gre type value (#2095) b25f1e1 [generic-config-updater] Add caclrule validator (#2103) 968900c [sonic-package-manager] do not mod_config for whole config db when setting init_cfg (#2055) bf55ceb [nvgre] Added auto-generated CLI plugins and test for NVGRE Tunnel feature (#1915) 8389c81 [sonic-cli-gen] fix failure "Error: digits_class" when field "digit_class" does not exist in DB (#2054) f71ef64 Fix import statement in mclag.py (#2073)
Add 1 sec sleep time to make sure caclmgrd does update What I did When GCU make change to control plane ACL_RULE, the iptables doen't change immediately. There is a delay because caclmgrd will update in 0.5 sec if no more update being made to config. So I add a caclrule validator to make sure the iptable is updated. How I did it When caclrule is being changed, add a 1sec sleep to make sure caclmgr does update. How to verify it Run sonic-utilities unit test
- What I did
Create parsing minigraph for MGMT_PORT table according to design in
https://github.com/Azure/SONiC/wiki/SONiC-SMMP-Design-on-Management-Ports
Currently support
alias
andadmin_status
field.- How to verify it