From 0bb19082a0d4ff6638ce46eac90353b7e8ee8f61 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Thu, 17 Dec 2020 16:37:09 -0700 Subject: [PATCH] add more route types to fake output for testing [skip ci] --- hyperglass/api/fake_output.py | 36 ++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/hyperglass/api/fake_output.py b/hyperglass/api/fake_output.py index 6f3eedb..4011ec1 100644 --- a/hyperglass/api/fake_output.py +++ b/hyperglass/api/fake_output.py @@ -89,7 +89,7 @@ ROUTES = [ "active": False, "age": 480, "weight": 170, - "med": 2, + "med": 3, "local_preference": 100, "as_path": [65003], "communities": ["65000:3"], @@ -97,14 +97,14 @@ ROUTES = [ "source_as": 65003, "source_rid": "198.18.0.3", "peer_rid": "198.18.0.3", - "rpki_state": 0, + "rpki_state": 3, }, { "prefix": "2001:db8:3::/64", "active": False, "age": 480, "weight": 170, - "med": 2, + "med": 3, "local_preference": 100, "as_path": [65003], "communities": ["65000:3"], @@ -112,6 +112,36 @@ ROUTES = [ "source_as": 65003, "source_rid": "198.18.0.3", "peer_rid": "198.18.0.3", + "rpki_state": 3, + }, + { + "prefix": "198.18.4.0/24", + "active": False, + "age": 480, + "weight": 170, + "med": 4, + "local_preference": 100, + "as_path": [], + "communities": ["65000:4"], + "next_hop": "198.18.0.4", + "source_as": 65004, + "source_rid": "198.18.0.4", + "peer_rid": "198.18.0.4", + "rpki_state": 0, + }, + { + "prefix": "2001:db8:4::/64", + "active": False, + "age": 480, + "weight": 170, + "med": 4, + "local_preference": 100, + "as_path": [], + "communities": ["65000:4"], + "next_hop": "2001:db8::4", + "source_as": 65004, + "source_rid": "198.18.0.4", + "peer_rid": "198.18.0.4", "rpki_state": 0, }, ]