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

Commit

Permalink
Merge pull request #8 from mirceaulinic/CF-NTP-PEERS
Browse files Browse the repository at this point in the history
get_ntp_peers() for IOS-XR
  • Loading branch information
dbarrosop committed Apr 26, 2016
2 parents c130428 + fbbc039 commit ee51a73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ script:
- nosetests -v TestIOSXRDriver:TestGetterIOSXRDriver.test_get_lldp_neighbors_detail
- nosetests -v TestIOSXRDriver:TestGetterIOSXRDriver.test_get_mac_address_table
- nosetests -v TestIOSXRDriver:TestGetterIOSXRDriver.test_get_ntp_stats
- nosetests -v TestIOSXRDriver:TestGetterIOSXRDriver.test_get_ntp_peers
- nosetests -v TestIOSXRDriver:TestGetterIOSXRDriver.test_get_route_to
- nosetests -v TestIOSXRDriver:TestGetterIOSXRDriver.test_get_snmp_information
- nosetests -v TestIOSXRDriver:TestGetterIOSXRDriver.test_get_probes_config
Expand Down
5 changes: 5 additions & 0 deletions napalm_iosxr/iosxr.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,11 @@ def get_arp_table(self):

return arp_table

def get_ntp_peers(self):

ntp_stats = self.get_ntp_stats()
return {ntp_peer.get('remote'): {} for ntp_peer in ntp_stats if ntp_peer.get('remote', '')}

def get_ntp_stats(self):

ntp_stats = list()
Expand Down

0 comments on commit ee51a73

Please sign in to comment.