diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-02-03 11:28:55 +0900 |
---|---|---|
committer | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-02-03 11:28:55 +0900 |
commit | d57e6bec0a6dc8eb19cbf912e3bc93a3331df1ce (patch) | |
tree | 308ddc89242a189c7a14db1874d7ff673931fb0d /test/scenario_test/peer_info.py | |
parent | 8b754377a3ce9c8463748418ad9a851e59b00a9e (diff) |
scenario_test: add scenario test using the quagga of ipv4 and ipv6
Diffstat (limited to 'test/scenario_test/peer_info.py')
-rw-r--r-- | test/scenario_test/peer_info.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/scenario_test/peer_info.py b/test/scenario_test/peer_info.py new file mode 100644 index 00000000..00490d09 --- /dev/null +++ b/test/scenario_test/peer_info.py @@ -0,0 +1,24 @@ +class Peer: + def __init__(self, peer_ip, peer_id, peer_as, ip_version): + # def __init__(self, peer_ip, peer_id, peer_as): + self.peer_ip = peer_ip + self.peer_id = peer_id + self.peer_as = peer_as + self.ip_version = ip_version + self.neighbors = [] + self.destinations = {} + + +class Destination: + def __init__(self, prefix): + self.prefix = prefix + self.paths = [] + + +class Path: + def __init__(self, network, nexthop): + self.network = network + self.nexthop = nexthop + self.origin = None + self.as_path = [] + self.metric = None
\ No newline at end of file |