Invoke_Yang1.1_Action_Via_Xml_Post
[Documentation] Send a sample test data label into the device and check that the request went OK.
- ${template_as_string} = BuiltIn.Set_Variable {'DEVICE_NAME': '${DEVICE_NAME}'}
+ ${template_as_string}= BuiltIn.Create_Dictionary DEVICE_NAME=${device_name}
TemplatedRequests.Post_As_Xml_Templated ${DIRECTORY_WITH_TEMPLATE_FOLDERS}${/}dataorigaction ${template_as_string}
Invoke_Yang1.1_Action_Via_Json_Post
[Documentation] Send a sample test data label into the device and check that the request went OK.
- ${template_as_string} = BuiltIn.Set_Variable {'DEVICE_NAME': '${DEVICE_NAME}'}
+ ${template_as_string}= BuiltIn.Create_Dictionary DEVICE_NAME=${device_name}
TemplatedRequests.Post_As_Json_RFC8040_Templated ${DIRECTORY_WITH_TEMPLATE_FOLDERS}${/}dataorigaction ${template_as_string}
Invoke_Yang1.1_Augmentation_Via_Xml_Post
[Documentation] Send a sample test data label into the device and check that the request went OK.
- ${template_as_string} = BuiltIn.Set_Variable {'DEVICE_NAME': '${DEVICE_NAME}'}
+ ${template_as_string}= BuiltIn.Create_Dictionary DEVICE_NAME=${device_name}
TemplatedRequests.Post_As_Xml_Templated ${DIRECTORY_WITH_TEMPLATE_FOLDERS}${/}augment ${template_as_string}
Invoke_Yang1.1_Augmentation_Via_Json_Post
[Documentation] Send a sample test data label into the device and check that the request went OK.
- ${template_as_string} = BuiltIn.Set_Variable {'DEVICE_NAME': '${DEVICE_NAME}'}
+ ${template_as_string}= BuiltIn.Create_Dictionary DEVICE_NAME=${device_name}
TemplatedRequests.Post_As_Json_RFC8040_Templated ${DIRECTORY_WITH_TEMPLATE_FOLDERS}${/}augment ${template_as_string}
Deconfigure_Device_From_Netconf
Setup_Everything
[Documentation] Initialize SetupUtils. Setup everything needed for the test cases.
SetupUtils.Setup_Utils_For_Setup_And_Teardown
- RequestsLibrary.Create_Session operational http://${ODL_SYSTEM_IP}:${RESTCONFPORT}${OPERATIONAL_API} auth=${AUTH}
+ RequestsLibrary.Create_Session operational http://${ODL_SYSTEM_IP}:${RESTCONFPORT}${REST_API} auth=${AUTH}
NetconfKeywords.Setup_Netconf_Keywords
${DEVICE_TYPE_RPC} = BuiltIn.Set_Variable_If """${USE_NETCONF_CONNECTOR}""" == """True""" default ${DEVICE_TYPE_RPC}
${DEVICE_TYPE} = CompareStream.Set_Variable_If_At_Most_Nitrogen ${DEVICE_TYPE_RPC} ${DEVICE_TYPE_RPC_CREATE}
Get_Config_Data
[Documentation] Get and return the config data from the device.
- ${url} = Builtin.Set_Variable ${CONFIG_API}/network-topology:network-topology/topology/topology-netconf/node/${DEVICE_NAME}/yang-ext:mount
+ ${url} = Builtin.Set_Variable ${REST_API}/network-topology:network-topology/topology=topology-netconf/node=${DEVICE_NAME}/yang-ext:mount?content=config
${data} = TemplatedRequests.Get_As_Xml_From_Uri ${url}
[Return] ${data}