*** Variables ***
${directory_with_template_folders} ${CURDIR}/../../../variables/netconf/CRUD
${device_name} netconf-test-device
+${device_type} default
*** Test Cases ***
Start_Testtool
Configure_Device_On_Netconf
[Documentation] Make request to configure a testtool device on Netconf connector.
[Tags] critical
- NetconfKeywords.Configure_Device_In_Netconf ${device_name}
+ NetconfKeywords.Configure_Device_In_Netconf ${device_name} device_type=${device_type}
Check_ODL_Has_Netconf_Connector_For_Device
[Documentation] Get the list of configured devices and search for our device there. Fail if not found.
[Documentation] Configure the device again.
... This is the second step of the device configuration.
[Tags] critical
- NetconfKeywords.Configure_Device_In_Netconf ${device_name}
+ NetconfKeywords.Configure_Device_In_Netconf ${device_name} device_type=${device_type}
Wait_For_Device_To_Reconnect
[Documentation] Wait until the device becomes available through Netconf.
*** Variables ***
${DIRECTORY_WITH_TEMPLATE_FOLDERS} ${CURDIR}/../../../variables/netconf/RestPerfClient
${REQUEST_COUNT} 65536
+${device_type} default
*** Test Cases ***
Create_Test_Data_For_Direct_Access
Configure_ODL_As_A_Device_On_Netconf
[Documentation] Configure ODL MDSAL Northbound as a Netconf device on a Netconf connector.
- NetconfKeywords.Configure_Device_In_Netconf odl-mdsal-northbound-via-netconf-connector device_address=${ODL_SYSTEM_IP} device_port=${ODL_NETCONF_MDSAL_PORT} device_user=${ODL_NETCONF_USER} device_password=${ODL_NETCONF_PASSWORD}
+ NetconfKeywords.Configure_Device_In_Netconf odl-mdsal-northbound-via-netconf-connector device_type=${device_type} device_address=${ODL_SYSTEM_IP} device_port=${ODL_NETCONF_MDSAL_PORT} device_user=${ODL_NETCONF_USER} device_password=${ODL_NETCONF_PASSWORD}
NetconfKeywords.Wait_Device_Connected odl-mdsal-northbound-via-netconf-connector
Run_RestPerfClient_Through_Netconf_Connector
${DEVICE_NAME} ${FIRST_TESTTOOL_PORT}-sim-device
${REQUEST_COUNT} 65536
${directory_with_crud_templates} ${CURDIR}/../../../variables/netconf/CRUD
+${device_type} default
*** Test Cases ***
Start_Testtool
Configure_Device_On_Netconf
[Documentation] Configure the testtool device on Netconf connector.
- NetconfKeywords.Configure_Device_In_Netconf ${DEVICE_NAME}
+ NetconfKeywords.Configure_Device_In_Netconf ${DEVICE_NAME} device_type=${device_type}
Wait_For_Device_To_Become_Connected
[Documentation] Wait until the device becomes available through Netconf.
${WORKER_COUNT} 10
${TIMEOUT_FACTOR} 10
${device_name_base} netconf-scaling-device
+${device_type} default
${base_port} 17830
*** Test Cases ***
[Arguments] ${current_name}
[Documentation] Operation for configuring the device.
KarafKeywords.Log_Message_To_Controller_Karaf Configuring device ${current_name} to Netconf
- NetconfKeywords.Configure_Device_In_Netconf ${current_name} device_port=${current_port}
+ NetconfKeywords.Configure_Device_In_Netconf ${current_name} device_type=${device_type} device_port=${current_port}
KarafKeywords.Log_Message_To_Controller_Karaf Device ${current_name} configured
Wait_Connected
*** Variables ***
${DEVICE_COUNT} 500
${TIMEOUT_FACTOR} 10
+${device_type} default
*** Test Cases ***
Start_Test_Tool
[Arguments] ${current_name}
[Documentation] Operation for configuring the device in the Netconf subsystem and connecting to it.
KarafKeywords.Log_Message_To_Controller_Karaf Connecting device ${current_name}
- NetconfKeywords.Configure_Device_In_Netconf ${current_name} device_port=${current_port}
+ NetconfKeywords.Configure_Device_In_Netconf ${current_name} device_type=${device_type} device_port=${current_port}
KarafKeywords.Log_Message_To_Controller_Karaf Waiting for device ${current_name} to connect
NetconfKeywords.Wait_Device_Connected ${current_name} period=0.5s
KarafKeywords.Log_Message_To_Controller_Karaf Device ${current_name} connected