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

[minigraph parser] add basic support for MGMT_PORT #2103

Merged
merged 2 commits into from
Sep 29, 2018

Conversation

taoyl-ms
Copy link
Contributor

- 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 and admin_status field.

- How to verify it

localadmin@taoyl-vm0:~$ ./sonic-cfggen -m tests/sample_graph.xml -v MGMT_PORT
{'eth0': {'alias': 'Management0', 'admin_status': 'up' }} 

results['MGMT_INTERFACE'] = {}
for key in mgmt_intf:
alias = key[0]
name = 'eth' + alias[-1]
Copy link
Collaborator

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

Copy link
Contributor Author

@taoyl-ms taoyl-ms Sep 29, 2018

Choose a reason for hiding this comment

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

Addressed. #Resolved

@lguohan lguohan merged commit 034f472 into sonic-net:master Sep 29, 2018
lguohan pushed a commit that referenced this pull request Oct 2, 2018
* [minigraph parser] add basic support for MGMT_PORT

* Change method to determine local interface name
liorghub added a commit to liorghub/sonic-buildimage that referenced this pull request Mar 23, 2022
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)
liat-grozovik pushed a commit that referenced this pull request Mar 30, 2022
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)
taras-keryk pushed a commit to taras-keryk/sonic-buildimage that referenced this pull request Apr 28, 2022
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
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

4 participants