def set_mgmt_user(self, user):
self.mgmt_user = user
+ def set_mgmt_prompt(self, prompt):
+ self.mgmt_prompt = prompt
+
def set_ssh_key(self, key):
self.ssh_key = key
*** Variables ***
${SWITCH_CLASS} Ovs
${SWITCH_IP} ${MININET}
+${SWITCH_PROMPT} ${LINUX_PROMPT}
${CONTROLLER} null
${REST_CONTEXT} /restconf/operational/opendaylight-inventory:nodes
Set Suite Variable ${test_switch}
Call Method ${test_switch} set_mgmt_ip ${SWITCH_IP}
Call Method ${test_switch} set_controller_ip ${CONTROLLER}
+ Call Method ${test_switch} set_mgmt_prompt ${SWITCH_PROMPT}
Log MAKE: ${test_switch.make}\n MODEL: ${test_switch.model}\n IP: ${test_switch.mgmt_ip}\n PROMPT: ${test_switch.mgmt_prompt}\n CONTROLLER_IP: ${test_switch.of_controller_ip}\n MGMT_PROTOCOL: ${test_switch.mgmt_protocol}
Ping ${test_switch.mgmt_ip}
Initialize Switch ${test_switch}
*** Variables ***
${SWITCH_CLASS} Ovs
${SWITCH_IP} ${MININET}
+${SWITCH_PROMPT} ${LINUX_PROMPT}
${CONTROLLER} null
${REST_CON} /restconf/config/opendaylight-inventory:nodes
${ipv4_src} 11.3.0.0/16
Set Suite Variable ${test_switch}
Call Method ${test_switch} set_mgmt_ip ${SWITCH_IP}
Call Method ${test_switch} set_controller_ip ${CONTROLLER}
+ Call Method ${test_switch} set_mgmt_prompt ${SWITCH_PROMPT}
Run Command On Remote System ${CONTROLLER} ps -elf | grep java
Log MAKE: ${test_switch.make}\n MODEL: ${test_switch.model}\n IP: ${test_switch.mgmt_ip}\n PROMPT: ${test_switch.mgmt_prompt}\n CONTROLLER_IP: ${test_switch.of_controller_ip}\n MGMT_PROTOCOL: ${test_switch.mgmt_protocol}
Ping ${test_switch.mgmt_ip}