diff options
| author | Lou Berger <lberger@labn.net> | 2018-08-28 18:10:05 +0000 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-27 20:22:14 -0500 |
| commit | a73fb016ffeb2eebb21f70340b484b2d32493a1f (patch) | |
| tree | 4aa0015e6d0ea7880702219a118b676f9cc60a03 /tests/topotests/bgp_rfapi_basic_sanity/scripts/check_close.py | |
| parent | ccabd6181957dbcba8a5b0bc41df93b998870825 (diff) | |
bgp_rfapi_basic_sanity: added close check
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'tests/topotests/bgp_rfapi_basic_sanity/scripts/check_close.py')
| -rw-r--r-- | tests/topotests/bgp_rfapi_basic_sanity/scripts/check_close.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/topotests/bgp_rfapi_basic_sanity/scripts/check_close.py b/tests/topotests/bgp_rfapi_basic_sanity/scripts/check_close.py new file mode 100644 index 0000000000..c168ed560e --- /dev/null +++ b/tests/topotests/bgp_rfapi_basic_sanity/scripts/check_close.py @@ -0,0 +1,12 @@ +from lutil import luCommand +luCommand('r1','vtysh -c "debug rfapi-dev open vn 20.0.0.1 un 1.1.1.21"','rfapi_set_response_cb: status 0', 'pass', 'Opened RFAPI') +luCommand('r1','vtysh -c "debug rfapi-dev register vn 20.0.0.1 un 1.1.1.21 prefix 111.111.111.0/24 lifetime 5"','', 'none', 'Prefix registered') +luCommand('r1','vtysh -c "show vnc registrations local"','111.111.111.0/24','wait','Local registration',1) +luCommand('r1','vtysh -c "show vnc registrations"','.','none') +luCommand('r3','vtysh -c "show vnc registrations"','111.111.111.0/24','wait','See registration') +luCommand('r4','vtysh -c "show vnc registrations"','111.111.111.0/24','wait','See registration') +luCommand('r1','vtysh -c "debug rfapi-dev close vn 20.0.0.1 un 1.1.1.21"','status 0', 'pass', 'Closed RFAPI') +luCommand('r1','vtysh -c "show vnc registrations"','Locally: *Active: 1 .* Remotely: *Active: 2','wait','See cleanup') +luCommand('r3','vtysh -c "show vnc registrations"','Locally: *Active: 1 .* Remotely: *Active: 2','wait','See cleanup') +luCommand('r4','vtysh -c "show vnc registrations"','Locally: *Active: 1 .* Remotely: *Active: 2','wait','See cleanup') + |
