Set Suite Variable ${mininet_conn_id}
Utils.Flexible Mininet Login
SSHLibrary.Write java -cp /tmp/agent/simple-agent/target/classes/ org.opendaylight.ocpplugin.OcpAgent ${controller} 1033 ${vendorID} ${serialNumber}
- SSHLibrary.Read Until getParamResp
+ SSHLibrary.Read Until getParamResp
[Return] ${mininet_conn_id}
Stop Emulator And Exit
SSHLibrary.Execute Command sudo yum install -q -y http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm
SSHLibrary.Execute Command sudo yum install -q -y postgresql93-libs postgresql93 postgresql93-server postgresql93-contrib postgresql93-odbc-09.03.0400
SSHLibrary.Execute Command tar -C/ -jxvf ${WORKSPACE}/${BUNDLEFOLDER}/externalapps/*vtn-coordinator*-bin.tar.bz2
- Run Keyword If '${ODL_STREAM}' == 'boron' SSHLibrary.Execute Command sudo yum upgrade -q -y java-1.8.0-openjdk-devel
+ Run Keyword If '${ODL_STREAM}' == 'boron' SSHLibrary.Execute Command sudo yum upgrade -q -y java-1.8.0-openjdk-devel
SSHLibrary.Execute Command /usr/local/vtn/sbin/db_setup
SSHLibrary.Execute Command /usr/local/vtn/bin/vtn_start
SSHLibrary.Execute Command /usr/local/vtn/bin/unc_dmctl status
[Arguments] ${vtn_name} ${vbr_name} ${interface_name} ${id} ${node_id} ${port_id}
[Documentation] Create a portmap for a interface of a vbridge
${resp}= RequestsLibrary.Post Request session restconf/operations/vtn-port-map:set-port-map data={"input": { "tenant-name":${vtn_name}, "bridge-name":${vbr_name}, "interface-name": ${interface_name}, "vlan-id": ${id}, "node":"${node_id}", "port-name":"${port_id}"}}
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 200
Verify Flow Entries for Flowfilter
[Arguments] ${dumpflows} @{flowfilter_actions}
Create Vm Instances For net1_network
[Documentation] Create Vm instances using flavor and image names.
Create Vm Instances net1_network ${NET_1_VM_INSTANCES}
- [Teardown] Show Debugs ${NET_1_VM_INSTANCES}
+ [Teardown] Show Debugs ${NET_1_VM_INSTANCES}
Create Vm Instances For net2_network
[Documentation] Create Vm instances using flavor and image names.
Create Vm Instances net2_network ${NET_2_VM_INSTANCES}
- [Teardown] Show Debugs ${NET_2_VM_INSTANCES}
+ [Teardown] Show Debugs ${NET_2_VM_INSTANCES}
Verify Created Vm Instance In Dump Flow
[Documentation] Verify the existence of the created vm instance ips in the dump flow.
Delete Router Interfaces
[Documentation] Remove Interface to the subnets.
- : FOR ${interface} IN @{SUBNETS_NAME}
- \ Remove Interface router_1 ${interface}
+ : FOR ${interface} IN @{SUBNETS_NAME}
+ \ Remove Interface router_1 ${interface}
Delete Routers
[Documentation] Delete Router and Interface to the subnets.
Create Vm Instances For network_1
[Documentation] Create Four Vm instances using flavor and image names for a network.
Create Vm Instances network_1 ${NET_1_VM_INSTANCES}
- [Teardown] Show Debugs ${NET_1_VM_INSTANCES}
+ [Teardown] Show Debugs ${NET_1_VM_INSTANCES}
Create Vm Instances For network_2
[Documentation] Create Four Vm instances using flavor and image names for a network.
Create Vm Instances network_2 ${NET_2_VM_INSTANCES}
- [Teardown] Show Debugs ${NET_2_VM_INSTANCES}
+ [Teardown] Show Debugs ${NET_2_VM_INSTANCES}
List Networks With Namespaces
${output}= Write Commands Until Prompt sudo ip netns list
[Documentation] Logging to the vm instance1
${dst_ip_list}= Create List @{NET_1_VM_IPS}[1] @{DHCP_IPS}[0]
Log ${dst_ip_list}
- Test Operations From Vm Instance network_1 @{NET_1_VM_IPS}[0] ${dst_ip_list}
+ Test Operations From Vm Instance network_1 @{NET_1_VM_IPS}[0] ${dst_ip_list}
Connectivity Tests From Vm Instance2 In network_1
[Documentation] Logging to the vm instance2
${dst_ip_list}= Create List @{NET_1_VM_IPS}[0] @{DHCP_IPS}[0]
Log ${dst_ip_list}
- Test Operations From Vm Instance network_1 @{NET_1_VM_IPS}[1] ${dst_ip_list}
+ Test Operations From Vm Instance network_1 @{NET_1_VM_IPS}[1] ${dst_ip_list}
Connectivity Tests From Vm Instance1 In network_2
[Documentation] Logging to the vm instance1
${dst_ip_list}= Create List @{NET_2_VM_IPS}[1] @{DHCP_IPS}[1]
Log ${dst_ip_list}
- Test Operations From Vm Instance network_2 @{NET_2_VM_IPS}[0] ${dst_ip_list}
+ Test Operations From Vm Instance network_2 @{NET_2_VM_IPS}[0] ${dst_ip_list}
Connectivity Tests From Vm Instance2 In network_2
[Documentation] Logging to the vm instance2
${dst_ip_list}= Create List @{NET_2_VM_IPS}[0] @{DHCP_IPS}[1]
Log ${dst_ip_list}
- Test Operations From Vm Instance network_2 @{NET_2_VM_IPS}[1] ${dst_ip_list}
+ Test Operations From Vm Instance network_2 @{NET_2_VM_IPS}[1] ${dst_ip_list}
Delete Vm Instance
[Documentation] Delete Vm instances using instance names.
Variables ../../../variables/Variables.py
*** Variables ***
-${NODE_ID} /restconf/operational/opendaylight-inventory:nodes/node/ocp:
+${NODE_ID} /restconf/operational/opendaylight-inventory:nodes/node/ocp:
${REST_GET_PARAM} /restconf/operations/ocp-service:get-param-nb
+
*** Test Cases ***
Check if node exist
[Documentation] get inventory node
[Tags] get node
OcpAgentKeywords.Install Agent
${mininet_conn_id}= OcpAgentKeywords.Start Emulator Single
- ${resp} Get Request session ${NODE_ID}TST-100
+ ${resp} Get Request session ${NODE_ID}TST-100
Should Be Equal As Strings ${resp.status_code} 200
Get param from emulator
- [Documentation] OCPPLUGIN get param
+ [Documentation] OCPPLUGIN get param
[Tags] OCPPLUGIN get
${resp} Post Request session ${REST_GET_PARAM} data={"input":{"nodeId":"ocp:TST-100","obj":[{"id":"ALL","param":[{"name":"ALL"}]}]}}
Should Be Equal As Strings ${resp.status_code} 200
##down can catch this problem and log the results as zero. However, we need to know which
##file to log to, so setting it as a suite variable here.
Set Suite Variable ${output_filename}
- ${output}= Run Keyword If "${cbench_system}" == "localhost" Run Process ${cbench_executable} -c ${ODL_SYSTEM_IP} ${cbench_args}
+ ${output}= Run Keyword If "${cbench_system}" == "localhost" Run Process ${cbench_executable} -c ${ODL_SYSTEM_IP}
+ ... ${cbench_args}
... ELSE Run Command On Remote System ${cbench_system} ${cbench_executable} -c ${ODL_SYSTEM_IP} ${cbench_args} prompt_timeout=${test_timeout}
Log ${output}
Should Contain ${output} RESULT