${rloc}= Get From Dictionary ${loc_record} rloc
${exp_loc_path}= Get From Dictionary ${rloc} explicit-locator-path
${actual_hop_index}= Evaluate ${hop_index} - 1
- ${hop}= Get From List ${exp_loc_path} ${actual_hop_index}
+ ${hop}= Get From List ${exp_loc_path} ${actual_hop_index}
[Return] ${hop}
Check Mapping Removal
${DATA} Add Connection Xml ${version} ${mode} ${ip} ${port} ${node}
... ${password}
${resp} Post Request ${session} ${REST_CONTEXT}:add-connection data=${DATA} headers=${HEADERS_XML}
- LOG ${resp}
+ LOG ${resp}
Should be Equal As Strings ${resp.status_code} 200
Get Connections
[Documentation] Add binding via RPC to Master DB of node
${DATA} Add Entry Xml ${sgt} ${prefix} ${node}
${resp} Post Request ${session} ${REST_CONTEXT}:add-entry data=${DATA} headers=${HEADERS_XML}
- LOG ${resp.content}
+ LOG ${resp.content}
Should be Equal As Strings ${resp.status_code} 200
Get Bindings
Should be Equal As Strings ${resp.status_code} 200
Add PeerGroup
+ [Arguments] ${name} ${peers}= ${node}=127.0.0.1 ${session}=session
[Documentation] Adds new PeerGroup via RPC to Node
- [Arguments] ${name} ${peers}= ${node}=127.0.0.1 ${session}=session
- ${DATA} Add Peer Group Xml ${name} ${peers} ${node}
- LOG ${DATA}
+ ${DATA} Add Peer Group Xml ${name} ${peers} ${node}
+ LOG ${DATA}
${resp} Post Request ${session} ${REST_CONTEXT}:add-peer-group data=${DATA} headers=${HEADERS_XML}
Should be Equal As Strings ${resp.status_code} 200
Delete Peer Group
- [Arguments] ${name} ${node}=127.0.0.1 ${session}=session
+ [Arguments] ${name} ${node}=127.0.0.1 ${session}=session
[Documentation] Delete PeerGroup via RPC from Node
- ${DATA} Delete Peer Group Xml ${name} ${node}
+ ${DATA} Delete Peer Group Xml ${name} ${node}
${resp} Post Request ${session} ${REST_CONTEXT}:delete-peer-group data=${DATA} headers=${HEADERS_XML}
Should be Equal As Strings ${resp.status_code} 200
[Return] ${resp.content}
Clean Peer Groups
- [Arguments] ${node}=127.0.0.1 ${session}=session
+ [Arguments] ${node}=127.0.0.1 ${session}=session
[Documentation] Delete all PeerGroups via RPC from node
- ${resp} Get Peer Groups ${node} ${session}
+ ${resp} Get Peer Groups ${node} ${session}
@{prefixes} Parse Peer Groups ${resp}
: FOR ${group} IN @{prefixes}
- \ Delete Peer Group ${group['name']} ${node} ${session}
+ \ Delete Peer Group ${group['name']} ${node} ${session}
Add Filter
- [Arguments] ${name} ${type} ${entries} ${node}=127.0.0.1 ${session}=session
+ [Arguments] ${name} ${type} ${entries} ${node}=127.0.0.1 ${session}=session
[Documentation] Add Filter via RPC from Node
- ${DATA} Add Filter Xml ${name} ${type} ${entries} ${node}
+ ${DATA} Add Filter Xml ${name} ${type} ${entries} ${node}
${resp} Post Request ${session} ${REST_CONTEXT}:add-filter data=${DATA} headers=${HEADERS_XML}
Should be Equal As Strings ${resp.status_code} 200
Delete Filter
- [Arguments] ${name} ${type} ${node}=127.0.0.1 ${session}=session
+ [Arguments] ${name} ${type} ${node}=127.0.0.1 ${session}=session
[Documentation] Delete Filter via RPC from Node
- ${DATA} Delete Filter Xml ${name} ${type} ${node}
+ ${DATA} Delete Filter Xml ${name} ${type} ${node}
${resp} Post Request ${session} ${REST_CONTEXT}:delete-filter data=${DATA} headers=${HEADERS_XML}
Should be Equal As Strings ${resp.status_code} 200
Should Not Be True ${out} Shouldn't have ${ip}:${port} ${mode} ${version}
Setup Topology Complex
- [Arguments] ${version}=version4 ${PASSWORD}=none
+ [Arguments] ${version}=version4 ${PASSWORD}=none
: FOR ${node} IN RANGE 2 6
- \ Add Connection ${version} both 127.0.0.1 64999 127.0.0.${node} ${PASSWORD}
- \ Add Connection ${version} both 127.0.0.${node} 64999 127.0.0.1 ${PASSWORD}
- \ Wait Until Keyword Succeeds 15 4 Verify Connection ${version} both 127.0.0.${node}
- \ Add Binding ${node}0 10.10.10.${node}0/32 127.0.0.${node}
- \ Add Binding ${node}0 10.10.${node}0.0/24 127.0.0.${node}
- \ Add Binding ${node}0 10.${node}0.0.0/16 127.0.0.${node}
- \ Add Binding ${node}0 ${node}0.0.0.0/8 127.0.0.${node}
-
+ \ Add Connection ${version} both 127.0.0.1 64999 127.0.0.${node}
+ \ ... ${PASSWORD}
+ \ Add Connection ${version} both 127.0.0.${node} 64999 127.0.0.1
+ \ ... ${PASSWORD}
+ \ Wait Until Keyword Succeeds 15 4 Verify Connection ${version} both
+ \ ... 127.0.0.${node}
+ \ Add Binding ${node}0 10.10.10.${node}0/32 127.0.0.${node}
+ \ Add Binding ${node}0 10.10.${node}0.0/24 127.0.0.${node}
+ \ Add Binding ${node}0 10.${node}0.0.0/16 127.0.0.${node}
+ \ Add Binding ${node}0 ${node}0.0.0.0/8 127.0.0.${node}
Add Binding 10 10.10.10.10/32 127.0.0.1
- Add Binding 10 10.10.10.0/24 127.0.0.1
- Add Binding 10 10.10.0.0/16 127.0.0.1
- Add Binding 10 10.0.0.0/8 127.0.0.1
+ Add Binding 10 10.10.10.0/24 127.0.0.1
+ Add Binding 10 10.10.0.0/16 127.0.0.1
+ Add Binding 10 10.0.0.0/8 127.0.0.1
Setup SXP Environment
[Documentation] Create session to Controller
Get the Specific Node Inventory and Lacp aggregator details
[Documentation] Get the lacp-aggregator data for specific node
${resp} Get session ${OPERATIONAL_NODES_API}/node/${node1}
- Verify LACP RESTAPI Response Code for node ${resp}
+ Verify LACP RESTAPI Response Code for node ${resp}
Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} ${agg-id1}
Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} ${agg-id2}
Get information of each lacp-aggregator for a node
[Documentation] Get each lacp-aggregator data for a node
${resp} Get session ${OPERATIONAL_NODES_API}/node/${node1}/lacp-aggregators/${agg-id1}
- Verify LACP RESTAPI Response Code for node ${resp}
+ Verify LACP RESTAPI Response Code for node ${resp}
Verify LACP connector associated for aggregator ${resp.content} ${node1} ${agg1-connector-id1}
Verify LACP connector associated for aggregator ${resp.content} ${node1} ${agg1-connector-id2}
Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} lag-groupid
${resp} Get session ${OPERATIONAL_NODES_API}/node/${node1}/lacp-aggregators/${agg-id2}
- Verify LACP RESTAPI Response Code for node ${resp}
+ Verify LACP RESTAPI Response Code for node ${resp}
Verify LACP connector associated for aggregator ${resp.content} ${node1} ${agg2-connector-id1}
Verify LACP connector associated for aggregator ${resp.content} ${node1} ${agg2-connector-id2}
Verify LACP RESTAPI Aggregator and Tag Contents ${resp.content} lag-groupid
[Documentation] Will configure the port state of the Host to either up or down
Open Connection ${MININET} prompt=${DEFAULT_LINUX_PROMPT}
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/${SSH_KEY} any
- Write sudo ./m h2
- Write sudo ifconfig ${port-id}
- Write sudo ifconfig ${port-id} ${port-state}
+ Write sudo ./m h2
+ Write sudo ifconfig ${port-id}
+ Write sudo ifconfig ${port-id} ${port-state}
Verify Switch S1 Group Table
[Arguments] ${group-type} ${port-id1} ${port-id2} ${port-id2-state}
Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-vsctl del-manager
OVSDB Connection Manager Suite Teardown
- [Documentation] Cleans up test environment, close existing sessions.
+ [Documentation] Cleans up test environment, close existing sessions.
Clean OVSDB Test Environment ${TOOLS_SYSTEM_IP}
RequestsLibrary.Delete Request session ${CONFIG_TOPO_API}/topology/ovsdb:1/node/ovsdb:%2F%2Fuuid%2F${ovsdb_uuid}%2Fbridge%2F${BRIDGE}
${resp} RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
Create Bridge
[Documentation] This will create bridge on the specified OVSDB node.
${body} OperatingSystem.Get File ${OVSDB_CONFIG_DIR}/create_bridge.json
- ${body} Replace String ${body} ovsdb://127.0.0.1:61644 ovsdb://uuid/${ovsdb_uuid}
+ ${body} Replace String ${body} ovsdb://127.0.0.1:61644 ovsdb://uuid/${ovsdb_uuid}
${body} Replace String ${body} tcp:127.0.0.1:6633 tcp:${ODL_SYSTEM_IP}:6640
${body} Replace String ${body} 127.0.0.1 ${TOOLS_SYSTEM_IP}
${body} Replace String ${body} br01 ${BRIDGE}
Log URL is ${uri}
Log data: ${body}
${resp} RequestsLibrary.Put Request session ${uri} data=${body}
- Should Be Equal As Strings ${resp.status_code} 200
\ No newline at end of file
+ Should Be Equal As Strings ${resp.status_code} 200
*** Test Cases ***
Access List Filtering
- [Documentation] Test ACL filter behaviour during filter update
- ${peers} Add Peers 127.0.0.2 127.0.0.4
- Add PeerGroup GROUP ${peers}
-
- ${entry1} Get Filter Entry 10 permit acl=10.10.10.0,0.0.0.255
- ${entry2} Get Filter Entry 20 permit acl=10.0.0.0,0.254.0.0
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 4-2
- Delete Filter GROUP inbound
- ${entries} Get Filter Entry 10 permit acl=10.0.0.0,0.255.255.255
- Add Filter GROUP inbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check Two Group 4-2
- Delete Filter GROUP inbound
- ${entries} Get Filter Entry 10 deny acl=10.0.0.0,0.255.255.255
- Add Filter GROUP inbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check Three Group 4-2
+ [Documentation] Test ACL filter behaviour during filter update
+ ${peers} Add Peers 127.0.0.2 127.0.0.4
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit acl=10.10.10.0,0.0.0.255
+ ${entry2} Get Filter Entry 20 permit acl=10.0.0.0,0.254.0.0
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-2
+ Delete Filter GROUP inbound
+ ${entries} Get Filter Entry 10 permit acl=10.0.0.0,0.255.255.255
+ Add Filter GROUP inbound ${entries}
+ Wait Until Keyword Succeeds 4 1 Check Two Group 4-2
+ Delete Filter GROUP inbound
+ ${entries} Get Filter Entry 10 deny acl=10.0.0.0,0.255.255.255
+ Add Filter GROUP inbound ${entries}
+ Wait Until Keyword Succeeds 4 1 Check Three Group 4-2
Access List Sgt Filtering
- [Documentation] Test ACL and SGT filter behaviour during filter update
- ${peers} Add Peers 127.0.0.3 127.0.0.5
- Add PeerGroup GROUP ${peers}
-
- ${entry1} Get Filter Entry 10 permit sgt=30 acl=10.10.10.0,0.0.0.255
- ${entry2} Get Filter Entry 20 permit sgt=50 acl=10.0.0.0,0.254.0.0
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 5-3
- Delete Filter GROUP inbound
- ${entries} Get Filter Entry 10 permit esgt=20,40 acl=10.0.0.0,0.255.255.255
- Add Filter GROUP inbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check Two Group 5-3
+ [Documentation] Test ACL and SGT filter behaviour during filter update
+ ${peers} Add Peers 127.0.0.3 127.0.0.5
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit sgt=30 acl=10.10.10.0,0.0.0.255
+ ${entry2} Get Filter Entry 20 permit sgt=50 acl=10.0.0.0,0.254.0.0
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 5-3
+ Delete Filter GROUP inbound
+ ${entries} Get Filter Entry 10 permit esgt=20,40 acl=10.0.0.0,0.255.255.255
+ Add Filter GROUP inbound ${entries}
+ Wait Until Keyword Succeeds 4 1 Check Two Group 5-3
Prefix List Filtering
- [Documentation] Test Prefix List filter behaviour during filter update
- ${peers} Add Peers 127.0.0.2 127.0.0.4
- Add PeerGroup GROUP ${peers}
-
- ${entry1} Get Filter Entry 10 permit pl=10.10.10.0/24
- ${entry2} Get Filter Entry 20 permit epl=10.0.0.0/8,le,16
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 4-2
- Delete Filter GROUP inbound
- ${entries} Get Filter Entry 10 permit pl=10.0.0.0/8
- Add Filter GROUP inbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check Two Group 4-2
- Delete Filter GROUP inbound
- ${entries} Get Filter Entry 10 deny pl=10.0.0.0/8
- Add Filter GROUP inbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check Three Group 4-2
+ [Documentation] Test Prefix List filter behaviour during filter update
+ ${peers} Add Peers 127.0.0.2 127.0.0.4
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit pl=10.10.10.0/24
+ ${entry2} Get Filter Entry 20 permit epl=10.0.0.0/8,le,16
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-2
+ Delete Filter GROUP inbound
+ ${entries} Get Filter Entry 10 permit pl=10.0.0.0/8
+ Add Filter GROUP inbound ${entries}
+ Wait Until Keyword Succeeds 4 1 Check Two Group 4-2
+ Delete Filter GROUP inbound
+ ${entries} Get Filter Entry 10 deny pl=10.0.0.0/8
+ Add Filter GROUP inbound ${entries}
+ Wait Until Keyword Succeeds 4 1 Check Three Group 4-2
Prefix List Sgt Filtering
- [Documentation] Test Prefix List and SGT filter behaviour during filter update
- ${peers} Add Peers 127.0.0.3 127.0.0.5
- Add PeerGroup GROUP ${peers}
- ${entry1} Get Filter Entry 10 permit sgt=30 pl=10.10.10.0/24
- ${entry2} Get Filter Entry 20 permit pl=10.50.0.0/16
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 5-3
- Delete Filter GROUP inbound
- ${entries} Get Filter Entry 10 permit esgt=20,40 pl=10.0.0.0/8
- Add Filter GROUP inbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check Two Group 5-3
-
+ [Documentation] Test Prefix List and SGT filter behaviour during filter update
+ ${peers} Add Peers 127.0.0.3 127.0.0.5
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit sgt=30 pl=10.10.10.0/24
+ ${entry2} Get Filter Entry 20 permit pl=10.50.0.0/16
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 5-3
+ Delete Filter GROUP inbound
+ ${entries} Get Filter Entry 10 permit esgt=20,40 pl=10.0.0.0/8
+ Add Filter GROUP inbound ${entries}
+ Wait Until Keyword Succeeds 4 1 Check Two Group 5-3
*** Keywords ***
Check One Group 4-2
- [Documentation] Check if only bindings matching filter from node 4 and 2 are propagated to SXP-DB other nodes
- ... Database should contains only Bindings regarding to these matches:
- ... permit ACL 10.10.10.0 0.0.0.255
- ... permit ACL 10.0.0.0 0.254.0.0
- ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
+ [Documentation] Check if only bindings matching filter from node 4 and 2 are propagated to SXP-DB other nodes
+ ... Database should contains only Bindings regarding to these matches:
+ ... permit ACL 10.10.10.0 0.0.0.255
+ ... permit ACL 10.0.0.0 0.254.0.0
+ ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
${resp} Get Bindings Master Database 127.0.0.5
- Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
- Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
- Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
- Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
- Should Contain Binding ${resp} 20 10.10.10.20/32 sxp
- Should Not Contain Binding ${resp} 20 10.10.20.0/24 sxp
- Should Contain Binding ${resp} 20 10.20.0.0/16 sxp
- Should Not Contain Binding ${resp} 20 20.0.0.0/8 sxp
- Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
- Should Contain Binding ${resp} 30 10.10.30.0/24 sxp
- Should Contain Binding ${resp} 30 10.30.0.0/16 sxp
- Should Contain Binding ${resp} 30 30.0.0.0/8 sxp
- Should Contain Binding ${resp} 40 10.10.10.40/32 sxp
- Should Not Contain Binding ${resp} 40 10.10.40.0/24 sxp
- Should Contain Binding ${resp} 40 10.40.0.0/16 sxp
- Should Not Contain Binding ${resp} 40 40.0.0.0/8 sxp
-
+ Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
+ Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
+ Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
+ Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
+ Should Contain Binding ${resp} 20 10.10.10.20/32 sxp
+ Should Not Contain Binding ${resp} 20 10.10.20.0/24 sxp
+ Should Contain Binding ${resp} 20 10.20.0.0/16 sxp
+ Should Not Contain Binding ${resp} 20 20.0.0.0/8 sxp
+ Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
+ Should Contain Binding ${resp} 30 10.10.30.0/24 sxp
+ Should Contain Binding ${resp} 30 10.30.0.0/16 sxp
+ Should Contain Binding ${resp} 30 30.0.0.0/8 sxp
+ Should Contain Binding ${resp} 40 10.10.10.40/32 sxp
+ Should Not Contain Binding ${resp} 40 10.10.40.0/24 sxp
+ Should Contain Binding ${resp} 40 10.40.0.0/16 sxp
+ Should Not Contain Binding ${resp} 40 40.0.0.0/8 sxp
${resp} Get Bindings Master Database 127.0.0.3
- Should Contain Binding ${resp} 50 10.10.10.50/32 sxp
- Should Contain Binding ${resp} 50 10.10.50.0/24 sxp
- Should Contain Binding ${resp} 50 10.50.0.0/16 sxp
- Should Contain Binding ${resp} 50 50.0.0.0/8 sxp
+ Should Contain Binding ${resp} 50 10.10.10.50/32 sxp
+ Should Contain Binding ${resp} 50 10.10.50.0/24 sxp
+ Should Contain Binding ${resp} 50 10.50.0.0/16 sxp
+ Should Contain Binding ${resp} 50 50.0.0.0/8 sxp
Check Two Group 4-2
- [Documentation] Check if only bindings matching filter from node 4 and 2 are propagated to SXP-DB of other nodes
- ... Database should contains only Bindings regarding to these matches:
- ... permit ACL 10.0.0.0 0.255.255.255
- ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
+ [Documentation] Check if only bindings matching filter from node 4 and 2 are propagated to SXP-DB of other nodes
+ ... Database should contains only Bindings regarding to these matches:
+ ... permit ACL 10.0.0.0 0.255.255.255
+ ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
${resp} Get Bindings Master Database 127.0.0.5
- Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
- Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
- Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
- Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
- Should Contain Binding ${resp} 20 10.10.10.20/32 sxp
- Should Contain Binding ${resp} 20 10.10.20.0/24 sxp
- Should Contain Binding ${resp} 20 10.20.0.0/16 sxp
- Should Not Contain Binding ${resp} 20 20.0.0.0/8 sxp
- Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
- Should Contain Binding ${resp} 30 10.10.30.0/24 sxp
- Should Contain Binding ${resp} 30 10.30.0.0/16 sxp
- Should Contain Binding ${resp} 30 30.0.0.0/8 sxp
- Should Contain Binding ${resp} 40 10.10.10.40/32 sxp
- Should Contain Binding ${resp} 40 10.10.40.0/24 sxp
- Should Contain Binding ${resp} 40 10.40.0.0/16 sxp
- Should Not Contain Binding ${resp} 40 40.0.0.0/8 sxp
-
+ Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
+ Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
+ Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
+ Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
+ Should Contain Binding ${resp} 20 10.10.10.20/32 sxp
+ Should Contain Binding ${resp} 20 10.10.20.0/24 sxp
+ Should Contain Binding ${resp} 20 10.20.0.0/16 sxp
+ Should Not Contain Binding ${resp} 20 20.0.0.0/8 sxp
+ Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
+ Should Contain Binding ${resp} 30 10.10.30.0/24 sxp
+ Should Contain Binding ${resp} 30 10.30.0.0/16 sxp
+ Should Contain Binding ${resp} 30 30.0.0.0/8 sxp
+ Should Contain Binding ${resp} 40 10.10.10.40/32 sxp
+ Should Contain Binding ${resp} 40 10.10.40.0/24 sxp
+ Should Contain Binding ${resp} 40 10.40.0.0/16 sxp
+ Should Not Contain Binding ${resp} 40 40.0.0.0/8 sxp
${resp} Get Bindings Master Database 127.0.0.3
- Should Contain Binding ${resp} 50 10.10.10.50/32 sxp
- Should Contain Binding ${resp} 50 10.10.50.0/24 sxp
- Should Contain Binding ${resp} 50 10.50.0.0/16 sxp
- Should Contain Binding ${resp} 50 50.0.0.0/8 sxp
+ Should Contain Binding ${resp} 50 10.10.10.50/32 sxp
+ Should Contain Binding ${resp} 50 10.10.50.0/24 sxp
+ Should Contain Binding ${resp} 50 10.50.0.0/16 sxp
+ Should Contain Binding ${resp} 50 50.0.0.0/8 sxp
Check Three Group 4-2
- [Documentation] Check if only bindings matching filter from node 4 and 2 are propagated to SXP-DB of other nodes
- ... Database should contains only Bindings regarding to these matches:
- ... deny ACL 10.0.0.0 0.255.255.255
- ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
+ [Documentation] Check if only bindings matching filter from node 4 and 2 are propagated to SXP-DB of other nodes
+ ... Database should contains only Bindings regarding to these matches:
+ ... deny ACL 10.0.0.0 0.255.255.255
+ ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
${resp} Get Bindings Master Database 127.0.0.5
- Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
- Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
- Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
- Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
- Should Not Contain Binding ${resp} 20 10.10.10.20/32 sxp
- Should Not Contain Binding ${resp} 20 10.10.20.0/24 sxp
- Should Not Contain Binding ${resp} 20 10.20.0.0/16 sxp
- Should Not Contain Binding ${resp} 20 20.0.0.0/8 sxp
- Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
- Should Contain Binding ${resp} 30 10.10.30.0/24 sxp
- Should Contain Binding ${resp} 30 10.30.0.0/16 sxp
- Should Contain Binding ${resp} 30 30.0.0.0/8 sxp
- Should Not Contain Binding ${resp} 40 10.10.10.40/32 sxp
- Should Not Contain Binding ${resp} 40 10.10.40.0/24 sxp
- Should Not Contain Binding ${resp} 40 10.40.0.0/16 sxp
- Should Not Contain Binding ${resp} 40 40.0.0.0/8 sxp
+ Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
+ Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
+ Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
+ Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
+ Should Not Contain Binding ${resp} 20 10.10.10.20/32 sxp
+ Should Not Contain Binding ${resp} 20 10.10.20.0/24 sxp
+ Should Not Contain Binding ${resp} 20 10.20.0.0/16 sxp
+ Should Not Contain Binding ${resp} 20 20.0.0.0/8 sxp
+ Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
+ Should Contain Binding ${resp} 30 10.10.30.0/24 sxp
+ Should Contain Binding ${resp} 30 10.30.0.0/16 sxp
+ Should Contain Binding ${resp} 30 30.0.0.0/8 sxp
+ Should Not Contain Binding ${resp} 40 10.10.10.40/32 sxp
+ Should Not Contain Binding ${resp} 40 10.10.40.0/24 sxp
+ Should Not Contain Binding ${resp} 40 10.40.0.0/16 sxp
+ Should Not Contain Binding ${resp} 40 40.0.0.0/8 sxp
Check One Group 5-3
- [Documentation] Check if only bindings matching filter from node 5 and 3 are propagated to SXP-DB of other nodes
- ... Database should contains only Bindings regarding to these matches:
- ... permit SGT 30 ACL 10.10.10.0 0.0.0.255
- ... permit SGT 50 ACL 10.0.0.0 0.254.0.0
- ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
+ [Documentation] Check if only bindings matching filter from node 5 and 3 are propagated to SXP-DB of other nodes
+ ... Database should contains only Bindings regarding to these matches:
+ ... permit SGT 30 ACL 10.10.10.0 0.0.0.255
+ ... permit SGT 50 ACL 10.0.0.0 0.254.0.0
+ ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
${resp} Get Bindings Master Database 127.0.0.4
- Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
- Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
- Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
- Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
- Should Contain Binding ${resp} 20 10.10.10.20/32 sxp
- Should Contain Binding ${resp} 20 10.10.20.0/24 sxp
- Should Contain Binding ${resp} 20 10.20.0.0/16 sxp
- Should Contain Binding ${resp} 20 20.0.0.0/8 sxp
- Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
- Should Not Contain Binding ${resp} 30 10.10.30.0/24 sxp
- Should Not Contain Binding ${resp} 30 10.30.0.0/16 sxp
- Should Not Contain Binding ${resp} 30 30.0.0.0/8 sxp
- Should Not Contain Binding ${resp} 50 10.10.10.50/32 sxp
- Should Not Contain Binding ${resp} 50 10.10.50.0/24 sxp
- Should Contain Binding ${resp} 50 10.50.0.0/16 sxp
- Should Not Contain Binding ${resp} 50 50.0.0.0/8 sxp
-
+ Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
+ Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
+ Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
+ Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
+ Should Contain Binding ${resp} 20 10.10.10.20/32 sxp
+ Should Contain Binding ${resp} 20 10.10.20.0/24 sxp
+ Should Contain Binding ${resp} 20 10.20.0.0/16 sxp
+ Should Contain Binding ${resp} 20 20.0.0.0/8 sxp
+ Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
+ Should Not Contain Binding ${resp} 30 10.10.30.0/24 sxp
+ Should Not Contain Binding ${resp} 30 10.30.0.0/16 sxp
+ Should Not Contain Binding ${resp} 30 30.0.0.0/8 sxp
+ Should Not Contain Binding ${resp} 50 10.10.10.50/32 sxp
+ Should Not Contain Binding ${resp} 50 10.10.50.0/24 sxp
+ Should Contain Binding ${resp} 50 10.50.0.0/16 sxp
+ Should Not Contain Binding ${resp} 50 50.0.0.0/8 sxp
${resp} Get Bindings Master Database 127.0.0.2
- Should Contain Binding ${resp} 40 10.10.10.40/32 sxp
- Should Contain Binding ${resp} 40 10.10.40.0/24 sxp
- Should Contain Binding ${resp} 40 10.40.0.0/16 sxp
- Should Contain Binding ${resp} 40 40.0.0.0/8 sxp
-
+ Should Contain Binding ${resp} 40 10.10.10.40/32 sxp
+ Should Contain Binding ${resp} 40 10.10.40.0/24 sxp
+ Should Contain Binding ${resp} 40 10.40.0.0/16 sxp
+ Should Contain Binding ${resp} 40 40.0.0.0/8 sxp
Check Two Group 5-3
- [Documentation] Check if only bindings matching filter from node 5 and 3 are propagated to SXP-DB of other nodes
- ... Database should contains only Bindings regarding to these matches:
- ... permit ESGT 20,40 ACL 10.0.0.0 0.255.255.255
- ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
+ [Documentation] Check if only bindings matching filter from node 5 and 3 are propagated to SXP-DB of other nodes
+ ... Database should contains only Bindings regarding to these matches:
+ ... permit ESGT 20,40 ACL 10.0.0.0 0.255.255.255
+ ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
${resp} Get Bindings Master Database 127.0.0.4
- Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
- Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
- Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
- Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
- Should Contain Binding ${resp} 20 10.10.10.20/32 sxp
- Should Contain Binding ${resp} 20 10.10.20.0/24 sxp
- Should Contain Binding ${resp} 20 10.20.0.0/16 sxp
- Should Contain Binding ${resp} 20 20.0.0.0/8 sxp
- Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
- Should Contain Binding ${resp} 30 10.10.30.0/24 sxp
- Should Contain Binding ${resp} 30 10.30.0.0/16 sxp
- Should Not Contain Binding ${resp} 30 30.0.0.0/8 sxp
- Should Not Contain Binding ${resp} 50 10.10.10.50/32 sxp
- Should Not Contain Binding ${resp} 50 10.10.50.0/24 sxp
- Should Not Contain Binding ${resp} 50 10.50.0.0/16 sxp
- Should Not Contain Binding ${resp} 50 50.0.0.0/8 sxp
-
+ Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
+ Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
+ Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
+ Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
+ Should Contain Binding ${resp} 20 10.10.10.20/32 sxp
+ Should Contain Binding ${resp} 20 10.10.20.0/24 sxp
+ Should Contain Binding ${resp} 20 10.20.0.0/16 sxp
+ Should Contain Binding ${resp} 20 20.0.0.0/8 sxp
+ Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
+ Should Contain Binding ${resp} 30 10.10.30.0/24 sxp
+ Should Contain Binding ${resp} 30 10.30.0.0/16 sxp
+ Should Not Contain Binding ${resp} 30 30.0.0.0/8 sxp
+ Should Not Contain Binding ${resp} 50 10.10.10.50/32 sxp
+ Should Not Contain Binding ${resp} 50 10.10.50.0/24 sxp
+ Should Not Contain Binding ${resp} 50 10.50.0.0/16 sxp
+ Should Not Contain Binding ${resp} 50 50.0.0.0/8 sxp
${resp} Get Bindings Master Database 127.0.0.2
- Should Contain Binding ${resp} 40 10.10.10.40/32 sxp
- Should Contain Binding ${resp} 40 10.10.40.0/24 sxp
- Should Contain Binding ${resp} 40 10.40.0.0/16 sxp
- Should Contain Binding ${resp} 40 40.0.0.0/8 sxp
+ Should Contain Binding ${resp} 40 10.10.10.40/32 sxp
+ Should Contain Binding ${resp} 40 10.10.40.0/24 sxp
+ Should Contain Binding ${resp} 40 10.40.0.0/16 sxp
+ Should Contain Binding ${resp} 40 40.0.0.0/8 sxp
Clean Nodes
Clean Connections 127.0.0.1
Clean Connections 127.0.0.4
Clean Connections 127.0.0.5
Clean Peer Groups 127.0.0.1
- Clean Bindings 127.0.0.1
- Clean Bindings 127.0.0.2
- Clean Bindings 127.0.0.3
- Clean Bindings 127.0.0.4
- Clean Bindings 127.0.0.5
+ Clean Bindings 127.0.0.1
+ Clean Bindings 127.0.0.2
+ Clean Bindings 127.0.0.3
+ Clean Bindings 127.0.0.4
+ Clean Bindings 127.0.0.5
${entry3} Get Filter Entry 30 permit acl=10.0.0.0,0.255.255.0
${entries} Combine Strings ${entry1} ${entry2} ${entry3}
Add Filter GROUP outbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 4-5
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-5
Delete Filter GROUP outbound
${entry1} Get Filter Entry 10 permit acl=10.20.0.0,0.0.255.255
${entry2} Get Filter Entry 20 permit acl=10.10.0.0,0.0.255.0
${entries} Combine Strings ${entry1} ${entry2}
Add Filter GROUP outbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check Two Group 4-5
+ Wait Until Keyword Succeeds 4 1 Check Two Group 4-5
Access List Sgt Filtering
[Documentation] Test ACL and SGT filter behaviour during filter update
${entry3} Get Filter Entry 30 permit sgt=30 acl=10.10.10.0,0.0.0.255
${entries} Combine Strings ${entry1} ${entry2} ${entry3}
Add Filter GROUP outbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 2-5
+ Wait Until Keyword Succeeds 4 1 Check One Group 2-5
Delete Filter GROUP outbound
${entries} Get Filter Entry 10 permit esgt=20,40 acl=10.10.0.0,0.0.255.255
Add Filter GROUP outbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check Two Group 2-5
+ Wait Until Keyword Succeeds 4 1 Check Two Group 2-5
Prefix List Filtering
[Documentation] Test Prefix List filter behaviour during filter update
${entry3} Get Filter Entry 30 permit epl=10.0.0.0/8,le,24
${entries} Combine Strings ${entry1} ${entry2} ${entry3}
Add Filter GROUP outbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 4-5
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-5
Delete Filter GROUP outbound
${entry1} Get Filter Entry 10 permit pl=10.20.0.0/16
${entry2} Get Filter Entry 20 permit epl=10.10.0.0/16,le,24
${entries} Combine Strings ${entry1} ${entry2}
Add Filter GROUP outbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check Two Group 4-5
+ Wait Until Keyword Succeeds 4 1 Check Two Group 4-5
Prefix List Sgt Filtering
[Documentation] Test Prefix List and SGT filter behaviour during filter update
${entry3} Get Filter Entry 30 permit sgt=30 pl=10.10.10.0/24
${entries} Combine Strings ${entry1} ${entry2} ${entry3}
Add Filter GROUP outbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 2-5
+ Wait Until Keyword Succeeds 4 1 Check One Group 2-5
Delete Filter GROUP outbound
${entries} Get Filter Entry 10 permit esgt=20,40 pl=10.10.0.0/16
Add Filter GROUP outbound ${entries}
- Wait Until Keyword Succeeds 4 1 Check Two Group 2-5
+ Wait Until Keyword Succeeds 4 1 Check Two Group 2-5
*** Keywords ***
Setup Nodes
Wait Until Keyword Succeeds 15 4 Verify Connection ${version} speaker 127.0.0.5
Check One Group 4-5
- [Documentation] Check if only bindings matching filter nodes 4 and 5
- ... Database should contains only Bindings regarding to these matches:
- ... permit ACL 10.10.10.0 0.0.0.255
- ... deny ACL 10.10.0.0 0.0.255.0
- ... permit ACL 10.0.0.0 0.255.255.0
- ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
+ [Documentation] Check if only bindings matching filter nodes 4 and 5
+ ... Database should contains only Bindings regarding to these matches:
+ ... permit ACL 10.10.10.0 0.0.0.255
+ ... deny ACL 10.10.0.0 0.0.255.0
+ ... permit ACL 10.0.0.0 0.255.255.0
+ ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
: FOR ${node} IN RANGE 4 6
\ ${resp} Get Bindings Master Database 127.0.0.${node}
\ Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
Should Contain Binding ${resp} 40 40.0.0.0/8 sxp
Check Two Group 4-5
- [Documentation] Check if only bindings matching filter nodes 4 and 5
- ... Database should contains only Bindings regarding to these matches:
- ... permit ACL 10.20.0.0 0.0.255.255
- ... permit ACL 10.10.0.0 0.0.255.0
- ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
+ [Documentation] Check if only bindings matching filter nodes 4 and 5
+ ... Database should contains only Bindings regarding to these matches:
+ ... permit ACL 10.20.0.0 0.0.255.255
+ ... permit ACL 10.10.0.0 0.0.255.0
+ ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
: FOR ${node} IN RANGE 4 6
\ ${resp} Get Bindings Master Database 127.0.0.${node}
\ Should Not Contain Binding ${resp} 10 10.10.10.10/32 sxp
Should Contain Binding ${resp} 40 40.0.0.0/8 sxp
Check One Group 2-5
- [Documentation] Check if only bindings matching filter nodes 2 and 5
- ... Database should contains only Bindings regarding to these matches:
- ... deny ACL 10.10.20.0 0.0.0.255
- ... permit ACL 10.10.0.0 0.0.255.0
- ... permit SGT 30 ACL 10.10.10.0 0.0.0.255
- ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
+ [Documentation] Check if only bindings matching filter nodes 2 and 5
+ ... Database should contains only Bindings regarding to these matches:
+ ... deny ACL 10.10.20.0 0.0.0.255
+ ... permit ACL 10.10.0.0 0.0.255.0
+ ... permit SGT 30 ACL 10.10.10.0 0.0.0.255
+ ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
@{list} Create List 127.0.0.2 127.0.0.5
: FOR ${node} IN @{list}
\ ${resp} Get Bindings Master Database ${node}
Should Contain Binding ${resp} 30 30.0.0.0/8 sxp
Check Two Group 2-5
- [Documentation] Check if only bindings matching filter nodes 2 and 5
- ... Database should contains only Bindings regarding to these matches:
- ... permit SGT 20,40 ACL 10.10.0.0 0.0.255.255
- ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
+ [Documentation] Check if only bindings matching filter nodes 2 and 5
+ ... Database should contains only Bindings regarding to these matches:
+ ... permit SGT 20,40 ACL 10.10.0.0 0.0.255.255
+ ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
@{list} Create List 127.0.0.2 127.0.0.5
: FOR ${node} IN @{list}
\ ${resp} Get Bindings Master Database ${node}
*** Test Cases ***
Access List Filtering
- [Documentation] Test ACL filter behaviour during filter update
+ [Documentation] Test ACL filter behaviour during filter update
Setup Nodes
- ${peers} Add Peers 127.0.0.2 127.0.0.4
- Add PeerGroup GROUP ${peers}
- ${entry1} Get Filter Entry 10 permit acl=10.10.10.0,0.0.0.255
- ${entry2} Get Filter Entry 20 permit acl=10.0.0.0,0.254.0.0
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound-discarding ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 4-2
- Delete Filter GROUP inbound-discarding
- Wait Until Keyword Succeeds 4 1 Check One Group 4-2
+ ${peers} Add Peers 127.0.0.2 127.0.0.4
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit acl=10.10.10.0,0.0.0.255
+ ${entry2} Get Filter Entry 20 permit acl=10.0.0.0,0.254.0.0
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound-discarding ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-2
+ Delete Filter GROUP inbound-discarding
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-2
Access List Sgt Filtering
- [Documentation] Test ACL and SGT filter behaviour during filter update
+ [Documentation] Test ACL and SGT filter behaviour during filter update
Setup Nodes
- ${peers} Add Peers 127.0.0.3 127.0.0.5
- Add PeerGroup GROUP ${peers}
- ${entry1} Get Filter Entry 10 permit sgt=30 acl=10.10.10.0,0.0.0.255
- ${entry2} Get Filter Entry 20 permit sgt=50 acl=10.0.0.0,0.254.0.0
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound-discarding ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 5-3
- Delete Filter GROUP inbound-discarding
- Wait Until Keyword Succeeds 4 1 Check One Group 5-3
+ ${peers} Add Peers 127.0.0.3 127.0.0.5
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit sgt=30 acl=10.10.10.0,0.0.0.255
+ ${entry2} Get Filter Entry 20 permit sgt=50 acl=10.0.0.0,0.254.0.0
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound-discarding ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 5-3
+ Delete Filter GROUP inbound-discarding
+ Wait Until Keyword Succeeds 4 1 Check One Group 5-3
Prefix List Filtering
- [Documentation] Test Prefix List filter behaviour during filter update
+ [Documentation] Test Prefix List filter behaviour during filter update
Setup Nodes
- ${peers} Add Peers 127.0.0.2 127.0.0.4
- Add PeerGroup GROUP ${peers}
- ${entry1} Get Filter Entry 10 permit pl=10.10.10.0/24
- ${entry2} Get Filter Entry 20 permit epl=10.0.0.0/8,le,16
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound-discarding ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 4-2
- Delete Filter GROUP inbound-discarding
- Wait Until Keyword Succeeds 4 1 Check One Group 4-2
+ ${peers} Add Peers 127.0.0.2 127.0.0.4
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit pl=10.10.10.0/24
+ ${entry2} Get Filter Entry 20 permit epl=10.0.0.0/8,le,16
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound-discarding ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-2
+ Delete Filter GROUP inbound-discarding
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-2
Prefix List Sgt Filtering
- [Documentation] Test Prefix List and SGT filter behaviour during filter update
+ [Documentation] Test Prefix List and SGT filter behaviour during filter update
Setup Nodes
- ${peers} Add Peers 127.0.0.3 127.0.0.5
- Add PeerGroup GROUP ${peers}
- ${entry1} Get Filter Entry 10 permit sgt=30 pl=10.10.10.0/24
- ${entry2} Get Filter Entry 20 permit pl=10.50.0.0/16
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound-discarding ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 5-3
- Delete Filter GROUP inbound-discarding
- Wait Until Keyword Succeeds 4 1 Check One Group 5-3
+ ${peers} Add Peers 127.0.0.3 127.0.0.5
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit sgt=30 pl=10.10.10.0/24
+ ${entry2} Get Filter Entry 20 permit pl=10.50.0.0/16
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound-discarding ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 5-3
+ Delete Filter GROUP inbound-discarding
+ Wait Until Keyword Succeeds 4 1 Check One Group 5-3
Access List Filtering Legacy
- [Documentation] Test ACL filter behaviour during filter update
+ [Documentation] Test ACL filter behaviour during filter update
Setup Nodes Legacy Par Two
- ${peers} Add Peers 127.0.0.2 127.0.0.4
- Add PeerGroup GROUP ${peers}
- ${entry1} Get Filter Entry 10 permit acl=10.10.10.0,0.0.0.255
- ${entry2} Get Filter Entry 20 permit acl=10.0.0.0,0.254.0.0
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound-discarding ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 4-2
- Delete Filter GROUP inbound-discarding
- Wait Until Keyword Succeeds 4 1 Check One Group 4-2
+ ${peers} Add Peers 127.0.0.2 127.0.0.4
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit acl=10.10.10.0,0.0.0.255
+ ${entry2} Get Filter Entry 20 permit acl=10.0.0.0,0.254.0.0
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound-discarding ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-2
+ Delete Filter GROUP inbound-discarding
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-2
Access List Sgt Filtering Legacy
- [Documentation] Test ACL and SGT filter behaviour during filter update
+ [Documentation] Test ACL and SGT filter behaviour during filter update
Setup Nodes Legacy Par One
- ${peers} Add Peers 127.0.0.3 127.0.0.5
- Add PeerGroup GROUP ${peers}
- ${entry1} Get Filter Entry 10 permit sgt=30 acl=10.10.10.0,0.0.0.255
- ${entry2} Get Filter Entry 20 permit sgt=50 acl=10.0.0.0,0.254.0.0
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound-discarding ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 5-3
- Delete Filter GROUP inbound-discarding
- Wait Until Keyword Succeeds 4 1 Check One Group 5-3
+ ${peers} Add Peers 127.0.0.3 127.0.0.5
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit sgt=30 acl=10.10.10.0,0.0.0.255
+ ${entry2} Get Filter Entry 20 permit sgt=50 acl=10.0.0.0,0.254.0.0
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound-discarding ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 5-3
+ Delete Filter GROUP inbound-discarding
+ Wait Until Keyword Succeeds 4 1 Check One Group 5-3
Prefix List Filtering Legacy
- [Documentation] Test Prefix List filter behaviour during filter update
+ [Documentation] Test Prefix List filter behaviour during filter update
Setup Nodes Legacy Par Two
- ${peers} Add Peers 127.0.0.2 127.0.0.4
- Add PeerGroup GROUP ${peers}
- ${entry1} Get Filter Entry 10 permit pl=10.10.10.0/24
- ${entry2} Get Filter Entry 20 permit epl=10.0.0.0/8,le,16
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound-discarding ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 4-2
- Delete Filter GROUP inbound-discarding
- Wait Until Keyword Succeeds 4 1 Check One Group 4-2
+ ${peers} Add Peers 127.0.0.2 127.0.0.4
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit pl=10.10.10.0/24
+ ${entry2} Get Filter Entry 20 permit epl=10.0.0.0/8,le,16
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound-discarding ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-2
+ Delete Filter GROUP inbound-discarding
+ Wait Until Keyword Succeeds 4 1 Check One Group 4-2
Prefix List Sgt Filtering Legacy
- [Documentation] Test Prefix List and SGT filter behaviour during filter update
+ [Documentation] Test Prefix List and SGT filter behaviour during filter update
Setup Nodes Legacy Par One
- ${peers} Add Peers 127.0.0.3 127.0.0.5
- Add PeerGroup GROUP ${peers}
- ${entry1} Get Filter Entry 10 permit sgt=30 pl=10.10.10.0/24
- ${entry2} Get Filter Entry 20 permit pl=10.50.0.0/16
- ${entries} Combine Strings ${entry1} ${entry2}
- Add Filter GROUP inbound-discarding ${entries}
- Wait Until Keyword Succeeds 4 1 Check One Group 5-3
- Delete Filter GROUP inbound-discarding
- Wait Until Keyword Succeeds 4 1 Check One Group 5-3
+ ${peers} Add Peers 127.0.0.3 127.0.0.5
+ Add PeerGroup GROUP ${peers}
+ ${entry1} Get Filter Entry 10 permit sgt=30 pl=10.10.10.0/24
+ ${entry2} Get Filter Entry 20 permit pl=10.50.0.0/16
+ ${entries} Combine Strings ${entry1} ${entry2}
+ Add Filter GROUP inbound-discarding ${entries}
+ Wait Until Keyword Succeeds 4 1 Check One Group 5-3
+ Delete Filter GROUP inbound-discarding
+ Wait Until Keyword Succeeds 4 1 Check One Group 5-3
*** Keywords ***
Setup Nodes
- [Arguments] ${version}=version4 ${password}=none
+ [Arguments] ${version}=version4 ${password}=none
: FOR ${node} IN RANGE 2 5
- \ Add Connection ${version} both 127.0.0.1 64999 127.0.0.${node} ${password}
- \ Add Connection ${version} both 127.0.0.${node} 64999 127.0.0.1 ${password}
- \ Wait Until Keyword Succeeds 15 4 Verify Connection ${version} both 127.0.0.${node}
- \ Add Binding ${node}0 10.10.10.${node}0/32 127.0.0.${node}
- \ Add Binding ${node}0 10.10.${node}0.0/24 127.0.0.${node}
- \ Add Binding ${node}0 10.${node}0.0.0/16 127.0.0.${node}
- \ Add Binding ${node}0 ${node}0.0.0.0/8 127.0.0.${node}
+ \ Add Connection ${version} both 127.0.0.1 64999 127.0.0.${node}
+ \ ... ${password}
+ \ Add Connection ${version} both 127.0.0.${node} 64999 127.0.0.1
+ \ ... ${password}
+ \ Wait Until Keyword Succeeds 15 4 Verify Connection ${version} both
+ \ ... 127.0.0.${node}
+ \ Add Binding ${node}0 10.10.10.${node}0/32 127.0.0.${node}
+ \ Add Binding ${node}0 10.10.${node}0.0/24 127.0.0.${node}
+ \ Add Binding ${node}0 10.${node}0.0.0/16 127.0.0.${node}
+ \ Add Binding ${node}0 ${node}0.0.0.0/8 127.0.0.${node}
Add Connection ${version} both 127.0.0.5 64999 127.0.0.3 ${password}
Add Connection ${version} both 127.0.0.3 64999 127.0.0.5 ${password}
Add Binding 50 10.10.10.50/32 127.0.0.5
- Add Binding 50 10.10.50.0/24 127.0.0.5
- Add Binding 50 10.50.0.0/16 127.0.0.5
- Add Binding 50 50.0.0.0/8 127.0.0.5
+ Add Binding 50 10.10.50.0/24 127.0.0.5
+ Add Binding 50 10.50.0.0/16 127.0.0.5
+ Add Binding 50 50.0.0.0/8 127.0.0.5
Add Binding 10 10.10.10.10/32 127.0.0.1
- Add Binding 10 10.10.10.0/24 127.0.0.1
- Add Binding 10 10.10.0.0/16 127.0.0.1
- Add Binding 10 10.0.0.0/8 127.0.0.1
+ Add Binding 10 10.10.10.0/24 127.0.0.1
+ Add Binding 10 10.10.0.0/16 127.0.0.1
+ Add Binding 10 10.0.0.0/8 127.0.0.1
Setup Nodes Legacy Par One
- [Arguments] ${version}=version3 ${password}=none
+ [Arguments] ${version}=version3 ${password}=none
: FOR ${node} IN RANGE 1 6
- \ Add Binding ${node}0 10.10.10.${node}0/32 127.0.0.${node}
- \ Add Binding ${node}0 10.10.${node}0.0/24 127.0.0.${node}
- \ Add Binding ${node}0 10.${node}0.0.0/16 127.0.0.${node}
- \ Add Binding ${node}0 ${node}0.0.0.0/8 127.0.0.${node}
+ \ Add Binding ${node}0 10.10.10.${node}0/32 127.0.0.${node}
+ \ Add Binding ${node}0 10.10.${node}0.0/24 127.0.0.${node}
+ \ Add Binding ${node}0 10.${node}0.0.0/16 127.0.0.${node}
+ \ Add Binding ${node}0 ${node}0.0.0.0/8 127.0.0.${node}
Add Connection ${version} listener 127.0.0.1 64999 127.0.0.2 ${password}
Add Connection ${version} speaker 127.0.0.2 64999 127.0.0.1 ${password}
Wait Until Keyword Succeeds 15 4 Verify Connection ${version} speaker 127.0.0.2
Wait Until Keyword Succeeds 15 4 Verify Connection ${version} listener 127.0.0.3
Add Connection ${version} listener 127.0.0.5 64999 127.0.0.3 ${password}
Add Connection ${version} speaker 127.0.0.3 64999 127.0.0.5 ${password}
- Wait Until Keyword Succeeds 15 4 Verify Connection ${version} listener 127.0.0.5 64999 127.0.0.3
+ Wait Until Keyword Succeeds 15 4 Verify Connection ${version} listener 127.0.0.5
+ ... 64999 127.0.0.3
Setup Nodes Legacy Par Two
- [Arguments] ${version}=version3 ${password}=none
+ [Arguments] ${version}=version3 ${password}=none
: FOR ${node} IN RANGE 1 6
- \ Add Binding ${node}0 10.10.10.${node}0/32 127.0.0.${node}
- \ Add Binding ${node}0 10.10.${node}0.0/24 127.0.0.${node}
- \ Add Binding ${node}0 10.${node}0.0.0/16 127.0.0.${node}
- \ Add Binding ${node}0 ${node}0.0.0.0/8 127.0.0.${node}
+ \ Add Binding ${node}0 10.10.10.${node}0/32 127.0.0.${node}
+ \ Add Binding ${node}0 10.10.${node}0.0/24 127.0.0.${node}
+ \ Add Binding ${node}0 10.${node}0.0.0/16 127.0.0.${node}
+ \ Add Binding ${node}0 ${node}0.0.0.0/8 127.0.0.${node}
Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.2 ${password}
Add Connection ${version} listener 127.0.0.2 64999 127.0.0.1 ${password}
Wait Until Keyword Succeeds 15 4 Verify Connection ${version} listener 127.0.0.2
Wait Until Keyword Succeeds 15 4 Verify Connection ${version} speaker 127.0.0.3
Add Connection ${version} speaker 127.0.0.5 64999 127.0.0.3 ${password}
Add Connection ${version} listener 127.0.0.3 64999 127.0.0.5 ${password}
- Wait Until Keyword Succeeds 15 4 Verify Connection ${version} speaker 127.0.0.5 64999 127.0.0.3
+ Wait Until Keyword Succeeds 15 4 Verify Connection ${version} speaker 127.0.0.5
+ ... 64999 127.0.0.3
Check One Group 4-2
- [Documentation] Check if only bindings matching filter from node 4 and 2 are propagated to SXP-DB of other nodes
- ... Database should contains only Bindings regarding to these matches:
- ... permit ACL 10.10.10.0 0.0.0.255
- ... permit ACL 10.0.0.0 0.254.0.0
- ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
+ [Documentation] Check if only bindings matching filter from node 4 and 2 are propagated to SXP-DB of other nodes
+ ... Database should contains only Bindings regarding to these matches:
+ ... permit ACL 10.10.10.0 0.0.0.255
+ ... permit ACL 10.0.0.0 0.254.0.0
+ ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
${resp} Get Bindings Master Database 127.0.0.5
- Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
- Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
- Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
- Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
- Should Contain Binding ${resp} 20 10.10.10.20/32 sxp
- Should Not Contain Binding ${resp} 20 10.10.20.0/24 sxp
- Should Contain Binding ${resp} 20 10.20.0.0/16 sxp
- Should Not Contain Binding ${resp} 20 20.0.0.0/8 sxp
- Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
- Should Contain Binding ${resp} 30 10.10.30.0/24 sxp
- Should Contain Binding ${resp} 30 10.30.0.0/16 sxp
- Should Contain Binding ${resp} 30 30.0.0.0/8 sxp
- Should Contain Binding ${resp} 40 10.10.10.40/32 sxp
- Should Not Contain Binding ${resp} 40 10.10.40.0/24 sxp
- Should Contain Binding ${resp} 40 10.40.0.0/16 sxp
- Should Not Contain Binding ${resp} 40 40.0.0.0/8 sxp
+ Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
+ Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
+ Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
+ Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
+ Should Contain Binding ${resp} 20 10.10.10.20/32 sxp
+ Should Not Contain Binding ${resp} 20 10.10.20.0/24 sxp
+ Should Contain Binding ${resp} 20 10.20.0.0/16 sxp
+ Should Not Contain Binding ${resp} 20 20.0.0.0/8 sxp
+ Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
+ Should Contain Binding ${resp} 30 10.10.30.0/24 sxp
+ Should Contain Binding ${resp} 30 10.30.0.0/16 sxp
+ Should Contain Binding ${resp} 30 30.0.0.0/8 sxp
+ Should Contain Binding ${resp} 40 10.10.10.40/32 sxp
+ Should Not Contain Binding ${resp} 40 10.10.40.0/24 sxp
+ Should Contain Binding ${resp} 40 10.40.0.0/16 sxp
+ Should Not Contain Binding ${resp} 40 40.0.0.0/8 sxp
Check One Group 5-3
- [Documentation] Check if only bindings matching filter from node 5 and 3 are propagated to SXP-DB of other nodes
- ... Database should contains only Bindings regarding to these matches:
- ... permit SGT 30 ACL 10.10.10.0 0.0.0.255
- ... permit SGT 50 ACL 10.0.0.0 0.254.0.0
- ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
+ [Documentation] Check if only bindings matching filter from node 5 and 3 are propagated to SXP-DB of other nodes
+ ... Database should contains only Bindings regarding to these matches:
+ ... permit SGT 30 ACL 10.10.10.0 0.0.0.255
+ ... permit SGT 50 ACL 10.0.0.0 0.254.0.0
+ ... Info regarding filtering https://wiki.opendaylight.org/view/SXP:Beryllium:Developer_Guide
${resp} Get Bindings Master Database 127.0.0.4
- Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
- Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
- Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
- Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
- Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
- Should Not Contain Binding ${resp} 30 10.10.30.0/24 sxp
- Should Not Contain Binding ${resp} 30 10.30.0.0/16 sxp
- Should Not Contain Binding ${resp} 30 30.0.0.0/8 sxp
- Should Not Contain Binding ${resp} 50 10.10.10.50/32 sxp
- Should Not Contain Binding ${resp} 50 10.10.50.0/24 sxp
- Should Contain Binding ${resp} 50 10.50.0.0/16 sxp
- Should Not Contain Binding ${resp} 50 50.0.0.0/8 sxp
+ Should Contain Binding ${resp} 10 10.10.10.10/32 sxp
+ Should Contain Binding ${resp} 10 10.10.10.0/24 sxp
+ Should Contain Binding ${resp} 10 10.10.0.0/16 sxp
+ Should Contain Binding ${resp} 10 10.0.0.0/8 sxp
+ Should Contain Binding ${resp} 30 10.10.10.30/32 sxp
+ Should Not Contain Binding ${resp} 30 10.10.30.0/24 sxp
+ Should Not Contain Binding ${resp} 30 10.30.0.0/16 sxp
+ Should Not Contain Binding ${resp} 30 30.0.0.0/8 sxp
+ Should Not Contain Binding ${resp} 50 10.10.10.50/32 sxp
+ Should Not Contain Binding ${resp} 50 10.10.50.0/24 sxp
+ Should Contain Binding ${resp} 50 10.50.0.0/16 sxp
+ Should Not Contain Binding ${resp} 50 50.0.0.0/8 sxp
Clean Nodes
Clean Connections 127.0.0.1
Clean Connections 127.0.0.4
Clean Connections 127.0.0.5
Clean Peer Groups 127.0.0.1
- Clean Bindings 127.0.0.1
- Clean Bindings 127.0.0.2
- Clean Bindings 127.0.0.3
- Clean Bindings 127.0.0.4
- Clean Bindings 127.0.0.5
+ Clean Bindings 127.0.0.1
+ Clean Bindings 127.0.0.2
+ Clean Bindings 127.0.0.3
+ Clean Bindings 127.0.0.4
+ Clean Bindings 127.0.0.5
Should Contain ${Line1} PacketCount
Verify the Metrics Attributes on Hbase Client PacketCount Node:openflow:1,Table:0 FLOWSTATS
-
Verification of FlowMetrics-BytesCount on HBase Client
[Documentation] Verify the FlowStats-ByteCount on both Karaf Console and Hbase Client
${tsdr_cmd}= Concatenate the String ${TSDR_FLOWSTATS} | grep ByteCount | head
${Line1}= Get Line ${output} 0
Should Contain ${Line1} ByteCount
Verify the Metrics Attributes on Hbase Client ByteCount Node:openflow:1,Table:0 FLOWSTATS
-
[Documentation] Verify the FlowTableMetrics has been updated on HBase Datastore
Verify the Metrics Attributes on Hbase Client PacketMatch Node:openflow:1,Table:0 FLOWTABLESTATS
-
Verification of FlowTableMetrics-PacketLookup on HBase Client
[Documentation] Verify the FlowTableMetrics has been updated on HBase Datastore
Verify the Metrics Attributes on Hbase Client PacketLookup Node:openflow:1,Table:0 FLOWTABLESTATS
-
[Documentation] Verify the QueueMetrics has been updated on HBase Datastore
Verify the Metrics Attributes on Hbase Client TransmissionErrors Node:openflow:2 QUEUESTATS
-
*** Keyword ***
Configuration of Queue on Switch
[Documentation] Queue configuration on openvswitch