Fix NIC basic test.
[integration/test.git] / csit / suites / genius / Interface_manager.robot
index 861124f092643b3fe6c480ac0d46826c463354f1..9a07e9be25d8ebf0d9902658081facb396e8c36c 100644 (file)
@@ -24,14 +24,11 @@ ${trunk_member_json}    l2vlan_member.json
 *** Test Cases ***
 Create l2vlan transparent interface
     [Documentation]    This testcase creates a l2vlan transparent interface between 2 dpns.
-    Log    >>>> Creating L2vlan interface <<<<<
     Create Interface    ${trunk_json}    transparent
-    Log    >>>> Get interface config <<<<<
     @{l2vlan}    create list    l2vlan-trunk    l2vlan    transparent    l2vlan    true
     Check For Elements At URI    ${CONFIG_API}/ietf-interfaces:interfaces/    ${l2vlan}
-    Log    >>>>> Get interface operational state<<<<
     Wait Until Keyword Succeeds    50    5    get operational interface    ${interface_name}
-    ${ovs-check}    Wait Until Keyword Succeeds    40    10    table0 entry    ${conn_id_1}    ${bridgename}
+    Wait Until Keyword Succeeds    40    10    table0 entry    ${conn_id_1}    ${bridgename}
 
 Delete l2vlan transparent interface
     [Documentation]    This testcase deletes the l2vlan transparent interface created between 2 dpns.
@@ -41,35 +38,27 @@ Delete l2vlan transparent interface
 
 Create l2vlan trunk interface
     [Documentation]    This testcase creates a l2vlan trunk interface between 2 DPNs.
-    Log    >>>> Getting file for posting json <<<<<<<
     Create Interface    ${trunk_json}    trunk
-    Log    >>>> Get interface config <<<<<
     @{l2vlan}    create list    l2vlan-trunk    l2vlan    trunk    tap8ed70586-6c    true
     Check For Elements At URI    ${CONFIG_API}/ietf-interfaces:interfaces/    ${l2vlan}
-    Log    >>>>> Get interface operational state<<<<
     Wait Until Keyword Succeeds    50    5    get operational interface    ${interface_name}
     Wait Until Keyword Succeeds    30    10    table0 entry    ${conn_id_1}    ${bridgename}
 
 Create l2vlan Trunk member interface
     [Documentation]    This testcase creates a l2vlan Trunk member interface for the l2vlan trunk interface created in 1st testcase.
-    Log    >>>> Creating L2vlan member interface <<<<<
-    Log    >>>> Getting file for posting json <<<<<<<
     ${body}    OperatingSystem.Get File    ${genius_config_dir}/l2vlan_member.json
     ${post_resp}    RequestsLibrary.Post Request    session    ${CONFIG_API}/ietf-interfaces:interfaces/    data=${body}
     Log    ${post_resp.content}
     Log    ${post_resp.status_code}
     Should Be Equal As Strings    ${post_resp.status_code}    204
-    Log    >>>> Get interface config <<<<<
     @{l2vlan}    create list    l2vlan-trunk1    l2vlan    trunk-member    1000    l2vlan-trunk
     ...    true
     Check For Elements At URI    ${CONFIG_API}/ietf-interfaces:interfaces/    ${l2vlan}
-    Log    >>>>> Get interface operational state<<<<
     Wait Until Keyword Succeeds    10    5    get operational interface    ${l2vlan[0]}
     Wait Until Keyword Succeeds    40    10    ovs check for member interface creation    ${conn_id_1}    ${bridgename}
 
 Bind service on Interface
     [Documentation]    This testcase binds service to the interface created .
-    Log    >>>> Getting file for posting json <<<<<<<
     ${body}    OperatingSystem.Get File    ${genius_config_dir}/bind_service.json
     ${body}    replace string    ${body}    service1    VPN
     ${body}    replace string    ${body}    service2    elan
@@ -79,35 +68,30 @@ Bind service on Interface
     log    ${post_resp.content}
     log    ${post_resp.status_code}
     Should Be Equal As Strings    ${post_resp.status_code}    204
-    Log    >>>>> Verifying Binded interface <<<<<
     @{bind_array}    create list    2    3    VPN    elan    50
     ...    21
     Check For Elements At URI    ${CONFIG_API}/interface-service-bindings:service-bindings/services-info/${interface_name}/${service_mode}/    ${bind_array}
-    Log    >>>>> OVS check for table enteries <<<<
-    ${command}    set variable    sudo ovs-ofctl -O OpenFlow13 dump-flows ${bridgename}
+    ${command}    Set Variable    sudo ovs-ofctl -O OpenFlow13 dump-flows ${bridgename}
     Wait Until Keyword Succeeds    40    10    table entry    ${command}
 
 unbind service on interface
     [Documentation]    This testcase Unbinds the service which is binded by the 3rd testcase.
-    Log    >>>>>>Unbinding the service on interface <<<<
-    ${service-priority-1}    set variable    3
-    ${service-priority-2}    set variable    4
+    ${service-priority-1}    Set Variable    3
+    ${service-priority-2}    Set Variable    4
     ${service_mode}    Set Variable    interface-service-bindings:service-mode-ingress
     Remove All Elements At URI And Verify    ${CONFIG_API}/interface-service-bindings:service-bindings/services-info/${interface_name}/${service_mode}/bound-services/${service-priority-1}/
-    log    >>>> Ovs check for table 21 absence <<<
-    ${table-id}    set variable    21
+    ${table-id}    Set Variable    21
     Wait Until Keyword Succeeds    10    2    no goto_table entry    ${table-id}
     Remove All Elements At URI And Verify    ${CONFIG_API}/interface-service-bindings:service-bindings/services-info/${interface_name}/${service_mode}/bound-services/${service-priority-2}/
     No Content From URI    session    ${CONFIG_API}/interface-service-bindings:service-bindings/services-info/${interface_name}/${service_mode}/bound-services/${service-priority-2}/
-    log    >>>> Ovs check for table 50 absence <<<
-    ${table-id}    set variable    50
+    ${table-id}    Set Variable    50
     Wait Until Keyword Succeeds    10    2    no goto_table entry    ${table-id}
 
 Delete l2vlan trunk interface
     [Documentation]    Deletion of l2vlan trunk interface is done.
     Remove All Elements At URI And Verify    ${CONFIG_API}/ietf-interfaces:interfaces/
     No Content From URI    session    ${OPERATIONAL_API}/ietf-interfaces:interfaces/
-    ${resp}    Wait Until Keyword Succeeds    30    10    no table0 entry
+    Wait Until Keyword Succeeds    30    10    no table0 entry
 
 *** Keywords ***
 get operational interface
@@ -134,7 +118,7 @@ table entry
 no table0 entry
     [Documentation]    After Deleting trunk interface, checking for absence of table 0 in the flow dumps
     switch connection    ${conn_id_1}
-    ${bridgename}    set variable    BR1
+    ${bridgename}    Set Variable    BR1
     ${ovs-check}    execute command    sudo ovs-ofctl -O OpenFlow13 dump-flows ${bridgename}
     log    ${ovs-check}
     should not contain    ${ovs-check}    table=0