diff options
| author | Lou Berger <lberger@labn.net> | 2018-08-29 12:40:25 +0000 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-27 20:22:14 -0500 |
| commit | 4ce7be6957818ed3b49a7be372a1efd9364d1dd9 (patch) | |
| tree | 535833f6e434400551f66fa7b0414b381b723960 /tests/topotests/bgp_rfapi_basic_sanity/scripts/add_routes.py | |
| parent | d12ac2a975fe4a51d6b54c4a0b84194d43f953e4 (diff) | |
bgp_rfapi_basic_sanity: added multi-path and updated responses
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'tests/topotests/bgp_rfapi_basic_sanity/scripts/add_routes.py')
| -rw-r--r-- | tests/topotests/bgp_rfapi_basic_sanity/scripts/add_routes.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/topotests/bgp_rfapi_basic_sanity/scripts/add_routes.py b/tests/topotests/bgp_rfapi_basic_sanity/scripts/add_routes.py index 4fe4da9a62..1a7b0b65dc 100644 --- a/tests/topotests/bgp_rfapi_basic_sanity/scripts/add_routes.py +++ b/tests/topotests/bgp_rfapi_basic_sanity/scripts/add_routes.py @@ -7,14 +7,25 @@ else: luCommand('r1','vtysh -c "debug rfapi-dev open vn 10.0.0.1 un 1.1.1.1"','rfapi_set_response_cb: status 0', 'pass', 'Opened RFAPI') luCommand('r1','vtysh -c "debug rfapi-dev register vn 10.0.0.1 un 1.1.1.1 prefix 11.11.11.0/24 lifetime {}"'.format(to),'', 'none', 'Prefix registered') luCommand('r1','vtysh -c "show vnc registrations local"','1 out of 1','wait','Local registration') +luCommand('r1','vtysh -c "debug rfapi-dev response-omit-self off"','.','none') +luCommand('r1','vtysh -c "debug rfapi-dev query vn 10.0.0.1 un 1.1.1.1 target 11.11.11.11"','11.11.11.0/24', 'pass', 'Query self') luCommand('r3','vtysh -c "debug rfapi-dev open vn 10.0.0.2 un 2.2.2.2"','rfapi_set_response_cb: status 0', 'pass', 'Opened RFAPI') luCommand('r3','vtysh -c "debug rfapi-dev register vn 10.0.0.2 un 2.2.2.2 prefix 22.22.22.0/24 lifetime {}"'.format(to),'', 'none', 'Prefix registered') luCommand('r3','vtysh -c "show vnc registrations local"','1 out of 1','wait','Local registration') +luCommand('r3','vtysh -c "debug rfapi-dev response-omit-self on"','.','none') +luCommand('r3','vtysh -c "debug rfapi-dev query vn 10.0.0.2 un 2.2.2.2 target 22.22.22.22"','rc=2', 'pass', 'Self excluded') luCommand('r4','vtysh -c "debug rfapi-dev open vn 10.0.0.3 un 3.3.3.3"','rfapi_set_response_cb: status 0', 'pass', 'Opened RFAPI') luCommand('r4','vtysh -c "debug rfapi-dev register vn 10.0.0.3 un 3.3.3.3 prefix 33.33.33.0/24 lifetime {}"'.format(to),'', 'none', 'Prefix registered') luCommand('r4','vtysh -c "show vnc registrations local"','1 out of 1','wait','Local registration') +luCommand('r4','vtysh -c "debug rfapi-dev response-omit-self off"','.','none') +luCommand('r4','vtysh -c "debug rfapi-dev query vn 10.0.0.3 un 3.3.3.3 target 33.33.33.33"','33.33.33.0/24', 'pass', 'Query self') + +luCommand('r4','vtysh -c "debug rfapi-dev register vn 10.0.0.3 un 3.3.3.3 prefix 11.11.11.0/24 lifetime {}"'.format(to),'', 'none', 'MP Prefix registered') +luCommand('r4','vtysh -c "show vnc registrations local"','2 out of 2','wait','Local registration') +luCommand('r4','vtysh -c "debug rfapi-dev query vn 10.0.0.3 un 3.3.3.3 target 11.11.11.11"','11.11.11.0/24', 'pass', 'Query self MP') + luCommand('r1','vtysh -c "show vnc registrations"','.','none') luCommand('r3','vtysh -c "show vnc registrations"','.','none') luCommand('r4','vtysh -c "show vnc registrations"','.','none') |
