From 4de63b68017f392d76852a20f5855f80cce91c36 Mon Sep 17 00:00:00 2001 From: Martin Dindoffer Date: Thu, 16 Nov 2017 15:27:32 +0100 Subject: [PATCH] Update test suite for SXP project - Use random retry timer in SSL tests and fix incorrect Variables import - Use library name with imported keywords Change-Id: Id42ec3ad747ef777ced5e555da0611ca07ac3225 Signed-off-by: Martin Dindoffer --- csit/suites/sxp/basic/040_SSL_Passwords.robot | 157 +++--- .../040_Peer_Sequence_filtering.robot | 531 +++++++++--------- 2 files changed, 343 insertions(+), 345 deletions(-) diff --git a/csit/suites/sxp/basic/040_SSL_Passwords.robot b/csit/suites/sxp/basic/040_SSL_Passwords.robot index 7ced646dbd..452b0f06e6 100644 --- a/csit/suites/sxp/basic/040_SSL_Passwords.robot +++ b/csit/suites/sxp/basic/040_SSL_Passwords.robot @@ -19,79 +19,79 @@ ${ssl_stores} /tmp SSL ConectivityCase 1 [Documentation] Test of SSL security with two SXP-nodes both have each other in truststores [Tags] SXP SSL - Add Connection ${version} speaker 127.0.0.2 64999 127.0.0.1 security_mode=TLS - Add Connection ${version} listener 127.0.0.1 64999 127.0.0.2 security_mode=TLS - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} speaker 127.0.0.2 + SxpLib.Add Connection ${version} speaker 127.0.0.2 64999 127.0.0.1 security_mode=TLS + SxpLib.Add Connection ${version} listener 127.0.0.1 64999 127.0.0.2 security_mode=TLS + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.2 ... 64999 127.0.0.1 - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.1 + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.1 ... 64999 127.0.0.2 - Clean Connections 127.0.0.1 - Clean Connections 127.0.0.2 - Add Connection ${version} listener 127.0.0.2 64999 127.0.0.1 security_mode=TLS - Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.2 security_mode=TLS - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.2 + SxpLib.Clean Connections 127.0.0.1 + SxpLib.Clean Connections 127.0.0.2 + SxpLib.Add Connection ${version} listener 127.0.0.2 64999 127.0.0.1 security_mode=TLS + SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.2 security_mode=TLS + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.2 ... 64999 127.0.0.1 - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} speaker 127.0.0.1 + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.1 ... 64999 127.0.0.2 - Clean Connections 127.0.0.1 - Clean Connections 127.0.0.2 - Add Connection ${version} both 127.0.0.2 64999 127.0.0.1 security_mode=TLS - Add Connection ${version} both 127.0.0.1 64999 127.0.0.2 security_mode=TLS - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} both 127.0.0.2 + SxpLib.Clean Connections 127.0.0.1 + SxpLib.Clean Connections 127.0.0.2 + SxpLib.Add Connection ${version} both 127.0.0.2 64999 127.0.0.1 security_mode=TLS + SxpLib.Add Connection ${version} both 127.0.0.1 64999 127.0.0.2 security_mode=TLS + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} both 127.0.0.2 ... 64999 127.0.0.1 - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} both 127.0.0.1 + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} both 127.0.0.1 ... 64999 127.0.0.2 SSL ConectivityCase 2 [Documentation] Test of SSL security with two SXP-nodes while node-1 does not contain node-3 in truststore [Tags] SXP SSL - Add Connection ${version} speaker 127.0.0.3 64999 127.0.0.1 security_mode=TLS - Add Connection ${version} listener 127.0.0.1 64999 127.0.0.3 security_mode=TLS - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} speaker 127.0.0.3 + SxpLib.Add Connection ${version} speaker 127.0.0.3 64999 127.0.0.1 security_mode=TLS + SxpLib.Add Connection ${version} listener 127.0.0.1 64999 127.0.0.3 security_mode=TLS + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.3 ... 64999 127.0.0.1 - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} listener 127.0.0.1 + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.1 ... 64999 127.0.0.3 - Clean Connections 127.0.0.1 - Clean Connections 127.0.0.3 - Add Connection ${version} listener 127.0.0.3 64999 127.0.0.1 security_mode=TLS - Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.3 security_mode=TLS - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} listener 127.0.0.3 + SxpLib.Clean Connections 127.0.0.1 + SxpLib.Clean Connections 127.0.0.3 + SxpLib.Add Connection ${version} listener 127.0.0.3 64999 127.0.0.1 security_mode=TLS + SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.3 security_mode=TLS + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.3 ... 64999 127.0.0.1 - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} speaker 127.0.0.1 + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.1 ... 64999 127.0.0.3 - Clean Connections 127.0.0.1 - Clean Connections 127.0.0.3 - Add Connection ${version} both 127.0.0.3 64999 127.0.0.1 security_mode=TLS - Add Connection ${version} both 127.0.0.1 64999 127.0.0.3 security_mode=TLS - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} both 127.0.0.3 + SxpLib.Clean Connections 127.0.0.1 + SxpLib.Clean Connections 127.0.0.3 + SxpLib.Add Connection ${version} both 127.0.0.3 64999 127.0.0.1 security_mode=TLS + SxpLib.Add Connection ${version} both 127.0.0.1 64999 127.0.0.3 security_mode=TLS + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} both 127.0.0.3 ... 64999 127.0.0.1 - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} both 127.0.0.1 + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} both 127.0.0.1 ... 64999 127.0.0.3 SSL ConectivityCase 3 [Documentation] Test of SSL security with two SXP-nodes while both of nodes does not have each other in truststores [Tags] SXP SSL - Add Connection ${version} speaker 127.0.0.4 64999 127.0.0.1 security_mode=TLS - Add Connection ${version} listener 127.0.0.1 64999 127.0.0.4 security_mode=TLS - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} speaker 127.0.0.4 + SxpLib.Add Connection ${version} speaker 127.0.0.4 64999 127.0.0.1 security_mode=TLS + SxpLib.Add Connection ${version} listener 127.0.0.1 64999 127.0.0.4 security_mode=TLS + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.4 ... 64999 127.0.0.1 - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} listener 127.0.0.1 + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.1 ... 64999 127.0.0.4 - Clean Connections 127.0.0.1 - Clean Connections 127.0.0.4 - Add Connection ${version} listener 127.0.0.4 64999 127.0.0.1 security_mode=TLS - Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.4 security_mode=TLS - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} listener 127.0.0.4 + SxpLib.Clean Connections 127.0.0.1 + SxpLib.Clean Connections 127.0.0.4 + SxpLib.Add Connection ${version} listener 127.0.0.4 64999 127.0.0.1 security_mode=TLS + SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.4 security_mode=TLS + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.4 ... 64999 127.0.0.1 - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} speaker 127.0.0.1 + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.1 ... 64999 127.0.0.4 - Clean Connections 127.0.0.1 - Clean Connections 127.0.0.4 - Add Connection ${version} both 127.0.0.4 64999 127.0.0.1 security_mode=TLS - Add Connection ${version} both 127.0.0.1 64999 127.0.0.4 security_mode=TLS - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} both 127.0.0.4 + SxpLib.Clean Connections 127.0.0.1 + SxpLib.Clean Connections 127.0.0.4 + SxpLib.Add Connection ${version} both 127.0.0.4 64999 127.0.0.1 security_mode=TLS + SxpLib.Add Connection ${version} both 127.0.0.1 64999 127.0.0.4 security_mode=TLS + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} both 127.0.0.4 ... 64999 127.0.0.1 - Verify_Keyword_Never_Passes_Within_Timeout 15 1 Verify Connection ${version} both 127.0.0.1 + WaitForFailure.Verify_Keyword_Never_Passes_Within_Timeout 15 1 SxpLib.Verify Connection ${version} both 127.0.0.1 ... 64999 127.0.0.4 SSL ConectivityCase 4 @@ -99,38 +99,38 @@ SSL ConectivityCase 4 ... uses TCP-MD5 and SSL security. Each node conatains series of bindings that in the end should ... be all propagated to node-5 in topology. [Tags] SXP SSL - Add Connection ${version} listener 127.0.0.2 64999 127.0.0.1 security_mode=TLS - Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.2 security_mode=TLS - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.2 + SxpLib.Add Connection ${version} listener 127.0.0.2 64999 127.0.0.1 security_mode=TLS + SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.2 security_mode=TLS + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.2 ... 64999 127.0.0.1 - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} speaker 127.0.0.1 + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.1 ... 64999 127.0.0.2 - Add Connection ${version} listener 127.0.0.3 64999 127.0.0.1 paswd - Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.3 paswd - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.3 + SxpLib.Add Connection ${version} listener 127.0.0.3 64999 127.0.0.1 paswd + SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.3 paswd + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.3 ... 64999 127.0.0.1 - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} speaker 127.0.0.1 + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.1 ... 64999 127.0.0.3 - Add Connection ${version} listener 127.0.0.4 64999 127.0.0.1 - Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.4 - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.4 + SxpLib.Add Connection ${version} listener 127.0.0.4 64999 127.0.0.1 + SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.4 + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.4 ... 64999 127.0.0.1 - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} speaker 127.0.0.1 + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.1 ... 64999 127.0.0.4 - Add Connection ${version} speaker 127.0.0.5 64999 127.0.0.1 security_mode=TLS - Add Connection ${version} listener 127.0.0.1 64999 127.0.0.5 security_mode=TLS - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} speaker 127.0.0.5 + SxpLib.Add Connection ${version} speaker 127.0.0.5 64999 127.0.0.1 security_mode=TLS + SxpLib.Add Connection ${version} listener 127.0.0.1 64999 127.0.0.5 security_mode=TLS + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.5 ... 64999 127.0.0.1 - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.1 + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.1 ... 64999 127.0.0.5 - Wait Until Keyword Succeeds 15 1 Verify Topology Bindings 6 + BuiltIn.Wait Until Keyword Succeeds 15 1 Verify Topology Bindings 6 *** Keywords *** Setup SXP Environment Local [Arguments] ${node_range} [Documentation] Create session to Controller, copy keystores to ODL machines and setup topology for testing - Setup SXP Session - Open_Connection_To_ODL_System + SxpLib.Setup SXP Session + SSHKeywords.Open_Connection_To_ODL_System ${ODL_SYSTEM_JAVA_HOME} SSHLibrary.Execute_Command java -XshowSettings:properties -version 2>&1 | grep java.home | sed 's/.*= //' : FOR ${node} IN RANGE 1 ${node_range} \ SSHKeywords.Execute_Command_Should_Pass ${ODL_SYSTEM_JAVA_HOME}/bin/keytool -genkeypair -alias odl-sxp-${node} -keyalg RSA -storepass ${password} -keypass ${password} -dname "CN=www.opendaylight.org, OU=csit, O=ODL, L=N/A, S=N/A, C=N/A" -keystore csit-keystore-${node} @@ -150,22 +150,23 @@ Setup SXP Environment Local SSHKeywords.Execute_Command_Should_Pass mv ./csit-truststore-* ${ssl_stores} SSHLibrary.Close Connection : FOR ${node} IN RANGE 1 ${node_range} - \ ${SSL} Create Dictionary truststore=${ssl_stores}/csit-truststore-${node} keystore=${ssl_stores}/csit-keystore-${node} password=${password} - \ Add Node 127.0.0.${node} ${EMPTY} ssl_stores=${SSL} - \ Add Binding ${node}00 1.1.1.${node}/32 127.0.0.${node} - \ Add Binding ${node}00 2.2.2.${node}/32 127.0.0.${node} + \ ${SSL} BuiltIn.Create Dictionary truststore=${ssl_stores}/csit-truststore-${node} keystore=${ssl_stores}/csit-keystore-${node} password=${password} + \ ${rnd_retry_time} = BuiltIn.Evaluate random.randint(1, 5) modules=random + \ SxpLib.Add Node 127.0.0.${node} ${EMPTY} ssl_stores=${SSL} retry_open_timer=${rnd_retry_time} + \ SxpLib.Add Binding ${node}00 1.1.1.${node}/32 127.0.0.${node} + \ SxpLib.Add Binding ${node}00 2.2.2.${node}/32 127.0.0.${node} Verify Topology Bindings [Arguments] ${node_range} [Documentation] Create session to Controller - ${resp} Get Bindings 127.0.0.5 + ${resp} SxpLib.Get Bindings 127.0.0.5 : FOR ${node} IN RANGE 1 ${node_range} - \ Should Contain Binding ${resp} ${node}00 2.2.2.${node}/32 + \ SxpLib.Should Contain Binding ${resp} ${node}00 2.2.2.${node}/32 Clean Nodes [Documentation] Cleanup of resources alocated by test suite - Clean Connections 127.0.0.1 - Clean Connections 127.0.0.2 - Clean Connections 127.0.0.3 - Clean Connections 127.0.0.4 - Clean Connections 127.0.0.5 + SxpLib.Clean Connections 127.0.0.1 + SxpLib.Clean Connections 127.0.0.2 + SxpLib.Clean Connections 127.0.0.3 + SxpLib.Clean Connections 127.0.0.4 + SxpLib.Clean Connections 127.0.0.5 diff --git a/csit/suites/sxp/filtering/040_Peer_Sequence_filtering.robot b/csit/suites/sxp/filtering/040_Peer_Sequence_filtering.robot index 60e5bd7ae5..454e5c7b0f 100644 --- a/csit/suites/sxp/filtering/040_Peer_Sequence_filtering.robot +++ b/csit/suites/sxp/filtering/040_Peer_Sequence_filtering.robot @@ -8,350 +8,347 @@ Library SSHLibrary Library ../../../libraries/Sxp.py Library ../../../libraries/Common.py Resource ../../../libraries/SxpLib.robot -Resource ../../../variables/Variables.py - -*** Variables *** *** Test Cases *** Peer Sequence Filtering [Documentation] Test PeerSequence filter behaviour [Tags] SXP Filtering - ${peers} Add Peers 127.0.0.2 - Add PeerGroup GROUP ${peers} - ${entry1} Get Filter Entry 10 permit ps=le,0 - ${entries} Combine Strings ${entry1} - Add Filter GROUP outbound ${entries} + ${peers} Sxp.Add Peers 127.0.0.2 + SxpLib.Add PeerGroup GROUP ${peers} + ${entry1} Sxp.Get Filter Entry 10 permit ps=le,0 + ${entries} Common.Combine Strings ${entry1} + SxpLib.Add Filter GROUP outbound ${entries} Setup Nodes - Wait Until Keyword Succeeds 4 2 Check PeerSequence One - Delete Filter GROUP outbound - ${entry1} Get Filter Entry 10 permit ps=le,1 - ${entries} Combine Strings ${entry1} - Add Filter GROUP outbound ${entries} - Wait Until Keyword Succeeds 4 2 Check PeerSequence Two - Delete Filter GROUP outbound - ${entry1} Get Filter Entry 10 permit ps=le,2 - ${entries} Combine Strings ${entry1} - Add Filter GROUP outbound ${entries} - Wait Until Keyword Succeeds 4 2 Check PeerSequence Three - Delete Filter GROUP outbound - ${entry1} Get Filter Entry 10 deny ps=eq,1 - ${entry2} Get Filter Entry 20 permit ps=ge,0 - ${entries} Combine Strings ${entry1} ${entry2} - Add Filter GROUP outbound ${entries} - Wait Until Keyword Succeeds 4 2 Check PeerSequence Mix - Delete Filter GROUP outbound + BuiltIn.Wait Until Keyword Succeeds 4 2 Check PeerSequence One + SxpLib.Delete Filter GROUP outbound + ${entry1} Sxp.Get Filter Entry 10 permit ps=le,1 + ${entries} Common.Combine Strings ${entry1} + SxpLib.Add Filter GROUP outbound ${entries} + BuiltIn.Wait Until Keyword Succeeds 4 2 Check PeerSequence Two + SxpLib.Delete Filter GROUP outbound + ${entry1} Sxp.Get Filter Entry 10 permit ps=le,2 + ${entries} Common.Combine Strings ${entry1} + SxpLib.Add Filter GROUP outbound ${entries} + BuiltIn.Wait Until Keyword Succeeds 4 2 Check PeerSequence Three + SxpLib.Delete Filter GROUP outbound + ${entry1} Sxp.Get Filter Entry 10 deny ps=eq,1 + ${entry2} Sxp.Get Filter Entry 20 permit ps=ge,0 + ${entries} Common.Combine Strings ${entry1} ${entry2} + SxpLib.Add Filter GROUP outbound ${entries} + BuiltIn.Wait Until Keyword Succeeds 4 2 Check PeerSequence Mix + SxpLib.Delete Filter GROUP outbound Inbound PL Combinations Filtering [Documentation] Test PeerSequence filter combined with PrefixList filter [Tags] SXP Filtering - @{scopes} Create List inbound inbound-discarding + @{scopes} BuiltIn.Create List inbound inbound-discarding : FOR ${scope} IN @{scopes} - \ Add PeerGroup GROUP - \ ${entry1} Get Filter Entry 10 permit ps=le,1 - \ ${entries} Combine Strings ${entry1} - \ Add Filter GROUP ${scope} ${entries} + \ SxpLib.Add PeerGroup GROUP + \ ${entry1} Sxp.Get Filter Entry 10 permit ps=le,1 + \ ${entries} Common.Combine Strings ${entry1} + \ SxpLib.Add Filter GROUP ${scope} ${entries} \ Setup Nodes Inbound Test - \ ${peers} Add Peers 127.0.0.2 - \ Add PeerGroup GROUP2 ${peers} - \ ${entry1} Get Filter Entry 10 permit pl=1.1.0.0/16 - \ ${entries} Combine Strings ${entry1} - \ Add Filter GROUP2 ${scope} ${entries} - \ Wait Until Keyword Succeeds 4 2 Check Inbound PL Combinations Filtering + \ ${peers} Sxp.Add Peers 127.0.0.2 + \ SxpLib.Add PeerGroup GROUP2 ${peers} + \ ${entry1} Sxp.Get Filter Entry 10 permit pl=1.1.0.0/16 + \ ${entries} Common.Combine Strings ${entry1} + \ SxpLib.Add Filter GROUP2 ${scope} ${entries} + \ BuiltIn.Wait Until Keyword Succeeds 4 2 Check Inbound PL Combinations Filtering \ Clean Nodes Inbound ACL Combinations Filtering [Documentation] Test PeerSequence filter combined with ACL filter [Tags] SXP Filtering - @{scopes} Create List inbound inbound-discarding + @{scopes} BuiltIn.Create List inbound inbound-discarding : FOR ${scope} IN @{scopes} - \ ${peers} Add Peers 127.0.0.2 - \ Add PeerGroup GROUP2 ${peers} - \ ${entry1} Get Filter Entry 10 permit ps=le,2 - \ ${entries} Combine Strings ${entry1} - \ Add Filter GROUP2 ${scope} ${entries} + \ ${peers} Sxp.Add Peers 127.0.0.2 + \ SxpLib.Add PeerGroup GROUP2 ${peers} + \ ${entry1} Sxp.Get Filter Entry 10 permit ps=le,2 + \ ${entries} Common.Combine Strings ${entry1} + \ SxpLib.Add Filter GROUP2 ${scope} ${entries} \ Setup Nodes Inbound Test - \ ${entry1} Get Filter Entry 10 permit acl=1.1.1.0,0.0.0.255 - \ ${entries} Combine Strings ${entry1} - \ Add Filter GROUP2 ${scope} ${entries} - \ ${peers} Add Peers 127.0.0.5 - \ Add PeerGroup GROUP5 ${peers} - \ ${entry1} Get Filter Entry 10 permit sgt=40 - \ ${entries} Combine Strings ${entry1} - \ Add Filter GROUP5 ${scope} ${entries} - \ Wait Until Keyword Succeeds 4 2 Check Inbound ACL Combinations Filtering + \ ${entry1} Sxp.Get Filter Entry 10 permit acl=1.1.1.0,0.0.0.255 + \ ${entries} Common.Combine Strings ${entry1} + \ SxpLib.Add Filter GROUP2 ${scope} ${entries} + \ ${peers} Sxp.Add Peers 127.0.0.5 + \ SxpLib.Add PeerGroup GROUP5 ${peers} + \ ${entry1} Sxp.Get Filter Entry 10 permit sgt=40 + \ ${entries} Common.Combine Strings ${entry1} + \ SxpLib.Add Filter GROUP5 ${scope} ${entries} + \ BuiltIn.Wait Until Keyword Succeeds 4 2 Check Inbound ACL Combinations Filtering \ Clean Nodes Outbound PL Combinations Filtering [Documentation] Test PeerSequence filter combined with PrefixList filter [Tags] SXP Filtering - Add PeerGroup GROUP - ${entry1} Get Filter Entry 10 permit pl=1.1.1.0/24 - ${entries} Combine Strings ${entry1} - Add Filter GROUP outbound ${entries} + SxpLib.Add PeerGroup GROUP + ${entry1} Sxp.Get Filter Entry 10 permit pl=1.1.1.0/24 + ${entries} Common.Combine Strings ${entry1} + SxpLib.Add Filter GROUP outbound ${entries} Setup Nodes Outbound Test - ${peers} Add Peers 127.0.0.2 - Add PeerGroup GROUP2 ${peers} - ${entry1} Get Filter Entry 10 permit ps=le,1 - ${entries} Combine Strings ${entry1} - Add Filter GROUP2 outbound ${entries} - Wait Until Keyword Succeeds 4 2 Check Outbound PL Combinations Filtering + ${peers} Sxp.Add Peers 127.0.0.2 + SxpLib.Add PeerGroup GROUP2 ${peers} + ${entry1} Sxp.Get Filter Entry 10 permit ps=le,1 + ${entries} Common.Combine Strings ${entry1} + SxpLib.Add Filter GROUP2 outbound ${entries} + BuiltIn.Wait Until Keyword Succeeds 4 2 Check Outbound PL Combinations Filtering Outbound ACL Combinations Filtering [Documentation] Test PeerSequence filter combined with ACL filter [Tags] SXP Filtering - Add PeerGroup GROUP - ${entry1} Get Filter Entry 10 permit ps=eq,0 - ${entry2} Get Filter Entry 20 permit ps=ge,2 - ${entries} Combine Strings ${entry1} ${entry2} - Add Filter GROUP outbound ${entries} + SxpLib.Add PeerGroup GROUP + ${entry1} Sxp.Get Filter Entry 10 permit ps=eq,0 + ${entry2} Sxp.Get Filter Entry 20 permit ps=ge,2 + ${entries} Common.Combine Strings ${entry1} ${entry2} + SxpLib.Add Filter GROUP outbound ${entries} Setup Nodes Outbound Test - ${peers} Add Peers 127.0.0.2 - Add PeerGroup GROUP2 ${peers} - ${entry1} Get Filter Entry 10 permit acl=1.1.0.0,0.0.255.255 - ${entries} Combine Strings ${entry1} - Add Filter GROUP2 outbound ${entries} - Wait Until Keyword Succeeds 4 2 Check Outbound ACL Combinations Filtering + ${peers} Sxp.Add Peers 127.0.0.2 + SxpLib.Add PeerGroup GROUP2 ${peers} + ${entry1} Sxp.Get Filter Entry 10 permit acl=1.1.0.0,0.0.255.255 + ${entries} Common.Combine Strings ${entry1} + SxpLib.Add Filter GROUP2 outbound ${entries} + BuiltIn.Wait Until Keyword Succeeds 4 2 Check Outbound ACL Combinations Filtering *** Keywords *** Setup Nodes [Arguments] ${version}=version4 ${password}=none [Documentation] Setup Topology for PeerSequence tests - Add Binding 10 10.10.10.10/32 127.0.0.1 - Add Binding 10 10.10.10.0/24 127.0.0.1 - Add Binding 10 10.10.0.0/16 127.0.0.1 - Add Binding 10 10.0.0.0/8 127.0.0.1 + SxpLib.Add Binding 10 10.10.10.10/32 127.0.0.1 + SxpLib.Add Binding 10 10.10.10.0/24 127.0.0.1 + SxpLib.Add Binding 10 10.10.0.0/16 127.0.0.1 + SxpLib.Add Binding 10 10.0.0.0/8 127.0.0.1 : FOR ${node} IN RANGE 2 6 - \ Add Binding ${node}0 10.10.10.${node}0/32 127.0.0.${node} - \ Add Binding ${node}0 10.10.${node}0.0/24 127.0.0.${node} - \ Add Binding ${node}0 10.${node}0.0.0/16 127.0.0.${node} - \ Add Binding ${node}0 ${node}0.0.0.0/8 127.0.0.${node} - Add Connection ${version} listener 127.0.0.1 64999 127.0.0.2 ${password} - Add Connection ${version} speaker 127.0.0.2 64999 127.0.0.1 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} speaker 127.0.0.2 - Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.3 ${password} - Add Connection ${version} listener 127.0.0.3 64999 127.0.0.1 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.3 - Add Connection ${version} speaker 127.0.0.3 64999 127.0.0.4 ${password} - Add Connection ${version} listener 127.0.0.4 64999 127.0.0.3 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.4 + \ SxpLib.Add Binding ${node}0 10.10.10.${node}0/32 127.0.0.${node} + \ SxpLib.Add Binding ${node}0 10.10.${node}0.0/24 127.0.0.${node} + \ SxpLib.Add Binding ${node}0 10.${node}0.0.0/16 127.0.0.${node} + \ SxpLib.Add Binding ${node}0 ${node}0.0.0.0/8 127.0.0.${node} + SxpLib.Add Connection ${version} listener 127.0.0.1 64999 127.0.0.2 ${password} + SxpLib.Add Connection ${version} speaker 127.0.0.2 64999 127.0.0.1 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.2 + SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.3 ${password} + SxpLib.Add Connection ${version} listener 127.0.0.3 64999 127.0.0.1 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.3 + SxpLib.Add Connection ${version} speaker 127.0.0.3 64999 127.0.0.4 ${password} + SxpLib.Add Connection ${version} listener 127.0.0.4 64999 127.0.0.3 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.4 ... 64999 127.0.0.3 - Add Connection ${version} speaker 127.0.0.4 64999 127.0.0.5 ${password} - Add Connection ${version} listener 127.0.0.5 64999 127.0.0.4 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.5 + SxpLib.Add Connection ${version} speaker 127.0.0.4 64999 127.0.0.5 ${password} + SxpLib.Add Connection ${version} listener 127.0.0.5 64999 127.0.0.4 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.5 ... 64999 127.0.0.4 Setup Nodes Inbound Test [Arguments] ${version}=version4 ${password}=none [Documentation] Setup Topology for inbound PeerSequence and other filters tests : FOR ${node} IN RANGE 2 6 - \ Add Binding ${node}0 1.1.1.${node}/32 127.0.0.${node} - \ Add Binding ${node}0 1.1.${node}.0/24 127.0.0.${node} - \ Add Binding ${node}0 1.${node}.0.0/16 127.0.0.${node} - \ Add Binding ${node}0 ${node}.0.0.0/8 127.0.0.${node} - Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.2 ${password} - Add Connection ${version} listener 127.0.0.2 64999 127.0.0.1 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.2 - Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.5 ${password} - Add Connection ${version} listener 127.0.0.5 64999 127.0.0.1 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.5 - Add Connection ${version} both 127.0.0.3 64999 127.0.0.2 ${password} - Add Connection ${version} both 127.0.0.2 64999 127.0.0.3 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} both 127.0.0.2 + \ SxpLib.Add Binding ${node}0 1.1.1.${node}/32 127.0.0.${node} + \ SxpLib.Add Binding ${node}0 1.1.${node}.0/24 127.0.0.${node} + \ SxpLib.Add Binding ${node}0 1.${node}.0.0/16 127.0.0.${node} + \ SxpLib.Add Binding ${node}0 ${node}.0.0.0/8 127.0.0.${node} + SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.2 ${password} + SxpLib.Add Connection ${version} listener 127.0.0.2 64999 127.0.0.1 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.2 + SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.5 ${password} + SxpLib.Add Connection ${version} listener 127.0.0.5 64999 127.0.0.1 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.5 + SxpLib.Add Connection ${version} both 127.0.0.3 64999 127.0.0.2 ${password} + SxpLib.Add Connection ${version} both 127.0.0.2 64999 127.0.0.3 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} both 127.0.0.2 ... 64999 127.0.0.3 - Add Connection ${version} both 127.0.0.3 64999 127.0.0.4 ${password} - Add Connection ${version} both 127.0.0.4 64999 127.0.0.3 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} both 127.0.0.4 + SxpLib.Add Connection ${version} both 127.0.0.3 64999 127.0.0.4 ${password} + SxpLib.Add Connection ${version} both 127.0.0.4 64999 127.0.0.3 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} both 127.0.0.4 ... 64999 127.0.0.3 - Add Connection ${version} both 127.0.0.4 64999 127.0.0.5 ${password} - Add Connection ${version} both 127.0.0.5 64999 127.0.0.4 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} both 127.0.0.5 + SxpLib.Add Connection ${version} both 127.0.0.4 64999 127.0.0.5 ${password} + SxpLib.Add Connection ${version} both 127.0.0.5 64999 127.0.0.4 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} both 127.0.0.5 ... 64999 127.0.0.4 Setup Nodes Outbound Test [Arguments] ${version}=version4 ${password}=none [Documentation] Setup Topology for outbound PeerSequence and other filters tests - Add Binding 10 1.1.1.1/32 127.0.0.1 - Add Binding 10 1.1.1.0/24 127.0.0.1 - Add Binding 10 1.1.0.0/16 127.0.0.1 - Add Binding 10 1.0.0.0/8 127.0.0.1 + SxpLib.Add Binding 10 1.1.1.1/32 127.0.0.1 + SxpLib.Add Binding 10 1.1.1.0/24 127.0.0.1 + SxpLib.Add Binding 10 1.1.0.0/16 127.0.0.1 + SxpLib.Add Binding 10 1.0.0.0/8 127.0.0.1 : FOR ${node} IN RANGE 3 6 - \ Add Binding ${node}0 1.1.1.${node}/32 127.0.0.${node} - \ Add Binding ${node}0 1.1.${node}.0/24 127.0.0.${node} - \ Add Binding ${node}0 1.${node}.0.0/16 127.0.0.${node} - \ Add Binding ${node}0 ${node}.0.0.0/8 127.0.0.${node} - Add Connection ${version} listener 127.0.0.1 64999 127.0.0.2 ${password} - Add Connection ${version} speaker 127.0.0.2 64999 127.0.0.1 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} speaker 127.0.0.2 - Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.3 ${password} - Add Connection ${version} listener 127.0.0.3 64999 127.0.0.1 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.3 - Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.4 ${password} - Add Connection ${version} listener 127.0.0.4 64999 127.0.0.1 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.4 - Add Connection ${version} both 127.0.0.4 64999 127.0.0.5 ${password} - Add Connection ${version} both 127.0.0.5 64999 127.0.0.4 ${password} - Wait Until Keyword Succeeds 15 1 Verify Connection ${version} both 127.0.0.5 + \ SxpLib.Add Binding ${node}0 1.1.1.${node}/32 127.0.0.${node} + \ SxpLib.Add Binding ${node}0 1.1.${node}.0/24 127.0.0.${node} + \ SxpLib.Add Binding ${node}0 1.${node}.0.0/16 127.0.0.${node} + \ SxpLib.Add Binding ${node}0 ${node}.0.0.0/8 127.0.0.${node} + SxpLib.Add Connection ${version} listener 127.0.0.1 64999 127.0.0.2 ${password} + SxpLib.Add Connection ${version} speaker 127.0.0.2 64999 127.0.0.1 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} speaker 127.0.0.2 + SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.3 ${password} + SxpLib.Add Connection ${version} listener 127.0.0.3 64999 127.0.0.1 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.3 + SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.4 ${password} + SxpLib.Add Connection ${version} listener 127.0.0.4 64999 127.0.0.1 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} listener 127.0.0.4 + SxpLib.Add Connection ${version} both 127.0.0.4 64999 127.0.0.5 ${password} + SxpLib.Add Connection ${version} both 127.0.0.5 64999 127.0.0.4 ${password} + BuiltIn.Wait Until Keyword Succeeds 15 1 SxpLib.Verify Connection ${version} both 127.0.0.5 ... 64999 127.0.0.4 Check PeerSequence One [Documentation] Node 127.0.0.2 should contain only bindings with peer sequence lower or equals 1 - ${resp} Get Bindings 127.0.0.2 - Should Contain Binding ${resp} 10 10.10.10.10/32 sxp - Should Contain Binding ${resp} 10 10.10.10.0/24 sxp - Should Contain Binding ${resp} 10 10.10.0.0/16 sxp - Should Contain Binding ${resp} 10 10.0.0.0/8 sxp + ${resp} SxpLib.Get Bindings 127.0.0.2 + SxpLib.Should Contain Binding ${resp} 10 10.10.10.10/32 sxp + SxpLib.Should Contain Binding ${resp} 10 10.10.10.0/24 sxp + SxpLib.Should Contain Binding ${resp} 10 10.10.0.0/16 sxp + SxpLib.Should Contain Binding ${resp} 10 10.0.0.0/8 sxp : FOR ${node} IN RANGE 3 6 - \ Should Not Contain Binding ${resp} ${node}0 10.10.10.${node}0/32 - \ Should Not Contain Binding ${resp} ${node}0 10.10.${node}0.0/24 - \ Should Not Contain Binding ${resp} ${node}0 10.${node}0.0.0/16 - \ Should Not Contain Binding ${resp} ${node}0 ${node}0.0.0.0/8 + \ SxpLib.Should Not Contain Binding ${resp} ${node}0 10.10.10.${node}0/32 + \ SxpLib.Should Not Contain Binding ${resp} ${node}0 10.10.${node}0.0/24 + \ SxpLib.Should Not Contain Binding ${resp} ${node}0 10.${node}0.0.0/16 + \ SxpLib.Should Not Contain Binding ${resp} ${node}0 ${node}0.0.0.0/8 Check PeerSequence Two [Documentation] Node 127.0.0.2 should contain only bindings with peer sequence lower or equals 2 - ${resp} Get Bindings 127.0.0.2 - Should Contain Binding ${resp} 10 10.10.10.10/32 sxp - Should Contain Binding ${resp} 10 10.10.10.0/24 sxp - Should Contain Binding ${resp} 10 10.10.0.0/16 sxp - Should Contain Binding ${resp} 10 10.0.0.0/8 sxp - Should Contain Binding ${resp} 30 10.10.10.30/32 sxp - Should Contain Binding ${resp} 30 10.10.30.0/24 sxp - Should Contain Binding ${resp} 30 10.30.0.0/16 sxp - Should Contain Binding ${resp} 30 30.0.0.0/8 sxp + ${resp} SxpLib.Get Bindings 127.0.0.2 + SxpLib.Should Contain Binding ${resp} 10 10.10.10.10/32 sxp + SxpLib.Should Contain Binding ${resp} 10 10.10.10.0/24 sxp + SxpLib.Should Contain Binding ${resp} 10 10.10.0.0/16 sxp + SxpLib.Should Contain Binding ${resp} 10 10.0.0.0/8 sxp + SxpLib.Should Contain Binding ${resp} 30 10.10.10.30/32 sxp + SxpLib.Should Contain Binding ${resp} 30 10.10.30.0/24 sxp + SxpLib.Should Contain Binding ${resp} 30 10.30.0.0/16 sxp + SxpLib.Should Contain Binding ${resp} 30 30.0.0.0/8 sxp : FOR ${node} IN RANGE 4 6 - \ Should Not Contain Binding ${resp} ${node}0 10.10.10.${node}0/32 - \ Should Not Contain Binding ${resp} ${node}0 10.10.${node}0.0/24 - \ Should Not Contain Binding ${resp} ${node}0 10.${node}0.0.0/16 - \ Should Not Contain Binding ${resp} ${node}0 ${node}0.0.0.0/8 + \ SxpLib.Should Not Contain Binding ${resp} ${node}0 10.10.10.${node}0/32 + \ SxpLib.Should Not Contain Binding ${resp} ${node}0 10.10.${node}0.0/24 + \ SxpLib.Should Not Contain Binding ${resp} ${node}0 10.${node}0.0.0/16 + \ SxpLib.Should Not Contain Binding ${resp} ${node}0 ${node}0.0.0.0/8 Check PeerSequence Three [Documentation] Node 127.0.0.2 should contain only bindings with peer sequence lower or equals 3 - ${resp} Get Bindings 127.0.0.2 - Should Contain Binding ${resp} 10 10.10.10.10/32 sxp - Should Contain Binding ${resp} 10 10.10.10.0/24 sxp - Should Contain Binding ${resp} 10 10.10.0.0/16 sxp - Should Contain Binding ${resp} 10 10.0.0.0/8 sxp - Should Contain Binding ${resp} 30 10.10.10.30/32 sxp - Should Contain Binding ${resp} 30 10.10.30.0/24 sxp - Should Contain Binding ${resp} 30 10.30.0.0/16 sxp - Should Contain Binding ${resp} 30 30.0.0.0/8 sxp - Should Contain Binding ${resp} 40 10.10.10.40/32 sxp - Should Contain Binding ${resp} 40 10.10.40.0/24 sxp - Should Contain Binding ${resp} 40 10.40.0.0/16 sxp - Should Contain Binding ${resp} 40 40.0.0.0/8 sxp - Should Not Contain Binding ${resp} 50 10.10.10.50/32 - Should Not Contain Binding ${resp} 50 10.10.50.0/24 - Should Not Contain Binding ${resp} 50 10.50.0.0/16 - Should Not Contain Binding ${resp} 50 50.0.0.0/8 + ${resp} SxpLib.Get Bindings 127.0.0.2 + SxpLib.Should Contain Binding ${resp} 10 10.10.10.10/32 sxp + SxpLib.Should Contain Binding ${resp} 10 10.10.10.0/24 sxp + SxpLib.Should Contain Binding ${resp} 10 10.10.0.0/16 sxp + SxpLib.Should Contain Binding ${resp} 10 10.0.0.0/8 sxp + SxpLib.Should Contain Binding ${resp} 30 10.10.10.30/32 sxp + SxpLib.Should Contain Binding ${resp} 30 10.10.30.0/24 sxp + SxpLib.Should Contain Binding ${resp} 30 10.30.0.0/16 sxp + SxpLib.Should Contain Binding ${resp} 30 30.0.0.0/8 sxp + SxpLib.Should Contain Binding ${resp} 40 10.10.10.40/32 sxp + SxpLib.Should Contain Binding ${resp} 40 10.10.40.0/24 sxp + SxpLib.Should Contain Binding ${resp} 40 10.40.0.0/16 sxp + SxpLib.Should Contain Binding ${resp} 40 40.0.0.0/8 sxp + SxpLib.Should Not Contain Binding ${resp} 50 10.10.10.50/32 + SxpLib.Should Not Contain Binding ${resp} 50 10.10.50.0/24 + SxpLib.Should Not Contain Binding ${resp} 50 10.50.0.0/16 + SxpLib.Should Not Contain Binding ${resp} 50 50.0.0.0/8 Check PeerSequence Mix [Documentation] Node 127.0.0.2 should not contain bindings with peer sequence 1 - ${resp} Get Bindings 127.0.0.2 - Should Contain Binding ${resp} 10 10.10.10.10/32 sxp - Should Contain Binding ${resp} 10 10.10.10.0/24 sxp - Should Contain Binding ${resp} 10 10.10.0.0/16 sxp - Should Contain Binding ${resp} 10 10.0.0.0/8 sxp - Should Not Contain Binding ${resp} 30 10.10.10.30/32 sxp - Should Not Contain Binding ${resp} 30 10.10.30.0/24 sxp - Should Not Contain Binding ${resp} 30 10.30.0.0/16 sxp - Should Not Contain Binding ${resp} 30 30.0.0.0/8 sxp - Should Contain Binding ${resp} 40 10.10.10.40/32 sxp - Should Contain Binding ${resp} 40 10.10.40.0/24 sxp - Should Contain Binding ${resp} 40 10.40.0.0/16 sxp - Should Contain Binding ${resp} 40 40.0.0.0/8 sxp - Should Contain Binding ${resp} 50 10.10.10.50/32 - Should Contain Binding ${resp} 50 10.10.50.0/24 - Should Contain Binding ${resp} 50 10.50.0.0/16 - Should Contain Binding ${resp} 50 50.0.0.0/8 + ${resp} SxpLib.Get Bindings 127.0.0.2 + SxpLib.Should Contain Binding ${resp} 10 10.10.10.10/32 sxp + SxpLib.Should Contain Binding ${resp} 10 10.10.10.0/24 sxp + SxpLib.Should Contain Binding ${resp} 10 10.10.0.0/16 sxp + SxpLib.Should Contain Binding ${resp} 10 10.0.0.0/8 sxp + SxpLib.Should Not Contain Binding ${resp} 30 10.10.10.30/32 sxp + SxpLib.Should Not Contain Binding ${resp} 30 10.10.30.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 30 10.30.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 30 30.0.0.0/8 sxp + SxpLib.Should Contain Binding ${resp} 40 10.10.10.40/32 sxp + SxpLib.Should Contain Binding ${resp} 40 10.10.40.0/24 sxp + SxpLib.Should Contain Binding ${resp} 40 10.40.0.0/16 sxp + SxpLib.Should Contain Binding ${resp} 40 40.0.0.0/8 sxp + SxpLib.Should Contain Binding ${resp} 50 10.10.10.50/32 + SxpLib.Should Contain Binding ${resp} 50 10.10.50.0/24 + SxpLib.Should Contain Binding ${resp} 50 10.50.0.0/16 + SxpLib.Should Contain Binding ${resp} 50 50.0.0.0/8 Check Inbound PL Combinations Filtering [Documentation] Node 127.0.0.1 should containt bindings with peer sequence lower than 1 and pl 1.1.0.0/16 - ${resp} Get Bindings 127.0.0.1 - Should Contain Binding ${resp} 20 1.1.1.2/32 sxp - Should Contain Binding ${resp} 20 1.1.2.0/24 sxp - Should Not Contain Binding ${resp} 20 1.2.0.0/16 sxp - Should Not Contain Binding ${resp} 20 2.0.0.0/8 sxp - Should Not Contain Binding ${resp} 30 1.1.1.3/32 sxp - Should Not Contain Binding ${resp} 30 1.1.3.0/24 sxp - Should Not Contain Binding ${resp} 30 1.3.0.0/16 sxp - Should Not Contain Binding ${resp} 30 3.0.0.0/8 sxp - Should Not Contain Binding ${resp} 40 1.1.1.4/32 sxp - Should Not Contain Binding ${resp} 40 1.1.4.0/24 sxp - Should Not Contain Binding ${resp} 40 1.4.0.0/16 sxp - Should Not Contain Binding ${resp} 40 4.0.0.0/8 sxp - Should Contain Binding ${resp} 50 1.1.1.5/32 sxp - Should Contain Binding ${resp} 50 1.1.5.0/24 sxp - Should Contain Binding ${resp} 50 1.5.0.0/16 sxp - Should Contain Binding ${resp} 50 5.0.0.0/8 sxp + ${resp} SxpLib.Get Bindings 127.0.0.1 + SxpLib.Should Contain Binding ${resp} 20 1.1.1.2/32 sxp + SxpLib.Should Contain Binding ${resp} 20 1.1.2.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 20 1.2.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 20 2.0.0.0/8 sxp + SxpLib.Should Not Contain Binding ${resp} 30 1.1.1.3/32 sxp + SxpLib.Should Not Contain Binding ${resp} 30 1.1.3.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 30 1.3.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 30 3.0.0.0/8 sxp + SxpLib.Should Not Contain Binding ${resp} 40 1.1.1.4/32 sxp + SxpLib.Should Not Contain Binding ${resp} 40 1.1.4.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 40 1.4.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 40 4.0.0.0/8 sxp + SxpLib.Should Contain Binding ${resp} 50 1.1.1.5/32 sxp + SxpLib.Should Contain Binding ${resp} 50 1.1.5.0/24 sxp + SxpLib.Should Contain Binding ${resp} 50 1.5.0.0/16 sxp + SxpLib.Should Contain Binding ${resp} 50 5.0.0.0/8 sxp Check Inbound ACL Combinations Filtering [Documentation] Node 127.0.0.1 should containt bindings with peer sequence lower than 2 and acl 1.1.1.0 0.0.0.255 - ${resp} Get Bindings 127.0.0.1 - Should Contain Binding ${resp} 20 1.1.1.2/32 sxp - Should Not Contain Binding ${resp} 20 1.1.2.0/24 sxp - Should Not Contain Binding ${resp} 20 1.2.0.0/16 sxp - Should Not Contain Binding ${resp} 20 2.0.0.0/8 sxp - Should Contain Binding ${resp} 30 1.1.1.3/32 sxp - Should Not Contain Binding ${resp} 30 1.1.3.0/24 sxp - Should Not Contain Binding ${resp} 30 1.3.0.0/16 sxp - Should Not Contain Binding ${resp} 30 3.0.0.0/8 sxp - Should Contain Binding ${resp} 40 1.1.1.4/32 sxp - Should Contain Binding ${resp} 40 1.1.4.0/24 sxp - Should Contain Binding ${resp} 40 1.4.0.0/16 sxp - Should Contain Binding ${resp} 40 4.0.0.0/8 sxp - Should Not Contain Binding ${resp} 50 1.1.1.5/32 sxp - Should Not Contain Binding ${resp} 50 1.1.5.0/24 sxp - Should Not Contain Binding ${resp} 50 1.5.0.0/16 sxp - Should Not Contain Binding ${resp} 50 5.0.0.0/8 sxp + ${resp} SxpLib.Get Bindings 127.0.0.1 + SxpLib.Should Contain Binding ${resp} 20 1.1.1.2/32 sxp + SxpLib.Should Not Contain Binding ${resp} 20 1.1.2.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 20 1.2.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 20 2.0.0.0/8 sxp + SxpLib.Should Contain Binding ${resp} 30 1.1.1.3/32 sxp + SxpLib.Should Not Contain Binding ${resp} 30 1.1.3.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 30 1.3.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 30 3.0.0.0/8 sxp + SxpLib.Should Contain Binding ${resp} 40 1.1.1.4/32 sxp + SxpLib.Should Contain Binding ${resp} 40 1.1.4.0/24 sxp + SxpLib.Should Contain Binding ${resp} 40 1.4.0.0/16 sxp + SxpLib.Should Contain Binding ${resp} 40 4.0.0.0/8 sxp + SxpLib.Should Not Contain Binding ${resp} 50 1.1.1.5/32 sxp + SxpLib.Should Not Contain Binding ${resp} 50 1.1.5.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 50 1.5.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 50 5.0.0.0/8 sxp Check Outbound PL Combinations Filtering [Documentation] Node 127.0.0.2 should containt bindings with peer sequence lower than 1 and pl 1.1.1.0/24 - ${resp} Get Bindings 127.0.0.2 - Should Contain Binding ${resp} 10 1.1.1.1/32 sxp - Should Contain Binding ${resp} 10 1.1.1.0/24 sxp - Should Not Contain Binding ${resp} 10 1.1.0.0/16 sxp - Should Not Contain Binding ${resp} 10 1.0.0.0/8 sxp - Should Contain Binding ${resp} 30 1.1.1.3/32 sxp - Should Not Contain Binding ${resp} 30 1.1.3.0/24 sxp - Should Not Contain Binding ${resp} 30 1.3.0.0/16 sxp - Should Not Contain Binding ${resp} 30 3.0.0.0/8 sxp - Should Contain Binding ${resp} 40 1.1.1.4/32 sxp - Should Not Contain Binding ${resp} 40 1.1.4.0/24 sxp - Should Not Contain Binding ${resp} 40 1.4.0.0/16 sxp - Should Not Contain Binding ${resp} 40 4.0.0.0/8 sxp - Should Not Contain Binding ${resp} 50 1.1.1.5/32 sxp - Should Not Contain Binding ${resp} 50 1.1.5.0/24 sxp - Should Not Contain Binding ${resp} 50 1.5.0.0/16 sxp - Should Not Contain Binding ${resp} 50 5.0.0.0/8 sxp + ${resp} SxpLib.Get Bindings 127.0.0.2 + SxpLib.Should Contain Binding ${resp} 10 1.1.1.1/32 sxp + SxpLib.Should Contain Binding ${resp} 10 1.1.1.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 10 1.1.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 10 1.0.0.0/8 sxp + SxpLib.Should Contain Binding ${resp} 30 1.1.1.3/32 sxp + SxpLib.Should Not Contain Binding ${resp} 30 1.1.3.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 30 1.3.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 30 3.0.0.0/8 sxp + SxpLib.Should Contain Binding ${resp} 40 1.1.1.4/32 sxp + SxpLib.Should Not Contain Binding ${resp} 40 1.1.4.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 40 1.4.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 40 4.0.0.0/8 sxp + SxpLib.Should Not Contain Binding ${resp} 50 1.1.1.5/32 sxp + SxpLib.Should Not Contain Binding ${resp} 50 1.1.5.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 50 1.5.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 50 5.0.0.0/8 sxp Check Outbound ACL Combinations Filtering [Documentation] Node 127.0.0.2 should containt bindings with peer sequence equals to 0 or greter than 2 and acl 1.1.0.0 0.0.255.255 - ${resp} Get Bindings 127.0.0.2 - Should Contain Binding ${resp} 10 1.1.1.1/32 sxp - Should Contain Binding ${resp} 10 1.1.1.0/24 sxp - Should Contain Binding ${resp} 10 1.1.0.0/16 sxp - Should Not Contain Binding ${resp} 10 1.0.0.0/8 sxp - Should Not Contain Binding ${resp} 30 1.1.1.3/32 sxp - Should Not Contain Binding ${resp} 30 1.1.3.0/24 sxp - Should Not Contain Binding ${resp} 30 1.3.0.0/16 sxp - Should Not Contain Binding ${resp} 30 3.0.0.0/8 sxp - Should Not Contain Binding ${resp} 40 1.1.1.4/32 sxp - Should Not Contain Binding ${resp} 40 1.1.4.0/24 sxp - Should Not Contain Binding ${resp} 40 1.4.0.0/16 sxp - Should Not Contain Binding ${resp} 40 4.0.0.0/8 sxp - Should Contain Binding ${resp} 50 1.1.1.5/32 sxp - Should Contain Binding ${resp} 50 1.1.5.0/24 sxp - Should Not Contain Binding ${resp} 50 1.5.0.0/16 sxp - Should Not Contain Binding ${resp} 50 5.0.0.0/8 sxp + ${resp} SxpLib.Get Bindings 127.0.0.2 + SxpLib.Should Contain Binding ${resp} 10 1.1.1.1/32 sxp + SxpLib.Should Contain Binding ${resp} 10 1.1.1.0/24 sxp + SxpLib.Should Contain Binding ${resp} 10 1.1.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 10 1.0.0.0/8 sxp + SxpLib.Should Not Contain Binding ${resp} 30 1.1.1.3/32 sxp + SxpLib.Should Not Contain Binding ${resp} 30 1.1.3.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 30 1.3.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 30 3.0.0.0/8 sxp + SxpLib.Should Not Contain Binding ${resp} 40 1.1.1.4/32 sxp + SxpLib.Should Not Contain Binding ${resp} 40 1.1.4.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 40 1.4.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 40 4.0.0.0/8 sxp + SxpLib.Should Contain Binding ${resp} 50 1.1.1.5/32 sxp + SxpLib.Should Contain Binding ${resp} 50 1.1.5.0/24 sxp + SxpLib.Should Not Contain Binding ${resp} 50 1.5.0.0/16 sxp + SxpLib.Should Not Contain Binding ${resp} 50 5.0.0.0/8 sxp Clean Nodes - Clean Bindings 127.0.0.1 - Clean Bindings 127.0.0.2 - Clean Bindings 127.0.0.3 - Clean Bindings 127.0.0.4 - Clean Bindings 127.0.0.5 - Clean Peer Groups 127.0.0.1 - Clean Connections 127.0.0.1 - Clean Connections 127.0.0.2 - Clean Connections 127.0.0.3 - Clean Connections 127.0.0.4 - Clean Connections 127.0.0.5 + SxpLib.Clean Bindings 127.0.0.1 + SxpLib.Clean Bindings 127.0.0.2 + SxpLib.Clean Bindings 127.0.0.3 + SxpLib.Clean Bindings 127.0.0.4 + SxpLib.Clean Bindings 127.0.0.5 + SxpLib.Clean Peer Groups 127.0.0.1 + SxpLib.Clean Connections 127.0.0.1 + SxpLib.Clean Connections 127.0.0.2 + SxpLib.Clean Connections 127.0.0.3 + SxpLib.Clean Connections 127.0.0.4 + SxpLib.Clean Connections 127.0.0.5 -- 2.36.6