Skip to content

Commit

Permalink
Fix dhcp_relay configuration in vrf TC (sonic-net#6335)
Browse files Browse the repository at this point in the history
What is the motivation for this PR?
Update vrf_config_db.j2 so that dhcp_relay could start up after config is applied.

How did you do it?
How did you verify/test it?
Run vrf/test_vrf.py, after config was applied dhcp_relay was able to start and was up.

Signed-off-by: Andrii-Yosafat Lozovyi <[email protected]>
  • Loading branch information
AndriiLozovyi authored and ms-junyi committed Oct 28, 2022
1 parent b84d29d commit f276d39
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/vrf/vrf_config_db.j2
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,17 @@
},
{% 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 %}

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

0 comments on commit f276d39

Please sign in to comment.