Exemplo n.º 1
0
 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"])
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)