-
Notifications
You must be signed in to change notification settings - Fork 576
Support NTP server details in base, EOS #2160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
99192df
145c7b7
c02a749
053e899
95b0aba
8e9f538
2518279
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -224,15 +224,31 @@ | |
| NTPPeerDict = TypedDict( | ||
| "NTPPeerDict", | ||
| { | ||
| # will populate it in the future wit potential keys | ||
| "address": str, | ||
| "port": int, | ||
| "version": int, | ||
| "association_type": str, | ||
| "iburst": bool, | ||
| "prefer": bool, | ||
| "network_instance": str, | ||
| "source_address": str, | ||
| "key_id": int, | ||
| }, | ||
| total=False, | ||
| ) | ||
|
|
||
| NTPServerDict = TypedDict( | ||
| "NTPServerDict", | ||
| { | ||
| # will populate it in the future wit potential keys | ||
| "address": str, | ||
| "port": int, | ||
| "version": int, | ||
| "association_type": str, | ||
| "iburst": bool, | ||
| "prefer": bool, | ||
| "network_instance": str, | ||
| "source_address": str, | ||
| "key_id": int, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So these are all optional key-values which may be returned?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is correct. If we get to the point where all drivers return it in all situations, we could make it non-optional. |
||
| }, | ||
| total=False, | ||
| ) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "1.2.3.4": { | ||
| "port": 123, | ||
| "version": 4, | ||
| "association_type": "SERVER", | ||
| "iburst": true, | ||
| "prefer": true, | ||
| "network_instance": "FOO", | ||
| "source_address": "", | ||
| "key_id": -1, | ||
| "address": "1.2.3.4" | ||
| }, | ||
| "4.3.2.1": { | ||
| "port": 123, | ||
| "version": 4, | ||
| "association_type": "SERVER", | ||
| "iburst": false, | ||
| "prefer": false, | ||
| "network_instance": "FOO", | ||
| "source_address": "172.20.20.2", | ||
| "key_id": -1, | ||
| "address": "4.3.2.1" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| { | ||
| "interfaces": { | ||
| "Management0": { | ||
| "name": "Management0", | ||
| "lineProtocolStatus": "up", | ||
| "interfaceStatus": "connected", | ||
| "mtu": 1500, | ||
| "interfaceAddressBrief": { | ||
| "ipAddr": { | ||
| "address": "172.20.20.2", | ||
| "maskLen": 24 | ||
| } | ||
| }, | ||
| "ipv4Routable240": false, | ||
| "ipv4Routable0": false, | ||
| "enabled": true, | ||
| "description": "", | ||
| "interfaceAddress": { | ||
| "primaryIp": { | ||
| "address": "172.20.20.2", | ||
| "maskLen": 24 | ||
| }, | ||
| "secondaryIps": {}, | ||
| "secondaryIpsOrderedList": [], | ||
| "virtualIp": { | ||
| "address": "0.0.0.0", | ||
| "maskLen": 0 | ||
| }, | ||
| "virtualSecondaryIps": {}, | ||
| "virtualSecondaryIpsOrderedList": [], | ||
| "broadcastAddress": "255.255.255.255", | ||
| "dhcp": false | ||
| }, | ||
| "proxyArp": false, | ||
| "proxyArpAllowDefault": false, | ||
| "localProxyArp": false, | ||
| "gratuitousArp": false, | ||
| "routedAddr": "00:1c:73:7b:8c:1d", | ||
| "isVrrpBackup": false, | ||
| "vrf": "default", | ||
| "urpf": "disable", | ||
| "addresslessForwarding": "isInvalid", | ||
| "directedBroadcastEnabled": false, | ||
| "maxMssIngress": 0, | ||
| "maxMssEgress": 0 | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| { | ||
| "interfaces": { | ||
| "Management0": { | ||
| "name": "Management0", | ||
| "lineProtocolStatus": "up", | ||
| "interfaceStatus": "connected", | ||
| "mtu": 1500, | ||
| "linkLocal": { | ||
| "address": "fe80::21c:73ff:fe7b:8c1d", | ||
| "subnet": "fe80::/64", | ||
| "active": true, | ||
| "leastpref": false, | ||
| "dadfailed": false | ||
| }, | ||
| "state": "enabled", | ||
| "addresses": [ | ||
| { | ||
| "address": "2001:172:20:20::2", | ||
| "subnet": "2001:172:20:20::/64", | ||
| "active": true, | ||
| "leastpref": false, | ||
| "dadfailed": false | ||
| } | ||
| ], | ||
| "globalAddressesAreVirtual": false, | ||
| "multicastGroupAddresses": [ | ||
| "ff02::1", | ||
| "ff02::1:ff00:2", | ||
| "ff02::1:ff7b:8c1d" | ||
| ], | ||
| "dadStatus": "unavailable", | ||
| "dadAttempts": -1, | ||
| "ndReachableTime": 30000, | ||
| "ndRetransmitInterval": 1000, | ||
| "enhancedDad": false, | ||
| "autoConfigStatus": "stateless", | ||
| "urpf": "disable", | ||
| "urpfV4V6Mismatch": false, | ||
| "vrf": "default", | ||
| "addrSource": "manual", | ||
| "maxMssIngress": 0, | ||
| "maxMssEgress": 0, | ||
| "acceptUnsolicitedNa": false | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ntp server vrf FOO 1.2.3.4 prefer iburst | ||
| ntp server vrf FOO 4.3.2.1 local-interface Management0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,35 @@ | ||
| {"1.2.3.4": {}, "2001:0db8:0a0b:12f0:0000:0000:0000:0001": {}, "5.6.7.8": {}} | ||
| { | ||
| "1.2.3.4": { | ||
| "port": 123, | ||
| "version": 4, | ||
| "association_type": "SERVER", | ||
| "iburst": false, | ||
| "prefer": false, | ||
| "network_instance": "default", | ||
| "source_address": "", | ||
| "key_id": -1, | ||
| "address": "1.2.3.4" | ||
| }, | ||
| "5.6.7.8": { | ||
| "port": 123, | ||
| "version": 4, | ||
| "association_type": "SERVER", | ||
| "iburst": false, | ||
| "prefer": false, | ||
| "network_instance": "default", | ||
| "source_address": "", | ||
| "key_id": -1, | ||
| "address": "5.6.7.8" | ||
| }, | ||
| "2001:0db8:0a0b:12f0:0000:0000:0000:0001": { | ||
| "port": 123, | ||
| "version": 4, | ||
| "association_type": "SERVER", | ||
| "iburst": false, | ||
| "prefer": false, | ||
| "network_instance": "default", | ||
| "source_address": "", | ||
| "key_id": -1, | ||
| "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0001" | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.