Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

NTP peers #186

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

NTP peers #186

wants to merge 5 commits into from

Conversation

tommarcoen
Copy link

No description provided.

Tom added 2 commits August 10, 2017 11:12
Also updated get_ntp_servers() to return the VRF with the NTP server.
@mirceaulinic mirceaulinic added this to the 0.8.0 milestone Aug 10, 2017
@ktbyers
Copy link
Contributor

ktbyers commented Aug 10, 2017

@t0mmetje Unit tests are failing.

Copy link
Member

@mirceaulinic mirceaulinic left a 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": [{
Copy link
Member

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"
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 70.009% when pulling 1a4640c on t0mmetje:ntp-peers into 8367353 on napalm-automation:develop.

@mirceaulinic
Copy link
Member

@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?

@coveralls
Copy link

coveralls commented Sep 4, 2017

Coverage Status

Coverage decreased (-0.7%) to 70.009% when pulling 1a4640c on t0mmetje:ntp-peers into 8367353 on napalm-automation:develop.

@ktbyers
Copy link
Contributor

ktbyers commented Sep 4, 2017

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.

@mirceaulinic
Copy link
Member

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.

@dbarrosop
Copy link
Member

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.

@mirceaulinic
Copy link
Member

mirceaulinic commented Sep 15, 2017

Yes, it certainly makes sense.

For this method specifically (and for the get_ntp_servers counterpart) it probably makes sense to only return the list of peers from the default VRF as @ktbyers said.

@t0mmetje could you please apply the necessary changes to select only the peers that use the global VRF?

@mirceaulinic
Copy link
Member

Checking in here - @t0mmetje did you see the conversation above?

@ktbyers
Copy link
Contributor

ktbyers commented Oct 24, 2017

I will reimplement post-reunification and fix the VRF issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants