-
Notifications
You must be signed in to change notification settings - Fork 25
Add dhcp servers list #621
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
base: develop
Are you sure you want to change the base?
Changes from 4 commits
ea7187f
6452c1f
c1961f2
49ceaaa
e574d0f
496e73b
ed1155e
db5528f
7469920
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,17 @@ | ||
| {# Auto-generated NDFC VXLAN EVPN MSD Child Fabric Network config data structure for fabric {{ fabric_name }} #} | ||
| {# Build dhcpServers as a JSON dict (or empty string) #} | ||
| {%- set _dhcp_pairs = [] -%} | ||
| {%- if dm is defined and dm['dhcp_servers'] is defined and dm['dhcp_servers'] -%} | ||
|
||
| {%- for srvr in dm['dhcp_servers'] -%} | ||
| {%- if srvr['ip_address'] is defined and srvr['ip_address'] -%} | ||
| {%- set _ = _dhcp_pairs.append({ | ||
| "srvrAddr": srvr['ip_address'], "srvrVrf": srvr['vrf'] | ||
| }) -%} | ||
| {%- endif -%} | ||
| {%- endfor -%} | ||
| {%- endif -%} | ||
| {%- set _dhcp_obj = {'dhcpServers': _dhcp_pairs} -%} | ||
| {%- set dhcpServers = _dhcp_obj if (_dhcp_pairs|length > 0) else '' -%} | ||
|
||
| { | ||
| "fabric": "{{ fabric_name }}", | ||
| "networkName": "{{ network_name }}", | ||
|
|
@@ -30,6 +43,7 @@ | |
| "vrfDhcp2": dm['dhcp_servers'][1]['vrf'] if dm['dhcp_servers'][1]['ip_address'] is defined else "", | ||
| "dhcpServerAddr3": dm['dhcp_servers'][2]['ip_address'] if dm['dhcp_servers'][2]['ip_address'] is defined else ndfc.dhcpServerAddr3, | ||
| "vrfDhcp3": dm['dhcp_servers'][2]['vrf'] if dm['dhcp_servers'][2]['vrf'] is defined else "", | ||
| "dhcpServers": dhcpServers, | ||
| "ENABLE_NETFLOW": dm.netflow_enable if dm.netflow_enable is defined else ndfc.ENABLE_NETFLOW, | ||
| "SVI_NETFLOW_MONITOR": ndfc.SVI_NETFLOW_MONITOR, | ||
| "VLAN_NETFLOW_MONITOR": dm.vlan_netflow_monitor if (dm.netflow_enable is defined and dm.netflow_enable) else ndfc.VLAN_NETFLOW_MONITOR, | ||
|
|
||
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.
Do we need to remove all these in favor of just the dhcp server list?
cc @mikewiebe