8ba154cd8fd5e2e671ca6add5de4d6b4d6bec9ce
[integration/test.git] / csit / suites / sxp / filtering / 040_Peer_Sequence_filtering.robot
1 *** Settings ***
2 Documentation     Test suite to verify PeerSequence filtering functionality
3 Suite Setup       Setup SXP Environment    6
4 Suite Teardown    Clean SXP Environment    6
5 Test Teardown     Clean Nodes
6 Library           RequestsLibrary
7 Library           SSHLibrary
8 Library           ../../../libraries/Sxp.py
9 Library           ../../../libraries/Common.py
10 Resource          ../../../libraries/SxpLib.robot
11
12 *** Test Cases ***
13 Peer Sequence Filtering
14     [Documentation]    Test PeerSequence filter behaviour
15     [Tags]    SXP    Filtering
16     ${peers}    Sxp.Add Peers    127.0.0.2
17     SxpLib.Add PeerGroup    GROUP    ${peers}
18     ${entry1}    Sxp.Get Filter Entry    10    permit    ps=le,0
19     ${entries}    Common.Combine Strings    ${entry1}
20     SxpLib.Add Filter    GROUP    outbound    ${entries}
21     Setup Nodes
22     BuiltIn.Wait Until Keyword Succeeds    4    2    Check PeerSequence One
23     SxpLib.Delete Filter    GROUP    outbound
24     ${entry1}    Sxp.Get Filter Entry    10    permit    ps=le,1
25     ${entries}    Common.Combine Strings    ${entry1}
26     SxpLib.Add Filter    GROUP    outbound    ${entries}
27     BuiltIn.Wait Until Keyword Succeeds    4    2    Check PeerSequence Two
28     SxpLib.Delete Filter    GROUP    outbound
29     ${entry1}    Sxp.Get Filter Entry    10    permit    ps=le,2
30     ${entries}    Common.Combine Strings    ${entry1}
31     SxpLib.Add Filter    GROUP    outbound    ${entries}
32     BuiltIn.Wait Until Keyword Succeeds    4    2    Check PeerSequence Three
33     SxpLib.Delete Filter    GROUP    outbound
34     ${entry1}    Sxp.Get Filter Entry    10    deny    ps=eq,1
35     ${entry2}    Sxp.Get Filter Entry    20    permit    ps=ge,0
36     ${entries}    Common.Combine Strings    ${entry1}    ${entry2}
37     SxpLib.Add Filter    GROUP    outbound    ${entries}
38     BuiltIn.Wait Until Keyword Succeeds    4    2    Check PeerSequence Mix
39     SxpLib.Delete Filter    GROUP    outbound
40
41 Inbound PL Combinations Filtering
42     [Documentation]    Test PeerSequence filter combined with PrefixList filter
43     [Tags]    SXP    Filtering
44     @{scopes}    BuiltIn.Create List    inbound    inbound-discarding
45     : FOR    ${scope}    IN    @{scopes}
46     \    SxpLib.Add PeerGroup    GROUP
47     \    ${entry1}    Sxp.Get Filter Entry    10    permit    ps=le,1
48     \    ${entries}    Common.Combine Strings    ${entry1}
49     \    SxpLib.Add Filter    GROUP    ${scope}    ${entries}
50     \    Setup Nodes Inbound Test
51     \    ${peers}    Sxp.Add Peers    127.0.0.2
52     \    SxpLib.Add PeerGroup    GROUP2    ${peers}
53     \    ${entry1}    Sxp.Get Filter Entry    10    permit    pl=1.1.0.0/16
54     \    ${entries}    Common.Combine Strings    ${entry1}
55     \    SxpLib.Add Filter    GROUP2    ${scope}    ${entries}
56     \    BuiltIn.Wait Until Keyword Succeeds    4    2    Check Inbound PL Combinations Filtering
57     \    Clean Nodes
58
59 Inbound ACL Combinations Filtering
60     [Documentation]    Test PeerSequence filter combined with ACL filter
61     [Tags]    SXP    Filtering
62     @{scopes}    BuiltIn.Create List    inbound    inbound-discarding
63     : FOR    ${scope}    IN    @{scopes}
64     \    ${peers}    Sxp.Add Peers    127.0.0.2
65     \    SxpLib.Add PeerGroup    GROUP2    ${peers}
66     \    ${entry1}    Sxp.Get Filter Entry    10    permit    ps=le,2
67     \    ${entries}    Common.Combine Strings    ${entry1}
68     \    SxpLib.Add Filter    GROUP2    ${scope}    ${entries}
69     \    Setup Nodes Inbound Test
70     \    ${entry1}    Sxp.Get Filter Entry    10    permit    acl=1.1.1.0,0.0.0.255
71     \    ${entries}    Common.Combine Strings    ${entry1}
72     \    SxpLib.Add Filter    GROUP2    ${scope}    ${entries}
73     \    ${peers}    Sxp.Add Peers    127.0.0.5
74     \    SxpLib.Add PeerGroup    GROUP5    ${peers}
75     \    ${entry1}    Sxp.Get Filter Entry    10    permit    sgt=40
76     \    ${entries}    Common.Combine Strings    ${entry1}
77     \    SxpLib.Add Filter    GROUP5    ${scope}    ${entries}
78     \    BuiltIn.Wait Until Keyword Succeeds    4    2    Check Inbound ACL Combinations Filtering
79     \    Clean Nodes
80
81 Outbound PL Combinations Filtering
82     [Documentation]    Test PeerSequence filter combined with PrefixList filter
83     [Tags]    SXP    Filtering
84     SxpLib.Add PeerGroup    GROUP
85     ${entry1}    Sxp.Get Filter Entry    10    permit    pl=1.1.1.0/24
86     ${entries}    Common.Combine Strings    ${entry1}
87     SxpLib.Add Filter    GROUP    outbound    ${entries}
88     Setup Nodes Outbound Test
89     ${peers}    Sxp.Add Peers    127.0.0.2
90     SxpLib.Add PeerGroup    GROUP2    ${peers}
91     ${entry1}    Sxp.Get Filter Entry    10    permit    ps=le,1
92     ${entries}    Common.Combine Strings    ${entry1}
93     SxpLib.Add Filter    GROUP2    outbound    ${entries}
94     BuiltIn.Wait Until Keyword Succeeds    4    2    Check Outbound PL Combinations Filtering
95
96 Outbound ACL Combinations Filtering
97     [Documentation]    Test PeerSequence filter combined with ACL filter
98     [Tags]    SXP    Filtering
99     SxpLib.Add PeerGroup    GROUP
100     ${entry1}    Sxp.Get Filter Entry    10    permit    ps=eq,0
101     ${entry2}    Sxp.Get Filter Entry    20    permit    ps=ge,2
102     ${entries}    Common.Combine Strings    ${entry1}    ${entry2}
103     SxpLib.Add Filter    GROUP    outbound    ${entries}
104     Setup Nodes Outbound Test
105     ${peers}    Sxp.Add Peers    127.0.0.2
106     SxpLib.Add PeerGroup    GROUP2    ${peers}
107     ${entry1}    Sxp.Get Filter Entry    10    permit    acl=1.1.0.0,0.0.255.255
108     ${entries}    Common.Combine Strings    ${entry1}
109     SxpLib.Add Filter    GROUP2    outbound    ${entries}
110     BuiltIn.Wait Until Keyword Succeeds    4    2    Check Outbound ACL Combinations Filtering
111
112 *** Keywords ***
113 Setup Nodes
114     [Arguments]    ${version}=version4    ${password}=none
115     [Documentation]    Setup Topology for PeerSequence tests
116     SxpLib.Add Bindings    10    10.10.10.10/32    127.0.0.1
117     SxpLib.Add Bindings    10    10.10.10.0/24    127.0.0.1
118     SxpLib.Add Bindings    10    10.10.0.0/16    127.0.0.1
119     SxpLib.Add Bindings    10    10.0.0.0/8    127.0.0.1
120     : FOR    ${node}    IN RANGE    2    6
121     \    SxpLib.Add Bindings    ${node}0    10.10.10.${node}0/32    127.0.0.${node}
122     \    SxpLib.Add Bindings    ${node}0    10.10.${node}0.0/24    127.0.0.${node}
123     \    SxpLib.Add Bindings    ${node}0    10.${node}0.0.0/16    127.0.0.${node}
124     \    SxpLib.Add Bindings    ${node}0    ${node}0.0.0.0/8    127.0.0.${node}
125     SxpLib.Add Connection    ${version}    listener    127.0.0.1    64999    127.0.0.2    ${password}
126     SxpLib.Add Connection    ${version}    speaker    127.0.0.2    64999    127.0.0.1    ${password}
127     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    speaker    127.0.0.2
128     SxpLib.Add Connection    ${version}    speaker    127.0.0.1    64999    127.0.0.3    ${password}
129     SxpLib.Add Connection    ${version}    listener    127.0.0.3    64999    127.0.0.1    ${password}
130     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    listener    127.0.0.3
131     SxpLib.Add Connection    ${version}    speaker    127.0.0.3    64999    127.0.0.4    ${password}
132     SxpLib.Add Connection    ${version}    listener    127.0.0.4    64999    127.0.0.3    ${password}
133     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    listener    127.0.0.4
134     ...    64999    127.0.0.3
135     SxpLib.Add Connection    ${version}    speaker    127.0.0.4    64999    127.0.0.5    ${password}
136     SxpLib.Add Connection    ${version}    listener    127.0.0.5    64999    127.0.0.4    ${password}
137     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    listener    127.0.0.5
138     ...    64999    127.0.0.4
139
140 Setup Nodes Inbound Test
141     [Arguments]    ${version}=version4    ${password}=none
142     [Documentation]    Setup Topology for inbound PeerSequence and other filters tests
143     : FOR    ${node}    IN RANGE    2    6
144     \    SxpLib.Add Bindings    ${node}0    1.1.1.${node}/32    127.0.0.${node}
145     \    SxpLib.Add Bindings    ${node}0    1.1.${node}.0/24    127.0.0.${node}
146     \    SxpLib.Add Bindings    ${node}0    1.${node}.0.0/16    127.0.0.${node}
147     \    SxpLib.Add Bindings    ${node}0    ${node}.0.0.0/8    127.0.0.${node}
148     SxpLib.Add Connection    ${version}    speaker    127.0.0.1    64999    127.0.0.2    ${password}
149     SxpLib.Add Connection    ${version}    listener    127.0.0.2    64999    127.0.0.1    ${password}
150     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    listener    127.0.0.2
151     SxpLib.Add Connection    ${version}    speaker    127.0.0.1    64999    127.0.0.5    ${password}
152     SxpLib.Add Connection    ${version}    listener    127.0.0.5    64999    127.0.0.1    ${password}
153     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    listener    127.0.0.5
154     SxpLib.Add Connection    ${version}    both    127.0.0.3    64999    127.0.0.2    ${password}
155     SxpLib.Add Connection    ${version}    both    127.0.0.2    64999    127.0.0.3    ${password}
156     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    both    127.0.0.2
157     ...    64999    127.0.0.3
158     SxpLib.Add Connection    ${version}    both    127.0.0.3    64999    127.0.0.4    ${password}
159     SxpLib.Add Connection    ${version}    both    127.0.0.4    64999    127.0.0.3    ${password}
160     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    both    127.0.0.4
161     ...    64999    127.0.0.3
162     SxpLib.Add Connection    ${version}    both    127.0.0.4    64999    127.0.0.5    ${password}
163     SxpLib.Add Connection    ${version}    both    127.0.0.5    64999    127.0.0.4    ${password}
164     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    both    127.0.0.5
165     ...    64999    127.0.0.4
166
167 Setup Nodes Outbound Test
168     [Arguments]    ${version}=version4    ${password}=none
169     [Documentation]    Setup Topology for outbound PeerSequence and other filters tests
170     SxpLib.Add Bindings    10    1.1.1.1/32    127.0.0.1
171     SxpLib.Add Bindings    10    1.1.1.0/24    127.0.0.1
172     SxpLib.Add Bindings    10    1.1.0.0/16    127.0.0.1
173     SxpLib.Add Bindings    10    1.0.0.0/8    127.0.0.1
174     : FOR    ${node}    IN RANGE    3    6
175     \    SxpLib.Add Bindings    ${node}0    1.1.1.${node}/32    127.0.0.${node}
176     \    SxpLib.Add Bindings    ${node}0    1.1.${node}.0/24    127.0.0.${node}
177     \    SxpLib.Add Bindings    ${node}0    1.${node}.0.0/16    127.0.0.${node}
178     \    SxpLib.Add Bindings    ${node}0    ${node}.0.0.0/8    127.0.0.${node}
179     SxpLib.Add Connection    ${version}    listener    127.0.0.1    64999    127.0.0.2    ${password}
180     SxpLib.Add Connection    ${version}    speaker    127.0.0.2    64999    127.0.0.1    ${password}
181     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    speaker    127.0.0.2
182     SxpLib.Add Connection    ${version}    speaker    127.0.0.1    64999    127.0.0.3    ${password}
183     SxpLib.Add Connection    ${version}    listener    127.0.0.3    64999    127.0.0.1    ${password}
184     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    listener    127.0.0.3
185     SxpLib.Add Connection    ${version}    speaker    127.0.0.1    64999    127.0.0.4    ${password}
186     SxpLib.Add Connection    ${version}    listener    127.0.0.4    64999    127.0.0.1    ${password}
187     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    listener    127.0.0.4
188     SxpLib.Add Connection    ${version}    both    127.0.0.4    64999    127.0.0.5    ${password}
189     SxpLib.Add Connection    ${version}    both    127.0.0.5    64999    127.0.0.4    ${password}
190     BuiltIn.Wait Until Keyword Succeeds    15    1    SxpLib.Verify Connection    ${version}    both    127.0.0.5
191     ...    64999    127.0.0.4
192
193 Check PeerSequence One
194     [Documentation]    Node 127.0.0.2 should contain only bindings with peer sequence lower or equals 1
195     ${resp}    SxpLib.Get Bindings    127.0.0.2
196     SxpLib.Should Contain Binding    ${resp}    10    10.10.10.10/32    sxp
197     SxpLib.Should Contain Binding    ${resp}    10    10.10.10.0/24    sxp
198     SxpLib.Should Contain Binding    ${resp}    10    10.10.0.0/16    sxp
199     SxpLib.Should Contain Binding    ${resp}    10    10.0.0.0/8    sxp
200     : FOR    ${node}    IN RANGE    3    6
201     \    SxpLib.Should Not Contain Binding    ${resp}    ${node}0    10.10.10.${node}0/32
202     \    SxpLib.Should Not Contain Binding    ${resp}    ${node}0    10.10.${node}0.0/24
203     \    SxpLib.Should Not Contain Binding    ${resp}    ${node}0    10.${node}0.0.0/16
204     \    SxpLib.Should Not Contain Binding    ${resp}    ${node}0    ${node}0.0.0.0/8
205
206 Check PeerSequence Two
207     [Documentation]    Node 127.0.0.2 should contain only bindings with peer sequence lower or equals 2
208     ${resp}    SxpLib.Get Bindings    127.0.0.2
209     SxpLib.Should Contain Binding    ${resp}    10    10.10.10.10/32    sxp
210     SxpLib.Should Contain Binding    ${resp}    10    10.10.10.0/24    sxp
211     SxpLib.Should Contain Binding    ${resp}    10    10.10.0.0/16    sxp
212     SxpLib.Should Contain Binding    ${resp}    10    10.0.0.0/8    sxp
213     SxpLib.Should Contain Binding    ${resp}    30    10.10.10.30/32    sxp
214     SxpLib.Should Contain Binding    ${resp}    30    10.10.30.0/24    sxp
215     SxpLib.Should Contain Binding    ${resp}    30    10.30.0.0/16    sxp
216     SxpLib.Should Contain Binding    ${resp}    30    30.0.0.0/8    sxp
217     : FOR    ${node}    IN RANGE    4    6
218     \    SxpLib.Should Not Contain Binding    ${resp}    ${node}0    10.10.10.${node}0/32
219     \    SxpLib.Should Not Contain Binding    ${resp}    ${node}0    10.10.${node}0.0/24
220     \    SxpLib.Should Not Contain Binding    ${resp}    ${node}0    10.${node}0.0.0/16
221     \    SxpLib.Should Not Contain Binding    ${resp}    ${node}0    ${node}0.0.0.0/8
222
223 Check PeerSequence Three
224     [Documentation]    Node 127.0.0.2 should contain only bindings with peer sequence lower or equals 3
225     ${resp}    SxpLib.Get Bindings    127.0.0.2
226     SxpLib.Should Contain Binding    ${resp}    10    10.10.10.10/32    sxp
227     SxpLib.Should Contain Binding    ${resp}    10    10.10.10.0/24    sxp
228     SxpLib.Should Contain Binding    ${resp}    10    10.10.0.0/16    sxp
229     SxpLib.Should Contain Binding    ${resp}    10    10.0.0.0/8    sxp
230     SxpLib.Should Contain Binding    ${resp}    30    10.10.10.30/32    sxp
231     SxpLib.Should Contain Binding    ${resp}    30    10.10.30.0/24    sxp
232     SxpLib.Should Contain Binding    ${resp}    30    10.30.0.0/16    sxp
233     SxpLib.Should Contain Binding    ${resp}    30    30.0.0.0/8    sxp
234     SxpLib.Should Contain Binding    ${resp}    40    10.10.10.40/32    sxp
235     SxpLib.Should Contain Binding    ${resp}    40    10.10.40.0/24    sxp
236     SxpLib.Should Contain Binding    ${resp}    40    10.40.0.0/16    sxp
237     SxpLib.Should Contain Binding    ${resp}    40    40.0.0.0/8    sxp
238     SxpLib.Should Not Contain Binding    ${resp}    50    10.10.10.50/32
239     SxpLib.Should Not Contain Binding    ${resp}    50    10.10.50.0/24
240     SxpLib.Should Not Contain Binding    ${resp}    50    10.50.0.0/16
241     SxpLib.Should Not Contain Binding    ${resp}    50    50.0.0.0/8
242
243 Check PeerSequence Mix
244     [Documentation]    Node 127.0.0.2 should not contain bindings with peer sequence 1
245     ${resp}    SxpLib.Get Bindings    127.0.0.2
246     SxpLib.Should Contain Binding    ${resp}    10    10.10.10.10/32    sxp
247     SxpLib.Should Contain Binding    ${resp}    10    10.10.10.0/24    sxp
248     SxpLib.Should Contain Binding    ${resp}    10    10.10.0.0/16    sxp
249     SxpLib.Should Contain Binding    ${resp}    10    10.0.0.0/8    sxp
250     SxpLib.Should Not Contain Binding    ${resp}    30    10.10.10.30/32    sxp
251     SxpLib.Should Not Contain Binding    ${resp}    30    10.10.30.0/24    sxp
252     SxpLib.Should Not Contain Binding    ${resp}    30    10.30.0.0/16    sxp
253     SxpLib.Should Not Contain Binding    ${resp}    30    30.0.0.0/8    sxp
254     SxpLib.Should Contain Binding    ${resp}    40    10.10.10.40/32    sxp
255     SxpLib.Should Contain Binding    ${resp}    40    10.10.40.0/24    sxp
256     SxpLib.Should Contain Binding    ${resp}    40    10.40.0.0/16    sxp
257     SxpLib.Should Contain Binding    ${resp}    40    40.0.0.0/8    sxp
258     SxpLib.Should Contain Binding    ${resp}    50    10.10.10.50/32
259     SxpLib.Should Contain Binding    ${resp}    50    10.10.50.0/24
260     SxpLib.Should Contain Binding    ${resp}    50    10.50.0.0/16
261     SxpLib.Should Contain Binding    ${resp}    50    50.0.0.0/8
262
263 Check Inbound PL Combinations Filtering
264     [Documentation]    Node 127.0.0.1 should containt bindings with peer sequence lower than 1 and pl 1.1.0.0/16
265     ${resp}    SxpLib.Get Bindings    127.0.0.1
266     SxpLib.Should Contain Binding    ${resp}    20    1.1.1.2/32    sxp
267     SxpLib.Should Contain Binding    ${resp}    20    1.1.2.0/24    sxp
268     SxpLib.Should Not Contain Binding    ${resp}    20    1.2.0.0/16    sxp
269     SxpLib.Should Not Contain Binding    ${resp}    20    2.0.0.0/8    sxp
270     SxpLib.Should Not Contain Binding    ${resp}    30    1.1.1.3/32    sxp
271     SxpLib.Should Not Contain Binding    ${resp}    30    1.1.3.0/24    sxp
272     SxpLib.Should Not Contain Binding    ${resp}    30    1.3.0.0/16    sxp
273     SxpLib.Should Not Contain Binding    ${resp}    30    3.0.0.0/8    sxp
274     SxpLib.Should Not Contain Binding    ${resp}    40    1.1.1.4/32    sxp
275     SxpLib.Should Not Contain Binding    ${resp}    40    1.1.4.0/24    sxp
276     SxpLib.Should Not Contain Binding    ${resp}    40    1.4.0.0/16    sxp
277     SxpLib.Should Not Contain Binding    ${resp}    40    4.0.0.0/8    sxp
278     SxpLib.Should Contain Binding    ${resp}    50    1.1.1.5/32    sxp
279     SxpLib.Should Contain Binding    ${resp}    50    1.1.5.0/24    sxp
280     SxpLib.Should Contain Binding    ${resp}    50    1.5.0.0/16    sxp
281     SxpLib.Should Contain Binding    ${resp}    50    5.0.0.0/8    sxp
282
283 Check Inbound ACL Combinations Filtering
284     [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
285     ${resp}    SxpLib.Get Bindings    127.0.0.1
286     SxpLib.Should Contain Binding    ${resp}    20    1.1.1.2/32    sxp
287     SxpLib.Should Not Contain Binding    ${resp}    20    1.1.2.0/24    sxp
288     SxpLib.Should Not Contain Binding    ${resp}    20    1.2.0.0/16    sxp
289     SxpLib.Should Not Contain Binding    ${resp}    20    2.0.0.0/8    sxp
290     SxpLib.Should Contain Binding    ${resp}    30    1.1.1.3/32    sxp
291     SxpLib.Should Not Contain Binding    ${resp}    30    1.1.3.0/24    sxp
292     SxpLib.Should Not Contain Binding    ${resp}    30    1.3.0.0/16    sxp
293     SxpLib.Should Not Contain Binding    ${resp}    30    3.0.0.0/8    sxp
294     SxpLib.Should Contain Binding    ${resp}    40    1.1.1.4/32    sxp
295     SxpLib.Should Contain Binding    ${resp}    40    1.1.4.0/24    sxp
296     SxpLib.Should Contain Binding    ${resp}    40    1.4.0.0/16    sxp
297     SxpLib.Should Contain Binding    ${resp}    40    4.0.0.0/8    sxp
298     SxpLib.Should Not Contain Binding    ${resp}    50    1.1.1.5/32    sxp
299     SxpLib.Should Not Contain Binding    ${resp}    50    1.1.5.0/24    sxp
300     SxpLib.Should Not Contain Binding    ${resp}    50    1.5.0.0/16    sxp
301     SxpLib.Should Not Contain Binding    ${resp}    50    5.0.0.0/8    sxp
302
303 Check Outbound PL Combinations Filtering
304     [Documentation]    Node 127.0.0.2 should containt bindings with peer sequence lower than 1 and pl 1.1.1.0/24
305     ${resp}    SxpLib.Get Bindings    127.0.0.2
306     SxpLib.Should Contain Binding    ${resp}    10    1.1.1.1/32    sxp
307     SxpLib.Should Contain Binding    ${resp}    10    1.1.1.0/24    sxp
308     SxpLib.Should Not Contain Binding    ${resp}    10    1.1.0.0/16    sxp
309     SxpLib.Should Not Contain Binding    ${resp}    10    1.0.0.0/8    sxp
310     SxpLib.Should Contain Binding    ${resp}    30    1.1.1.3/32    sxp
311     SxpLib.Should Not Contain Binding    ${resp}    30    1.1.3.0/24    sxp
312     SxpLib.Should Not Contain Binding    ${resp}    30    1.3.0.0/16    sxp
313     SxpLib.Should Not Contain Binding    ${resp}    30    3.0.0.0/8    sxp
314     SxpLib.Should Contain Binding    ${resp}    40    1.1.1.4/32    sxp
315     SxpLib.Should Not Contain Binding    ${resp}    40    1.1.4.0/24    sxp
316     SxpLib.Should Not Contain Binding    ${resp}    40    1.4.0.0/16    sxp
317     SxpLib.Should Not Contain Binding    ${resp}    40    4.0.0.0/8    sxp
318     SxpLib.Should Not Contain Binding    ${resp}    50    1.1.1.5/32    sxp
319     SxpLib.Should Not Contain Binding    ${resp}    50    1.1.5.0/24    sxp
320     SxpLib.Should Not Contain Binding    ${resp}    50    1.5.0.0/16    sxp
321     SxpLib.Should Not Contain Binding    ${resp}    50    5.0.0.0/8    sxp
322
323 Check Outbound ACL Combinations Filtering
324     [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
325     ${resp}    SxpLib.Get Bindings    127.0.0.2
326     SxpLib.Should Contain Binding    ${resp}    10    1.1.1.1/32    sxp
327     SxpLib.Should Contain Binding    ${resp}    10    1.1.1.0/24    sxp
328     SxpLib.Should Contain Binding    ${resp}    10    1.1.0.0/16    sxp
329     SxpLib.Should Not Contain Binding    ${resp}    10    1.0.0.0/8    sxp
330     SxpLib.Should Not Contain Binding    ${resp}    30    1.1.1.3/32    sxp
331     SxpLib.Should Not Contain Binding    ${resp}    30    1.1.3.0/24    sxp
332     SxpLib.Should Not Contain Binding    ${resp}    30    1.3.0.0/16    sxp
333     SxpLib.Should Not Contain Binding    ${resp}    30    3.0.0.0/8    sxp
334     SxpLib.Should Not Contain Binding    ${resp}    40    1.1.1.4/32    sxp
335     SxpLib.Should Not Contain Binding    ${resp}    40    1.1.4.0/24    sxp
336     SxpLib.Should Not Contain Binding    ${resp}    40    1.4.0.0/16    sxp
337     SxpLib.Should Not Contain Binding    ${resp}    40    4.0.0.0/8    sxp
338     SxpLib.Should Contain Binding    ${resp}    50    1.1.1.5/32    sxp
339     SxpLib.Should Contain Binding    ${resp}    50    1.1.5.0/24    sxp
340     SxpLib.Should Not Contain Binding    ${resp}    50    1.5.0.0/16    sxp
341     SxpLib.Should Not Contain Binding    ${resp}    50    5.0.0.0/8    sxp
342
343 Clean Nodes
344     SxpLib.Clean Bindings    127.0.0.1
345     SxpLib.Clean Bindings    127.0.0.2
346     SxpLib.Clean Bindings    127.0.0.3
347     SxpLib.Clean Bindings    127.0.0.4
348     SxpLib.Clean Bindings    127.0.0.5
349     SxpLib.Clean Peer Groups    127.0.0.1
350     SxpLib.Clean Connections    127.0.0.1
351     SxpLib.Clean Connections    127.0.0.2
352     SxpLib.Clean Connections    127.0.0.3
353     SxpLib.Clean Connections    127.0.0.4
354     SxpLib.Clean Connections    127.0.0.5