-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2160 from napalm-automation/ntp_details
Support NTP server details in base, EOS
- Loading branch information
Showing
12 changed files
with
280 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
test/eos/mocked_data/test_get_ntp_servers/details/expected_result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
test/eos/mocked_data/test_get_ntp_servers/details/show_ip_interface.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
test/eos/mocked_data/test_get_ntp_servers/details/show_ipv6_interface.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
test/eos/mocked_data/test_get_ntp_servers/details/show_running_config___section_ntp.text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.