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