Tidied new and updated test suites 16/33616/1
authorJozef Behran <jbehran@cisco.com>
Wed, 27 Jan 2016 11:25:26 +0000 (12:25 +0100)
committerJozef Behran <jbehran@cisco.com>
Wed, 27 Jan 2016 11:25:26 +0000 (12:25 +0100)
Change-Id: I11c98cfa0cec00a8e402bd1439a64fdcf544ec25
Signed-off-by: Jozef Behran <jbehran@cisco.com>
csit/libraries/LISPFlowMapping.robot
csit/libraries/SxpLib.robot
csit/suites/lacp/Lacp_Feature_OF13/010__lacp_inventory.robot
csit/suites/lacp/Lacp_Feature_OF13/020__lacp_lag_resiliency.robot
csit/suites/ovsdb/Southbound_Domain/Bug_4794.robot
csit/suites/sxp/filtering/010_Inbound_Filtering.robot
csit/suites/sxp/filtering/020_Outbound_Filtering.robot
csit/suites/sxp/filtering/030_Inbound_Filtering_Discarding.robot
csit/suites/tsdr/HBase/020_FlowMetrics.robot
csit/suites/tsdr/HBase/030_FlowTableMetrics.robot
csit/suites/tsdr/HBase/040_QueueMetrics.robot

index 79571cc7d713a78778b5f9bc7885ed3c7637ce0a..568527508a3e909f0c57c4cca169a1509d69bdbe 100644 (file)
@@ -48,7 +48,7 @@ Get Elp Hop
     ${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
index 193613ab133f4882ad0b332e7f8955937d3748a6..e4d755bd8ab272cd9fc4a801a4ca3a473e3e68b4 100644 (file)
@@ -19,7 +19,7 @@ Add Connection
     ${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
@@ -56,7 +56,7 @@ Add Binding
     [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
@@ -103,17 +103,17 @@ Delete Binding
     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
 
@@ -126,24 +126,24 @@ Get Peer Groups
     [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
 
@@ -190,20 +190,22 @@ Should Not Contain Connection
     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
index 0bd800fcd6711153b53cdc87d82b893ca40ca5ed..7b7ba5a98ac9071b826318d2bf4f24c03ae39700 100644 (file)
@@ -21,19 +21,19 @@ ${agg2-connector-id2}    4
 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
index 2dc4ac7c8276dbb4dd8c79bcc4785de7d8ad5ae0..beec69b8f54d6434481535d1043b870b7442f3c1 100644 (file)
@@ -99,9 +99,9 @@ Set Host interface state
     [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}
index ca27dfa9d7f351b7d3cbd12893189ee4feb52e6b..af2eaf5fdd4b5062ae11a0df0ab5a1d7a85dbda7 100644 (file)
@@ -51,7 +51,7 @@ OVSDB Connection Manager Suite Setup
     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}
@@ -61,7 +61,7 @@ OVSDB Connection Manager Suite Teardown
 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}
@@ -70,4 +70,4 @@ Create 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
index 5a3ed584504672a77d3cb2e403d8e3eb4cb2caf9..692b71b4c802cdea72a125a70f8ce768c5850307 100644 (file)
@@ -17,215 +17,206 @@ Resource          ../../../variables/Variables.py
 
 *** 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
@@ -234,8 +225,8 @@ Clean Nodes
     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
index dc89a8f9904ebda00ba1ac0711f42a9abccbe468..1677d42a7b76c7d9cb7f422c82c8b7b7afd6d8fd 100644 (file)
@@ -25,13 +25,13 @@ Access List Filtering
     ${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
@@ -42,11 +42,11 @@ Access List Sgt Filtering
     ${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
@@ -57,13 +57,13 @@ Prefix List Filtering
     ${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
@@ -74,11 +74,11 @@ Prefix List Sgt Filtering
     ${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
@@ -102,12 +102,12 @@ 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
@@ -137,11 +137,11 @@ Check One Group 4-5
     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
@@ -171,12 +171,12 @@ Check Two Group 4-5
     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}
@@ -207,10 +207,10 @@ Check One Group 2-5
     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}
index 37d37b1f811cacc521eec68049d067c1e66ee5cc..e6bfe9a78e6042125f44cd8d61ae3b353abb9462 100644 (file)
@@ -16,138 +16,141 @@ Resource          ../../../variables/Variables.py
 
 *** 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
@@ -159,15 +162,16 @@ Setup Nodes Legacy Par One
     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
@@ -179,51 +183,52 @@ Setup Nodes Legacy Par Two
     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
@@ -232,8 +237,8 @@ Clean Nodes
     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
index 0bbb77dd768656f4311c69aa5ef471ae7e36a670..1213ab14fdadc55415205f10e7b6d3691078ea2a 100644 (file)
@@ -30,7 +30,6 @@ Verification of FlowMetrics-PacketCount on HBase Client
     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
@@ -38,4 +37,3 @@ Verification of FlowMetrics-BytesCount on HBase Client
     ${Line1}=    Get Line    ${output}    0
     Should Contain    ${Line1}    ByteCount
     Verify the Metrics Attributes on Hbase Client    ByteCount    Node:openflow:1,Table:0    FLOWSTATS
-
index 6d17b712905a1f197b8a408c15ddabd53be492b9..760f258224d357b3cd950f8fba6cc7fbb2c10665 100644 (file)
@@ -34,8 +34,6 @@ Verification of FlowTableMetrics-PacketMatch on HBase Client
     [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
-
index fe229776856bd6944f5d7eb940442b6e374dbd15..db44694fed979433f8016e5d4e46d3ae53d438c1 100644 (file)
@@ -40,7 +40,6 @@ Verification of QueueMetrics-TransmissionErrors on HBase Client
     [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