Migrate Get Requests invocations(libraries)
[integration/test.git] / csit / suites / sxp / filtering / 050_Domain_filtering.robot
1 *** Settings ***
2 Documentation       Test suite to verify Domain data filtering
3
4 Library             RequestsLibrary
5 Library             SSHLibrary
6 Library             ../../../libraries/Sxp.py
7 Library             ../../../libraries/Common.py
8 Resource            ../../../libraries/SxpLib.robot
9
10 Test Setup          Setup Nodes Local
11 Test Teardown       Clean SXP Environment    9
12
13
14 *** Variables ***
15 ${DOMAIN_1}     guest
16 ${DOMAIN_2}     trusted
17 ${DOMAIN_3}     semitrusted
18 ${DOMAIN_4}     secure
19 ${version}      version4
20
21
22 *** Test Cases ***
23 Non Transitivity Test
24     [Documentation]    Test if Bindings are shared according to associated filters
25     [Tags]    sxp    domains    filtering
26     Wait Until Keyword Succeeds    15    1    Check Initialized
27     Add Filters
28     Wait Until Keyword Succeeds    15    1    Check Domain Sharing
29     Remove Filters
30     Wait Until Keyword Succeeds    15    1    Check Initialized
31
32 Update Messages Test
33     [Documentation]    Test if Bindings are shared according to associated filters while bindings are removed/added
34     [Tags]    sxp    domains    filtering
35     Wait Until Keyword Succeeds    15    1    Check Initialized
36     Add Filters
37     Wait Until Keyword Succeeds    15    1    Check Domain Sharing
38     FOR    ${node}    IN RANGE    2    5
39         Delete Bindings    ${node}0    ${node}0.${node}0.${node}0.0/24    127.0.0.${node}
40         Delete Bindings    ${node}0    ${node}0.${node}0.0.0/16    127.0.0.${node}
41     END
42     Wait Until Keyword Succeeds    15    1    Check Domain Sharing After Update
43     FOR    ${node}    IN RANGE    2    5
44         Add Bindings    ${node}0    ${node}0.${node}0.${node}0.0/24    127.0.0.${node}
45         Add Bindings    ${node}0    ${node}0.${node}0.0.0/16    127.0.0.${node}
46     END
47     Wait Until Keyword Succeeds    15    1    Check Domain Sharing
48
49 Local Binding Non Transitivity Test
50     [Documentation]    Test if Local Bindings are shared according to associated filters,
51     ...    and does not colide with other Bindings
52     [Tags]    sxp    domains    filtering
53     Wait Until Keyword Succeeds    15    1    Check Initialized Local
54     Add Filters
55     Wait Until Keyword Succeeds    15    1    Check Domain Sharing Local
56     Remove Filters
57     Wait Until Keyword Succeeds    15    1    Check Initialized Local
58
59 Local Binding Update Test
60     [Documentation]    Test if Local Bindings are shared according to associated filters while bindings are removed/added
61     [Tags]    sxp    domains    filtering
62     Wait Until Keyword Succeeds    15    1    Check Initialized Local
63     Add Filters
64     Wait Until Keyword Succeeds    15    1    Check Domain Sharing Local
65     Delete Bindings    20    20.20.20.5/32    127.0.0.1    ${DOMAIN_1}
66     Delete Bindings    30    30.30.30.5/32    127.0.0.1    ${DOMAIN_2}
67     Delete Bindings    40    40.40.40.5/32    127.0.0.1    ${DOMAIN_3}
68     Wait Until Keyword Succeeds    15    1    Check Domain Sharing After Update Local
69     Add Bindings    20    20.20.20.5/32    127.0.0.1    ${DOMAIN_1}
70     Add Bindings    30    30.30.30.5/32    127.0.0.1    ${DOMAIN_2}
71     Add Bindings    40    40.40.40.5/32    127.0.0.1    ${DOMAIN_3}
72     Wait Until Keyword Succeeds    15    1    Check Domain Sharing Local
73
74 Binding Replacement Test
75     [Documentation]    Test situation where Local binding is replaced by other shared local binding,
76     ...    after shared binding is removed the original binding must be propagated to Peers
77     [Tags]    sxp    domains    filtering
78     Wait Until Keyword Succeeds    15    1    Check Initialized After Update
79     Add Bindings    400    35.35.35.35/32    127.0.0.4
80     Add Bindings    450    35.35.35.35/32    127.0.0.1    domain=${DOMAIN_3}
81     Wait Until Keyword Succeeds    15    1    Check After Update Part One
82     Add Filters After Update
83     Wait Until Keyword Succeeds    15    1    Check After Update Part Two
84     Delete Bindings    450    35.35.35.35/32    127.0.0.1    ${DOMAIN_3}
85     Wait Until Keyword Succeeds    15    1    Check After Update Part Three
86
87
88 *** Keywords ***
89 Setup Nodes Local
90     [Documentation]    Setups Multi domain topology consisting of 3 specific domains and 1 default, data will be shared by filter.
91     Setup SXP Environment    9
92     FOR    ${node}    IN RANGE    2    5
93         Add Bindings    ${node}0    ${node}0.${node}0.${node}0.${node}0/32    127.0.0.${node}
94         Add Bindings    ${node}0    ${node}0.${node}0.${node}0.0/24    127.0.0.${node}
95         Add Bindings    ${node}0    ${node}0.${node}0.0.0/16    127.0.0.${node}
96         Add Bindings    ${node}0    ${node}0.0.0.0/8    127.0.0.${node}
97         Add Connection    ${version}    speaker    127.0.0.1    64999    127.0.0.${node}
98     END
99     FOR    ${node}    IN RANGE    5    10
100         Add Connection    ${version}    listener    127.0.0.1    64999    127.0.0.${node}
101     END
102     Add Domain    ${DOMAIN_1}
103     Add Domain    ${DOMAIN_2}
104     Add Domain    ${DOMAIN_3}
105     Add Bindings    20    20.20.20.5/32    127.0.0.1    domain=${DOMAIN_1}
106     Add Bindings    20    20.20.5.5/32    127.0.0.1    domain=${DOMAIN_1}
107     Add Bindings    30    30.30.30.5/32    127.0.0.1    domain=${DOMAIN_2}
108     Add Bindings    30    30.30.5.5/32    127.0.0.1    domain=${DOMAIN_2}
109     Add Bindings    40    40.40.40.5/32    127.0.0.1    domain=${DOMAIN_3}
110     Add Bindings    40    40.40.5.5/32    127.0.0.1    domain=${DOMAIN_3}
111     Add Bindings    300    25.25.25.25/32    127.0.0.4
112     Add Bindings    500    35.35.35.35/32
113     # NO DOMAIN
114     Add Connection    ${version}    speaker    127.0.0.8    64999
115     Wait Until Keyword Succeeds    15    1    Verify Connection    ${version}    speaker    127.0.0.8
116     # DOMAIN 1
117     Add Connection    ${version}    listener    127.0.0.2    64999    domain=${DOMAIN_1}
118     Wait Until Keyword Succeeds    15    1    Verify Connection    ${version}    listener    127.0.0.2
119     ...    domain=${DOMAIN_1}
120     Add Connection    ${version}    speaker    127.0.0.5    64999    domain=${DOMAIN_1}
121     Wait Until Keyword Succeeds    15    1    Verify Connection    ${version}    speaker    127.0.0.5
122     ...    domain=${DOMAIN_1}
123     # DOMAIN 2
124     Add Connection    ${version}    listener    127.0.0.3    64999    domain=${DOMAIN_2}
125     Wait Until Keyword Succeeds    15    1    Verify Connection    ${version}    listener    127.0.0.3
126     ...    domain=${DOMAIN_2}
127     Add Connection    ${version}    speaker    127.0.0.6    64999    domain=${DOMAIN_2}
128     Wait Until Keyword Succeeds    15    1    Verify Connection    ${version}    speaker    127.0.0.6
129     ...    domain=${DOMAIN_2}
130     # DOMAIN 3
131     Add Connection    ${version}    listener    127.0.0.4    64999    domain=${DOMAIN_3}
132     Wait Until Keyword Succeeds    15    1    Verify Connection    ${version}    listener    127.0.0.4
133     ...    domain=${DOMAIN_3}
134     Add Connection    ${version}    speaker    127.0.0.7    64999    domain=${DOMAIN_3}
135     Wait Until Keyword Succeeds    15    1    Verify Connection    ${version}    speaker    127.0.0.7
136     ...    domain=${DOMAIN_3}
137
138 Add Filters
139     [Documentation]    Add 4 Domain filters that shares portion of Bindings
140     ${domain_1_xml}    Add Domains    ${DOMAIN_3}
141     ${domain_2_xml}    Add Domains    ${DOMAIN_4}
142     ${domains}    Combine Strings    ${domain_1_xml}    ${domain_2_xml}
143     ${entry1}    Get Filter Entry    10    permit    pl=20.0.0.0/8
144     ${entries}    Combine Strings    ${entry1}
145     Add Domain Filter    ${DOMAIN_1}    ${domains}    ${entries}
146     ${domain_1_xml}    Add Domains    ${DOMAIN_1}
147     ${domains}    Combine Strings    ${domain_1_xml}
148     ${entry1}    Get Filter Entry    10    permit    pl=30.30.0.0/16
149     ${entries}    Combine Strings    ${entry1}
150     Add Domain Filter    ${DOMAIN_2}    ${domains}    ${entries}
151     ${domain_1_xml}    Add Domains    global
152     ${domains}    Combine Strings    ${domain_1_xml}
153     ${entry1}    Get Filter Entry    10    permit    pl=30.30.30.0/24
154     ${entries}    Combine Strings    ${entry1}
155     Add Domain Filter    ${DOMAIN_2}    ${domains}    ${entries}    127.0.0.1    extended-domain-filter
156
157 Add Filters After Update
158     [Documentation]    Add Domain filter that shares portion of Local Bindings
159     ${domain_1_xml}    Add Domains    global
160     ${domains}    Combine Strings    ${domain_1_xml}
161     ${entry1}    Get Filter Entry    10    permit    esgt=300,600
162     ${entries}    Combine Strings    ${entry1}
163     Add Domain Filter    ${DOMAIN_3}    ${domains}    ${entries}
164
165 Remove Filters
166     [Documentation]    Remove 4 Domain filters that shared portion of Bindings
167     Delete Domain Filter    ${DOMAIN_1}
168     Delete Domain Filter    ${DOMAIN_2}
169     Delete Domain Filter    ${DOMAIN_2}    127.0.0.1    extended-domain-filter
170
171 Check Initialized
172     [Documentation]    Checks that Bindings are not shared between domains
173     ${resp}    Get Bindings    127.0.0.5
174     Should Contain Binding    ${resp}    20    20.20.20.20/32
175     Should Contain Binding    ${resp}    20    20.20.20.0/24
176     Should Contain Binding    ${resp}    20    20.20.0.0/16
177     Should Contain Binding    ${resp}    20    20.0.0.0/8
178     Should Not Contain Binding    ${resp}    30    30.30.30.30/32
179     Should Not Contain Binding    ${resp}    30    30.30.30.0/24
180     Should Not Contain Binding    ${resp}    30    30.30.0.0/16
181     Should Not Contain Binding    ${resp}    30    30.0.0.0/8
182     Should Not Contain Binding    ${resp}    40    40.40.40.40/32
183     Should Not Contain Binding    ${resp}    40    40.40.40.0/24
184     Should Not Contain Binding    ${resp}    40    40.40.0.0/16
185     Should Not Contain Binding    ${resp}    40    40.0.0.0/8
186     ${resp}    Get Bindings    127.0.0.6
187     Should Not Contain Binding    ${resp}    20    20.20.20.20/32
188     Should Not Contain Binding    ${resp}    20    20.20.20.0/24
189     Should Not Contain Binding    ${resp}    20    20.20.0.0/16
190     Should Not Contain Binding    ${resp}    20    20.0.0.0/8
191     Should Contain Binding    ${resp}    30    30.30.30.30/32
192     Should Contain Binding    ${resp}    30    30.30.30.0/24
193     Should Contain Binding    ${resp}    30    30.30.0.0/16
194     Should Contain Binding    ${resp}    30    30.0.0.0/8
195     Should Not Contain Binding    ${resp}    40    40.40.40.40/32
196     Should Not Contain Binding    ${resp}    40    40.40.40.0/24
197     Should Not Contain Binding    ${resp}    40    40.40.0.0/16
198     Should Not Contain Binding    ${resp}    40    40.0.0.0/8
199     ${resp}    Get Bindings    127.0.0.7
200     Should Not Contain Binding    ${resp}    20    20.20.20.20/32
201     Should Not Contain Binding    ${resp}    20    20.20.20.0/24
202     Should Not Contain Binding    ${resp}    20    20.20.0.0/16
203     Should Not Contain Binding    ${resp}    20    20.0.0.0/8
204     Should Not Contain Binding    ${resp}    30    30.30.30.30/32
205     Should Not Contain Binding    ${resp}    30    30.30.30.0/24
206     Should Not Contain Binding    ${resp}    30    30.30.0.0/16
207     Should Not Contain Binding    ${resp}    30    30.0.0.0/8
208     Should Contain Binding    ${resp}    40    40.40.40.40/32
209     Should Contain Binding    ${resp}    40    40.40.40.0/24
210     Should Contain Binding    ${resp}    40    40.40.0.0/16
211     Should Contain Binding    ${resp}    40    40.0.0.0/8
212     FOR    ${node}    IN RANGE    8    10
213         ${resp}    Get Bindings    127.0.0.${node}
214         Should Not Contain Binding    ${resp}    20    20.20.20.20/32
215         Should Not Contain Binding    ${resp}    20    20.20.20.0/24
216         Should Not Contain Binding    ${resp}    20    20.20.0.0/16
217         Should Not Contain Binding    ${resp}    20    20.0.0.0/8
218         Should Not Contain Binding    ${resp}    30    30.30.30.30/32
219         Should Not Contain Binding    ${resp}    30    30.30.30.0/24
220         Should Not Contain Binding    ${resp}    30    30.30.0.0/16
221         Should Not Contain Binding    ${resp}    30    30.0.0.0/8
222         Should Not Contain Binding    ${resp}    40    40.40.40.40/32
223         Should Not Contain Binding    ${resp}    40    40.40.40.0/24
224         Should Not Contain Binding    ${resp}    40    40.40.0.0/16
225         Should Not Contain Binding    ${resp}    40    40.0.0.0/8
226     END
227
228 Check Initialized Local
229     [Documentation]    Checks that Local Bindings are not shared between domains
230     ${resp}    Get Bindings    127.0.0.5
231     Should Contain Binding    ${resp}    20    20.20.20.5/32
232     Should Contain Binding    ${resp}    20    20.20.5.5/32
233     Should Not Contain Binding    ${resp}    30    30.30.30.5/32
234     Should Not Contain Binding    ${resp}    30    30.30.5.5/32
235     Should Not Contain Binding    ${resp}    40    40.40.40.5/32
236     Should Not Contain Binding    ${resp}    40    40.40.5.5/32
237     ${resp}    Get Bindings    127.0.0.6
238     Should Not Contain Binding    ${resp}    20    20.20.20.5/32
239     Should Not Contain Binding    ${resp}    20    20.20.5.5/32
240     Should Contain Binding    ${resp}    30    30.30.30.5/32
241     Should Contain Binding    ${resp}    30    30.30.5.5/32
242     Should Not Contain Binding    ${resp}    40    40.40.40.5/32
243     Should Not Contain Binding    ${resp}    40    40.40.5.5/32
244     ${resp}    Get Bindings    127.0.0.7
245     Should Not Contain Binding    ${resp}    20    20.20.20.5/32
246     Should Not Contain Binding    ${resp}    20    20.20.5.5/32
247     Should Not Contain Binding    ${resp}    30    30.30.30.5/32
248     Should Not Contain Binding    ${resp}    30    30.30.5.5/32
249     Should Contain Binding    ${resp}    40    40.40.40.5/32
250     Should Contain Binding    ${resp}    40    40.40.5.5/32
251     FOR    ${node}    IN RANGE    8    10
252         ${resp}    Get Bindings    127.0.0.${node}
253         Should Not Contain Binding    ${resp}    20    20.20.20.5/32
254         Should Not Contain Binding    ${resp}    20    20.20.5.5/32
255         Should Not Contain Binding    ${resp}    30    30.30.30.5/32
256         Should Not Contain Binding    ${resp}    30    30.30.5.5/32
257         Should Not Contain Binding    ${resp}    40    40.40.40.5/32
258         Should Not Contain Binding    ${resp}    40    40.40.5.5/32
259     END
260
261 Check Initialized After Update
262     [Documentation]    Checks that Local Bindings are not shared between domains
263     ${resp}    Get Bindings    127.0.0.7
264     Should Contain Binding    ${resp}    300    25.25.25.25/32
265     Should Not Contain Binding    ${resp}    400    35.35.35.35/32
266     Should Not Contain Binding    ${resp}    450    35.35.35.35/32
267     ${resp}    Get Bindings    127.0.0.8
268     Should Not Contain Binding    ${resp}    300    25.25.25.25/32
269     Should Contain Binding    ${resp}    500    35.35.35.35/32
270
271 Check Domain Sharing
272     [Documentation]    Checks that Bindings are shared between domains
273     ${resp}    Get Bindings    127.0.0.5
274     Should Contain Binding    ${resp}    20    20.20.20.20/32
275     Should Contain Binding    ${resp}    20    20.20.20.0/24
276     Should Contain Binding    ${resp}    20    20.20.0.0/16
277     Should Contain Binding    ${resp}    20    20.0.0.0/8
278     Should Contain Binding    ${resp}    30    30.30.30.30/32
279     Should Contain Binding    ${resp}    30    30.30.30.0/24
280     Should Contain Binding    ${resp}    30    30.30.0.0/16
281     Should Not Contain Binding    ${resp}    30    30.0.0.0/8
282     Should Not Contain Binding    ${resp}    40    40.40.40.40/32
283     Should Not Contain Binding    ${resp}    40    40.40.40.0/24
284     Should Not Contain Binding    ${resp}    40    40.40.0.0/16
285     Should Not Contain Binding    ${resp}    40    40.0.0.0/8
286     ${resp}    Get Bindings    127.0.0.6
287     Should Not Contain Binding    ${resp}    20    20.20.20.20/32
288     Should Not Contain Binding    ${resp}    20    20.20.20.0/24
289     Should Not Contain Binding    ${resp}    20    20.20.0.0/16
290     Should Not Contain Binding    ${resp}    20    20.0.0.0/8
291     Should Contain Binding    ${resp}    30    30.30.30.30/32
292     Should Contain Binding    ${resp}    30    30.30.30.0/24
293     Should Contain Binding    ${resp}    30    30.30.0.0/16
294     Should Contain Binding    ${resp}    30    30.0.0.0/8
295     Should Not Contain Binding    ${resp}    40    40.40.40.40/32
296     Should Not Contain Binding    ${resp}    40    40.40.40.0/24
297     Should Not Contain Binding    ${resp}    40    40.40.0.0/16
298     Should Not Contain Binding    ${resp}    40    40.0.0.0/8
299     ${resp}    Get Bindings    127.0.0.7
300     Should Contain Binding    ${resp}    20    20.20.20.20/32
301     Should Contain Binding    ${resp}    20    20.20.20.0/24
302     Should Contain Binding    ${resp}    20    20.20.0.0/16
303     Should Contain Binding    ${resp}    20    20.0.0.0/8
304     Should Not Contain Binding    ${resp}    30    30.30.30.30/32
305     Should Not Contain Binding    ${resp}    30    30.30.30.0/24
306     Should Not Contain Binding    ${resp}    30    30.30.0.0/16
307     Should Not Contain Binding    ${resp}    30    30.0.0.0/8
308     Should Contain Binding    ${resp}    40    40.40.40.40/32
309     Should Contain Binding    ${resp}    40    40.40.40.0/24
310     Should Contain Binding    ${resp}    40    40.40.0.0/16
311     Should Contain Binding    ${resp}    40    40.0.0.0/8
312     ${resp}    Get Bindings    127.0.0.8
313     Should Not Contain Binding    ${resp}    20    20.20.20.20/32
314     Should Not Contain Binding    ${resp}    20    20.20.20.0/24
315     Should Not Contain Binding    ${resp}    20    20.20.0.0/16
316     Should Not Contain Binding    ${resp}    20    20.0.0.0/8
317     Should Contain Binding    ${resp}    30    30.30.30.30/32
318     Should Contain Binding    ${resp}    30    30.30.30.0/24
319     Should Not Contain Binding    ${resp}    30    30.30.0.0/16
320     Should Not Contain Binding    ${resp}    30    30.0.0.0/8
321     Should Not Contain Binding    ${resp}    40    40.40.40.40/32
322     Should Not Contain Binding    ${resp}    40    40.40.40.0/24
323     Should Not Contain Binding    ${resp}    40    40.40.0.0/16
324     Should Not Contain Binding    ${resp}    40    40.0.0.0/8
325     ${resp}    Get Bindings    127.0.0.9
326     Should Not Contain Binding    ${resp}    20    20.20.20.20/32
327     Should Not Contain Binding    ${resp}    20    20.20.20.0/24
328     Should Not Contain Binding    ${resp}    20    20.20.0.0/16
329     Should Not Contain Binding    ${resp}    20    20.0.0.0/8
330     Should Not Contain Binding    ${resp}    30    30.30.30.30/32
331     Should Not Contain Binding    ${resp}    30    30.30.30.0/24
332     Should Not Contain Binding    ${resp}    30    30.30.0.0/16
333     Should Not Contain Binding    ${resp}    30    30.0.0.0/8
334     Should Not Contain Binding    ${resp}    40    40.40.40.40/32
335     Should Not Contain Binding    ${resp}    40    40.40.40.0/24
336     Should Not Contain Binding    ${resp}    40    40.40.0.0/16
337     Should Not Contain Binding    ${resp}    40    40.0.0.0/8
338
339 Check Domain Sharing Local
340     [Documentation]    Checks that Local Bindings are shared between domains
341     ${resp}    Get Bindings    127.0.0.5
342     Should Contain Binding    ${resp}    20    20.20.20.5/32
343     Should Contain Binding    ${resp}    20    20.20.5.5/32
344     Should Contain Binding    ${resp}    30    30.30.30.5/32
345     Should Contain Binding    ${resp}    30    30.30.5.5/32
346     Should Not Contain Binding    ${resp}    40    40.40.40.5/32
347     Should Not Contain Binding    ${resp}    40    40.40.5.5/32
348     ${resp}    Get Bindings    127.0.0.6
349     Should Not Contain Binding    ${resp}    20    20.20.20.5/32
350     Should Not Contain Binding    ${resp}    20    20.20.5.5/32
351     Should Contain Binding    ${resp}    30    30.30.30.5/32
352     Should Contain Binding    ${resp}    30    30.30.5.5/32
353     Should Not Contain Binding    ${resp}    40    40.40.40.5/32
354     Should Not Contain Binding    ${resp}    40    40.40.5.5/32
355     ${resp}    Get Bindings    127.0.0.7
356     Should Contain Binding    ${resp}    20    20.20.20.5/32
357     Should Contain Binding    ${resp}    20    20.20.5.5/32
358     Should Not Contain Binding    ${resp}    30    30.30.30.5/32
359     Should Not Contain Binding    ${resp}    30    30.30.5.5/32
360     Should Contain Binding    ${resp}    40    40.40.40.5/32
361     Should Contain Binding    ${resp}    40    40.40.5.5/32
362     ${resp}    Get Bindings    127.0.0.8
363     Should Not Contain Binding    ${resp}    20    20.20.20.5/32
364     Should Not Contain Binding    ${resp}    20    20.20.5.5/32
365     Should Contain Binding    ${resp}    30    30.30.30.5/32
366     Should Not Contain Binding    ${resp}    30    30.30.5.5/32
367     Should Not Contain Binding    ${resp}    40    40.40.40.5/32
368     Should Not Contain Binding    ${resp}    40    40.40.5.5/32
369     ${resp}    Get Bindings    127.0.0.9
370     Should Not Contain Binding    ${resp}    20    20.20.20.5/32
371     Should Not Contain Binding    ${resp}    20    20.20.5.5/32
372     Should Not Contain Binding    ${resp}    30    30.30.30.5/32
373     Should Not Contain Binding    ${resp}    30    30.30.5.5/32
374     Should Not Contain Binding    ${resp}    40    40.40.40.5/32
375     Should Not Contain Binding    ${resp}    40    40.40.5.5/32
376
377 Check Domain Sharing After Update
378     [Documentation]    Checks that removed Bindings are shared between domains
379     ${resp}    Get Bindings    127.0.0.5
380     Should Contain Binding    ${resp}    20    20.20.20.20/32
381     Should Not Contain Binding    ${resp}    20    20.20.20.0/24
382     Should Not Contain Binding    ${resp}    20    20.20.0.0/16
383     Should Contain Binding    ${resp}    20    20.0.0.0/8
384     Should Contain Binding    ${resp}    30    30.30.30.30/32
385     Should Not Contain Binding    ${resp}    30    30.30.30.0/24
386     Should Not Contain Binding    ${resp}    30    30.30.0.0/16
387     Should Not Contain Binding    ${resp}    30    30.0.0.0/8
388     Should Not Contain Binding    ${resp}    40    40.40.40.40/32
389     Should Not Contain Binding    ${resp}    40    40.40.40.0/24
390     Should Not Contain Binding    ${resp}    40    40.40.0.0/16
391     Should Not Contain Binding    ${resp}    40    40.0.0.0/8
392     ${resp}    Get Bindings    127.0.0.6
393     Should Not Contain Binding    ${resp}    20    20.20.20.20/32
394     Should Not Contain Binding    ${resp}    20    20.20.20.0/24
395     Should Not Contain Binding    ${resp}    20    20.20.0.0/16
396     Should Not Contain Binding    ${resp}    20    20.0.0.0/8
397     Should Contain Binding    ${resp}    30    30.30.30.30/32
398     Should Not Contain Binding    ${resp}    30    30.30.30.0/24
399     Should Not Contain Binding    ${resp}    30    30.30.0.0/16
400     Should Contain Binding    ${resp}    30    30.0.0.0/8
401     Should Not Contain Binding    ${resp}    40    40.40.40.40/32
402     Should Not Contain Binding    ${resp}    40    40.40.40.0/24
403     Should Not Contain Binding    ${resp}    40    40.40.0.0/16
404     Should Not Contain Binding    ${resp}    40    40.0.0.0/8
405     ${resp}    Get Bindings    127.0.0.7
406     Should Contain Binding    ${resp}    20    20.20.20.20/32
407     Should Not Contain Binding    ${resp}    20    20.20.20.0/24
408     Should Not Contain Binding    ${resp}    20    20.20.0.0/16
409     Should Contain Binding    ${resp}    20    20.0.0.0/8
410     Should Not Contain Binding    ${resp}    30    30.30.30.30/32
411     Should Not Contain Binding    ${resp}    30    30.30.30.0/24
412     Should Not Contain Binding    ${resp}    30    30.30.0.0/16
413     Should Not Contain Binding    ${resp}    30    30.0.0.0/8
414     Should Contain Binding    ${resp}    40    40.40.40.40/32
415     Should Not Contain Binding    ${resp}    40    40.40.40.0/24
416     Should Not Contain Binding    ${resp}    40    40.40.0.0/16
417     Should Contain Binding    ${resp}    40    40.0.0.0/8
418     ${resp}    Get Bindings    127.0.0.8
419     Should Not Contain Binding    ${resp}    20    20.20.20.20/32
420     Should Not Contain Binding    ${resp}    20    20.20.20.0/24
421     Should Not Contain Binding    ${resp}    20    20.20.0.0/16
422     Should Not Contain Binding    ${resp}    20    20.0.0.0/8
423     Should Contain Binding    ${resp}    30    30.30.30.30/32
424     Should Not Contain Binding    ${resp}    30    30.30.30.0/24
425     Should Not Contain Binding    ${resp}    30    30.30.0.0/16
426     Should Not Contain Binding    ${resp}    30    30.0.0.0/8
427     Should Not Contain Binding    ${resp}    40    40.40.40.40/32
428     Should Not Contain Binding    ${resp}    40    40.40.40.0/24
429     Should Not Contain Binding    ${resp}    40    40.40.0.0/16
430     Should Not Contain Binding    ${resp}    40    40.0.0.0/8
431     ${resp}    Get Bindings    127.0.0.9
432     Should Not Contain Binding    ${resp}    20    20.20.20.20/32
433     Should Not Contain Binding    ${resp}    20    20.20.20.0/24
434     Should Not Contain Binding    ${resp}    20    20.20.0.0/16
435     Should Not Contain Binding    ${resp}    20    20.0.0.0/8
436     Should Not Contain Binding    ${resp}    30    30.30.30.30/32
437     Should Not Contain Binding    ${resp}    30    30.30.30.0/24
438     Should Not Contain Binding    ${resp}    30    30.30.0.0/16
439     Should Not Contain Binding    ${resp}    30    30.0.0.0/8
440     Should Not Contain Binding    ${resp}    40    40.40.40.40/32
441     Should Not Contain Binding    ${resp}    40    40.40.40.0/24
442     Should Not Contain Binding    ${resp}    40    40.40.0.0/16
443     Should Not Contain Binding    ${resp}    40    40.0.0.0/8
444
445 Check Domain Sharing After Update Local
446     [Documentation]    Checks that removed Local Bindings are shared between domains
447     ${resp}    Get Bindings    127.0.0.5
448     Should Not Contain Binding    ${resp}    20    20.20.20.5/32
449     Should Contain Binding    ${resp}    20    20.20.5.5/32
450     Should Not Contain Binding    ${resp}    30    30.30.30.5/32
451     Should Contain Binding    ${resp}    30    30.30.5.5/32
452     Should Not Contain Binding    ${resp}    40    40.40.40.5/32
453     Should Not Contain Binding    ${resp}    40    40.40.5.5/32
454     ${resp}    Get Bindings    127.0.0.6
455     Should Not Contain Binding    ${resp}    20    20.20.20.5/32
456     Should Not Contain Binding    ${resp}    20    20.20.5.5/32
457     Should Not Contain Binding    ${resp}    30    30.30.30.5/32
458     Should Contain Binding    ${resp}    30    30.30.5.5/32
459     Should Not Contain Binding    ${resp}    40    40.40.40.5/32
460     Should Not Contain Binding    ${resp}    40    40.40.5.5/32
461     ${resp}    Get Bindings    127.0.0.7
462     Should Not Contain Binding    ${resp}    20    20.20.20.5/32
463     Should Contain Binding    ${resp}    20    20.20.5.5/32
464     Should Not Contain Binding    ${resp}    30    30.30.30.5/32
465     Should Not Contain Binding    ${resp}    30    30.30.5.5/32
466     Should Not Contain Binding    ${resp}    40    40.40.40.5/32
467     Should Contain Binding    ${resp}    40    40.40.5.5/32
468     ${resp}    Get Bindings    127.0.0.8
469     Should Not Contain Binding    ${resp}    20    20.20.20.5/32
470     Should Not Contain Binding    ${resp}    20    20.20.5.5/32
471     Should Not Contain Binding    ${resp}    30    30.30.30.5/32
472     Should Not Contain Binding    ${resp}    30    30.30.5.5/32
473     Should Not Contain Binding    ${resp}    40    40.40.40.5/32
474     Should Not Contain Binding    ${resp}    40    40.40.5.5/32
475     ${resp}    Get Bindings    127.0.0.9
476     Should Not Contain Binding    ${resp}    20    20.20.20.5/32
477     Should Not Contain Binding    ${resp}    20    20.20.5.5/32
478     Should Not Contain Binding    ${resp}    30    30.30.30.5/32
479     Should Not Contain Binding    ${resp}    30    30.30.5.5/32
480     Should Not Contain Binding    ${resp}    40    40.40.40.5/32
481     Should Not Contain Binding    ${resp}    40    40.40.5.5/32
482
483 Check After Update Part One
484     [Documentation]    Checks that Local Binding is not replaced by Local shared Binding
485     ${resp}    Get Bindings    127.0.0.7
486     Should Contain Binding    ${resp}    300    25.25.25.25/32
487     Should Contain Binding    ${resp}    450    35.35.35.35/32
488     ${resp}    Get Bindings    127.0.0.8
489     Should Contain Binding    ${resp}    500    35.35.35.35/32
490
491 Check After Update Part Two
492     [Documentation]    Checks that Local Binding was replaced by Local shared Binding
493     ${resp}    Get Bindings    127.0.0.8
494     Should Contain Binding    ${resp}    300    25.25.25.25/32
495     Should Contain Binding    ${resp}    450    35.35.35.35/32
496
497 Check After Update Part Three
498     [Documentation]    Checks that Local Binding restored
499     ${resp}    Get Bindings    127.0.0.7
500     Should Contain Binding    ${resp}    300    25.25.25.25/32
501     Should Contain Binding    ${resp}    400    35.35.35.35/32
502     ${resp}    Get Bindings    127.0.0.8
503     Should Contain Binding    ${resp}    300    25.25.25.25/32
504     Should Contain Binding    ${resp}    500    35.35.35.35/32