Skip to content

Commit f276d39

Browse files
AndriiLozovyims-junyi
authored and
ms-junyi
committed
Fix dhcp_relay configuration in vrf TC (sonic-net#6335)
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]>
1 parent b84d29d commit f276d39

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/vrf/vrf_config_db.j2

+11-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,17 @@
8888
},
8989
{% elif k == 'VLAN' %}
9090
"VLAN": {
91-
"Vlan1000": {"vlanid": "1000"},
92-
"Vlan2000": {"vlanid": "2000"}
91+
"Vlan1000": {
92+
"dhcp_servers": [
93+
{% for dhcp in cfg_t0['VLAN']['Vlan1000']['dhcp_servers'] %}
94+
{{ dhcp | to_nice_json }}{% if not loop.last %},
95+
{% endif %}
96+
{% endfor %}
97+
98+
],
99+
"vlanid": "1000"},
100+
"Vlan2000": {
101+
"vlanid": "2000"}
93102
},
94103
{% elif k == 'VLAN_INTERFACE' %}
95104
"VLAN_INTERFACE": {

0 commit comments

Comments
 (0)