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