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

Fix dhcp_relay configuration in vrf TC's #6158

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions tests/vrf/vrf_config_db.j2
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,24 @@
},
{% elif k == 'VLAN' %}
"VLAN": {
"Vlan1000": {"vlanid": "1000"},
"Vlan2000": {"vlanid": "2000"}
"Vlan1000": {
"dhcp_servers": [
{% for dhcp in cfg_t0['VLAN']['Vlan1000']['dhcp_servers'] %}
{{ dhcp | to_nice_json }}{% if not loop.last %},
{% endif %}
{% endfor %}

],
"dhcpv6_servers": [
{% for dhcp in cfg_t0['VLAN']['Vlan1000']['dhcpv6_servers'] %}
{{ dhcp | to_nice_json }}{% if not loop.last %},
{% endif %}
{% endfor %}

],
"vlanid": "1000"},
"Vlan2000": {
"vlanid": "2000"}
},
{% elif k == 'VLAN_INTERFACE' %}
"VLAN_INTERFACE": {
Expand Down