-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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] Add support for ipv4 dhcp_server in minigraph parser #16313
[minigraph] Add support for ipv4 dhcp_server in minigraph parser #16313
Conversation
7c8b1c4
to
8575641
Compare
8575641
to
5f0d5bb
Compare
@yxieca Could you pls help to merge this PR? |
@qiluo-msft , i thought we are gong to block all minigraph changes now? |
results['DHCP_SERVER_IPV4'] = dhcp_server_ipv4 | ||
if dhcp_server_ipv4_customized_options: | ||
results['DHCP_SERVER_IPV4_CUSTOMIZED_OPTIONS'] = dhcp_server_ipv4_customized_options | ||
results['DHCP_SERVER_IPV4_PORT'] = dhcp_server_ipv4_port |
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.
This is a new table in ConfigDB. Please onboard it with golden config generation pipeline. We are blocking new tables coming into minigraph parser.
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.
as comment
@@ -2068,6 +2140,18 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw | |||
'client_crt_cname': 'client.restapi.sonic' | |||
} | |||
} | |||
if devices[hostname]["type"] == "BmcMgmtToRRouter": | |||
dhcp_server_ipv4, dhcp_server_ipv4_port, dhcp_server_ipv4_customized_options = \ | |||
generate_ipv4_dhcp_server_config(devices, link_ports, port_alias_map, vlan_intfs, vlan_members, |
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.
Why I did it
Add minigraph parser support for dhcp_server in BmcMgmtToRRouter device followed sonic-net/SONiC#1282. Parse dhcp_server related info from minigraph.
Work item tracking
How I did it
Add minigraph parser support for dhcp_server in BmcMgmtToRRouter device.
How to verify it
Build image, ut passed.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)