def test_list_bgp_peer_sort(self): # sorted list: bgp-peer-list --sort-key name --sort-key id # --sort-key asc --sort-key desc resources = "bgp_peers" cmd = bgp_peer.ListPeers(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, sort_key=["name", "id"], sort_dir=["asc", "desc"])
def test_list_bgp_peer_limit(self): # size (1000) limited list: bgp-peer-list -P. resources = "bgp_peers" cmd = bgp_peer.ListPeers(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, page_size=1000)
def test_list_bgp_peer(self): # List all BGP peers. resources = "bgp_peers" cmd = bgp_peer.ListPeers(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, True)