-
Notifications
You must be signed in to change notification settings - Fork 40
NTP peers #186
base: develop
Are you sure you want to change the base?
NTP peers #186
Conversation
Also updated get_ntp_servers() to return the VRF with the NTP server.
@t0mmetje Unit tests are failing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the addition @t0mmetje - to make sure the tests will pass, you would need to remove some details, as pointe out in my in-line comments.
"2001:DB8:0:0:8:800:200C:417A": {}, | ||
"17.72.148.53": {}, | ||
"192.168.0.1": {}, | ||
"37.187.56.220": [{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@t0mmetje to pass the tests, please remove this and let this peer have an empty dictionary as the other ones.
@@ -2,5 +2,7 @@ | |||
"2001:DB8:0:0:8:800:200C:417A": {}, | |||
"17.72.148.53": {}, | |||
"192.168.0.1": {}, | |||
"37.187.56.220": {} | |||
"37.187.56.220": [{ | |||
"vrf": "NAPALM" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
@t0mmetje we are preparing to release napalm-ios 0.8.0 and we'd like to include your additions, so I pushed the changes I suggested above to pass the tests. @ktbyers does this look good to you? |
That doesn't look like the proper behavior for VRFs (looking at the test data). I would have thought since doesn't support VRFs, that we were only parsing the global/default VRF. This is a general problem we have i.e. in contexts where VRFs are applicable, but where we are not supporting VRFs--what does NAPALM do? My assumption is we are only parsing the global/default VRFs and ignoring everything else. |
I presume VRF is only necessary to determine what source IP address to use for NTP. Otherwise I can't see any other usability (i.e. I would find very strange to have a different time stamp in VRF A than in VRF B... what would be the reasoning?). I just checked and Junos, for example, doesn't have any option like that, but directly specify what source IP address to use. IOS, on the other hand requires you to set an interface name and eventually VRF. |
Specifying the VRF on management protocols makes complete sense. You might have your own ntp servers that are only accessible via that network and not publicly available. Regarding junos not supporting it... I had some discussions in the past about that with them and their suggestion/workaround was... well, I’ll leave the adjective I had in mind out of here. |
Yes, it certainly makes sense. For this method specifically (and for the @t0mmetje could you please apply the necessary changes to select only the peers that use the global VRF? |
Checking in here - @t0mmetje did you see the conversation above? |
I will reimplement post-reunification and fix the VRF issue. |
No description provided.