Skip to content

Commit 55045b1

Browse files
committed
When mgmtvrf is enabled, the NTP vrf should be changed to "mgmt"
Signed-off-by: irene_pan irene_pan@edge-core.com
1 parent 91b8f19 commit 55045b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/main.py

+2
Original file line numberDiff line numberDiff line change
@@ -3135,6 +3135,7 @@ def vrf_add_management_vrf(config_db):
31353135
return None
31363136
try:
31373137
config_db.mod_entry('MGMT_VRF_CONFIG', "vrf_global", {"mgmtVrfEnabled": "true"})
3138+
config_db.mod_entry('NTP', "global", {"vrf": "mgmt"})
31383139
except ValueError as e:
31393140
ctx = click.get_current_context()
31403141
ctx.fail("Invalid ConfigDB. Error: {}".format(e))
@@ -3149,6 +3150,7 @@ def vrf_delete_management_vrf(config_db):
31493150
return None
31503151
try:
31513152
config_db.mod_entry('MGMT_VRF_CONFIG', "vrf_global", {"mgmtVrfEnabled": "false"})
3153+
config_db.mod_entry('NTP', "global", {"vrf": "default"})
31523154
except ValueError as e:
31533155
ctx = click.get_current_context()
31543156
ctx.fail("Invalid ConfigDB. Error: {}".format(e))

0 commit comments

Comments
 (0)