Skip to content

[NTP] When mgmtvrf is enabled, the NTP vrf should be changed to "mgmt"#3456

Open
irene-pan1202 wants to merge 1 commit intosonic-net:masterfrom
irene-pan1202:ntp_mgmtvrf
Open

[NTP] When mgmtvrf is enabled, the NTP vrf should be changed to "mgmt"#3456
irene-pan1202 wants to merge 1 commit intosonic-net:masterfrom
irene-pan1202:ntp_mgmtvrf

Conversation

@irene-pan1202
Copy link
Copy Markdown

What I did

#15058
Configure NTP global parameters, and specify the NTP vrf as "default".
The NTP vrf does not change to "mgmt" when mgmtvrf is enabled, causing NTP create socket to fail.

ERR ntpd[34933]: bind(22) AF_INET 10.250.0.181#123 flags 0x19 failed: Cannot assign requested address
ERR ntpd[34933]: unable to create socket on eth0 (5) for 10.250.0.181#123

When mgmtvrf is enabled, the NTP vrf should be changed to "mgmt".

How I did it

How to verify it

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Signed-off-by: irene_pan irene_pan@edge-core.com
return None
try:
config_db.mod_entry('MGMT_VRF_CONFIG', "vrf_global", {"mgmtVrfEnabled": "true"})
config_db.mod_entry('NTP', "global", {"vrf": "mgmt"})
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you modifying NTP global config table while updating MGMT_VRF_CONFIG table? IMO, Better to have new CLI to set the VRF in NTP Global table so that user will have the flexibility to use the NTP in non-default VRF in presence of MGMT-VRF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants