Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/SSHKeywords.robot
Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
-Resource ${CURDIR}/../../../libraries/CompareStream.robot
Resource ${CURDIR}/PrefixcountKeywords.robot
*** Variables ***
*** Test Cases ***
Get Example Bgp Rib Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${rib_owner} ${rib_candidates}= ClusterManagement.Get_Owner_And_Successors_For_device example-bgp-rib org.opendaylight.mdsal.ServiceEntityType 1
BuiltIn.Set_Suite_Variable ${rib_owner} ${rib_owner}
BuiltIn.Set_Suite_Variable ${rib_owner_node_id} ${ODL_SYSTEM_${rib_owner}_IP}
[Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
BuiltIn.Wait_Until_Keyword_Succeeds ${INITIAL_RESTCONF_TIMEOUT} 1s PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_3} topology=${EXAMPLE_IPV4_TOPOLOGY}
-Configure_Netconf_Device
- [Documentation] Configures and verifies netconf device configuration. If configuration is not successful, it de-configures the device before the next attempt.
- # No need for configuring netconf device in carbon and above, openconfig is used
- CompareStream.Run_Keyword_If_At_Least_Carbon BuiltIn.Pass_Execution Openconfig usage does not need netconf connector
- &{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} DEVICE_PORT=1830 DEVICE_IP=${rib_owner_node_id} DEVICE_USER=admin DEVICE_PASSWORD=admin
- # After the netconf device is configured, odl starts downloading schemas. If the downloading will not finish within akka timeout, more tries are needed, 3 is based on a user experience.
- : FOR ${index} IN RANGE 0 3
- \ ${status} ${value}= Run Keyword And Ignore Error PrefixcountKeywords.Configure_Netconf_Device_And_Check_Mounted ${mapping}
- \ Exit For Loop If '${status}' == 'PASS'
- \ Run Keyword Unless '${status}' == 'PASS' TemplatedRequests.Delete_Templated ${NETCONF_DEV_FOLDER} mapping=${mapping} session=${config_session}
- Run Keyword Unless '${status}' == 'PASS' Fail
-
Reconfigure_ODL_To_Accept_Connection
[Documentation] Configure BGP peer module with initiate-connection set to false.
[Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
&{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} BGP_NAME=${BGP_PEER_NAME} IP=${TOOLS_SYSTEM_IP} HOLDTIME=${HOLDTIME} PEER_PORT=${BGP_TOOL_PORT}
... INITIATE=false BGP_RIB=${RIB_INSTANCE} BGP_RIB_OPENCONFIG=${PROTOCOL_OPENCONFIG}
TemplatedRequests.Delete_Templated ${BGP_VARIABLES_FOLDER} mapping=${mapping} session=${config_session}
-
-Delete_Netconf_Device_Configuration
- [Documentation] Revert the netconf configuration to the original stat
- [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
- CompareStream.Run_Keyword_If_At_Least_Carbon BuiltIn.Pass_Execution Openconfig usage does not need netconf connector
- &{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} DEVICE_PORT=1830 DEVICE_IP=${rib_owner_node_id} DEVICE_USER=admin DEVICE_PASSWORD=admin
- TemplatedRequests.Delete_Templated ${NETCONF_DEV_FOLDER} mapping=${mapping} session=${config_session}
*** Test Cases ***
Get Example Bgp Rib Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${rib_owner} ${rib_candidates}= ClusterManagement.Get_Owner_And_Successors_For_device example-bgp-rib org.opendaylight.mdsal.ServiceEntityType 1
BuiltIn.Set_Suite_Variable ${rib_owner} ${rib_owner}
BuiltIn.Set_Suite_Variable ${rib_owner_node_id} ${ODL_SYSTEM_${rib_owner}_IP}
Test Teardown SetupUtils.Teardown_Test_Show_Bugs_And_Start_Fast_Failing_If_Test_Failed
Library SSHLibrary timeout=10s
Library RequestsLibrary
-Variables ${CURDIR}/../../../variables/Variables.py
+Resource ${CURDIR}/../../../variables/Variables.robot
Resource ${CURDIR}/../../../libraries/BGPSpeaker.robot
Resource ${CURDIR}/../../../libraries/BGPcliKeywords.robot
Resource ${CURDIR}/../../../libraries/FailFast.robot
Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/SSHKeywords.robot
Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
-Resource ${CURDIR}/../../../libraries/CompareStream.robot
Resource ${CURDIR}/PrefixcountKeywords.robot
*** Variables ***
*** Test Cases ***
Get Example Bgp Rib Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${rib_owner} ${rib_candidates}= ClusterManagement.Get_Owner_And_Successors_For_device example-bgp-rib org.opendaylight.mdsal.ServiceEntityType 1
BuiltIn.Set_Suite_Variable ${rib_owner} ${rib_owner}
BuiltIn.Set_Suite_Variable ${rib_owner_node_id} ${ODL_SYSTEM_${rib_owner}_IP}
[Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
BuiltIn.Wait_Until_Keyword_Succeeds ${INITIAL_RESTCONF_TIMEOUT} 1s PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_3} topology=${EXAMPLE_IPV4_TOPOLOGY}
-Configure_Netconf_Device
- [Documentation] Configures and verifies netconf device configuration. If configuration is not successful, it de-configures the device before the next attempt.
- # No need for configuring netconf device in carbon and above, openconfig is used
- CompareStream.Run_Keyword_If_At_Least_Carbon BuiltIn.Pass_Execution Openconfig usage does not need netconf connector
- &{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} DEVICE_PORT=1830 DEVICE_IP=${rib_owner_node_id} DEVICE_USER=admin DEVICE_PASSWORD=admin
- # After the netconf device is configured, odl starts downloading schemas. If the downloading will not finish within akka timeout, more tries are needed, 3 is based on a user experience.
- : FOR ${index} IN RANGE 0 3
- \ ${status} ${value}= Run Keyword And Ignore Error PrefixcountKeywords.Configure_Netconf_Device_And_Check_Mounted ${mapping}
- \ Exit For Loop If '${status}' == 'PASS'
- \ Run Keyword Unless '${status}' == 'PASS' TemplatedRequests.Delete_Templated ${NETCONF_DEV_FOLDER} mapping=${mapping} session=${config_session}
- Run Keyword Unless '${status}' == 'PASS' Fail
-
Reconfigure_ODL_To_Accept_Connection
[Documentation] Configure BGP peer module with initiate-connection set to false.
[Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
&{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} BGP_NAME=${BGP_PEER_NAME} IP=${TOOLS_SYSTEM_IP} HOLDTIME=${HOLDTIME} PEER_PORT=${BGP_TOOL_PORT}
... INITIATE=false BGP_RIB=${RIB_INSTANCE} BGP_RIB_OPENCONFIG=${PROTOCOL_OPENCONFIG}
TemplatedRequests.Delete_Templated ${BGP_VARIABLES_FOLDER} mapping=${mapping} session=${config_session}
-
-Delete_Netconf_Device_Configuration
- [Documentation] Revert the netconf configuration to the original stat
- [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
- CompareStream.Run_Keyword_If_At_Least_Carbon BuiltIn.Pass_Execution Openconfig usage does not need netconf connector
- &{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} DEVICE_PORT=1830 DEVICE_IP=${rib_owner_node_id} DEVICE_USER=admin DEVICE_PASSWORD=admin
- TemplatedRequests.Delete_Templated ${NETCONF_DEV_FOLDER} mapping=${mapping} session=${config_session}
*** Test Cases ***
Get Example Bgp Rib Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${rib_owner} ${rib_candidates}= ClusterManagement.Get_Owner_And_Successors_For_device example-bgp-rib org.opendaylight.mdsal.ServiceEntityType 1
BuiltIn.Set_Suite_Variable ${rib_owner} ${rib_owner}
BuiltIn.Set_Suite_Variable ${rib_owner_node_id} ${ODL_SYSTEM_${rib_owner}_IP}
Test Teardown SetupUtils.Teardown_Test_Show_Bugs_And_Start_Fast_Failing_If_Test_Failed
Library SSHLibrary timeout=10s
Library RequestsLibrary
-Variables ${CURDIR}/../../../variables/Variables.py
+Resource ${CURDIR}/../../../variables/Variables.robot
Resource ${CURDIR}/../../../libraries/BGPSpeaker.robot
Resource ${CURDIR}/../../../libraries/BGPcliKeywords.robot
Resource ${CURDIR}/../../../libraries/FailFast.robot
Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/SSHKeywords.robot
Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
-Resource ${CURDIR}/../../../libraries/CompareStream.robot
Resource ${CURDIR}/PrefixcountKeywords.robot
*** Variables ***
*** Test Cases ***
Get Example Bgp Rib Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${rib_owner} ${rib_candidates}= ClusterManagement.Get_Owner_And_Successors_For_device example-bgp-rib org.opendaylight.mdsal.ServiceEntityType 1
BuiltIn.Set_Suite_Variable ${rib_owner} ${rib_owner}
BuiltIn.Set_Suite_Variable ${rib_owner_node_id} ${ODL_SYSTEM_${rib_owner}_IP}
[Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
BuiltIn.Wait_Until_Keyword_Succeeds ${INITIAL_RESTCONF_TIMEOUT} 1s PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_3} topology=${EXAMPLE_IPV4_TOPOLOGY}
-Configure_Netconf_Device
- [Documentation] Configures and verifies netconf device configuration. If configuration is not successful, it de-configures the device before the next attempt.
- # No need for configuring netconf device in carbon and above, openconfig is used
- CompareStream.Run_Keyword_If_At_Least_Carbon BuiltIn.Pass_Execution Openconfig usage does not need netconf connector
- &{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} DEVICE_PORT=1830 DEVICE_IP=${rib_owner_node_id} DEVICE_USER=admin DEVICE_PASSWORD=admin
- # After the netconf device is configured, odl starts downloading schemas. If the downloading will not finish within akka timeout, more tries are needed, 3 is based on a user experience.
- : FOR ${index} IN RANGE 0 3
- \ ${status} ${value}= Run Keyword And Ignore Error PrefixcountKeywords.Configure_Netconf_Device_And_Check_Mounted ${mapping}
- \ Exit For Loop If '${status}' == 'PASS'
- \ Run Keyword Unless '${status}' == 'PASS' TemplatedRequests.Delete_Templated ${NETCONF_DEV_FOLDER} mapping=${mapping} session=${config_session}
- Run Keyword Unless '${status}' == 'PASS' Fail
-
Reconfigure_ODL_To_Accept_Connection
[Documentation] Configure BGP peer module with initiate-connection set to false.
[Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
&{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} BGP_NAME=${BGP_PEER_NAME} IP=${TOOLS_SYSTEM_IP} HOLDTIME=${HOLDTIME} PEER_PORT=${BGP_TOOL_PORT}
... INITIATE=false BGP_RIB=${RIB_INSTANCE} BGP_RIB_OPENCONFIG=${PROTOCOL_OPENCONFIG}
TemplatedRequests.Delete_Templated ${BGP_VARIABLES_FOLDER} mapping=${mapping} session=${config_session}
-
-Delete_Netconf_Device_Configuration
- [Documentation] Revert the netconf configuration to the original stat
- [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
- CompareStream.Run_Keyword_If_At_Least_Carbon BuiltIn.Pass_Execution Openconfig usage does not need netconf connector
- &{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} DEVICE_PORT=1830 DEVICE_IP=${rib_owner_node_id} DEVICE_USER=admin DEVICE_PASSWORD=admin
- TemplatedRequests.Delete_Templated ${NETCONF_DEV_FOLDER} mapping=${mapping} session=${config_session}
*** Test Cases ***
Get Example Bgp Rib Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${rib_owner} ${rib_candidates}= ClusterManagement.Get_Owner_And_Successors_For_device example-bgp-rib org.opendaylight.mdsal.ServiceEntityType 1
BuiltIn.Set_Suite_Variable ${rib_owner} ${rib_owner}
BuiltIn.Set_Suite_Variable ${rib_owner_node_id} ${ODL_SYSTEM_${rib_owner}_IP}
*** Test Cases ***
Get_Example_Bgp_Rib_Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${rib_owner} ${rib_candidates}= BuiltIn.Wait_Until_Keyword_Succeeds 5x 2s ClusterManagement.Get_Owner_And_Successors_For_Device example-bgp-rib
... org.opendaylight.mdsal.ServiceEntityType 1
BuiltIn.Set Suite variable ${rib_owner}
*** Test Cases ***
Get_Example_Bgp_Rib_Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${rib_owner} ${rib_candidates}= BuiltIn.Wait_Until_Keyword_Succeeds 5x 2s ClusterManagement.Get_Owner_And_Successors_For_Device example-bgp-rib
... org.opendaylight.mdsal.ServiceEntityType 1
BuiltIn.Set Suite variable ${rib_owner}
*** Test Cases ***
Get_Example_Bm_Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${bm_owner} ${bm_candidates}= Wait_Until_Keyword_Succeeds 5x 2s ClusterManagement.Get_Owner_And_Successors_For_Device bmp-monitors
... Bgpcep 1
BuiltIn.Set Suite variable ${bm_owner}
*** Test Cases ***
Get_Example_Bm_Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${bm_owner} ${bm_candidates}= Wait_Until_Keyword_Succeeds 5x 2s ClusterManagement.Get_Owner_And_Successors_For_Device bmp-monitors
... Bgpcep 1
BuiltIn.Set Suite variable ${bm_owner}
*** Test Cases ***
Get_Example_Pcep_Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${pcep_owner} ${pcep_candidates}= Wait_Until_Keyword_Succeeds 5x 2s ClusterManagement.Get_Owner_And_Successors_For_device pcep-topology
... Bgpcep 1
BuiltIn.Set Suite variable ${pcep_owner}
*** Test Cases ***
Get_Example_Pcep_Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${pcep_owner} ${pcep_candidates}= Wait_Until_Keyword_Succeeds 5x 2s ClusterManagement.Get_Owner_And_Successors_For_device pcep-topology
... Bgpcep 1
BuiltIn.Set Suite variable ${pcep_owner}
*** Variables ***
${BGP_TOOL_LOG_LEVEL} info
${BGP_PEER_FOLDER} ${CURDIR}/../../../variables/bgpclustering/bgp_peer_openconf # used for configuration of bgp peer via openconfig
-${BGP_VARIABLES_FOLDER} ${CURDIR}/../../../variables/bgpclustering/bgp_peer # used for configuration of bgp peer vie netconf connector
+${BGP_VARIABLES_FOLDER} ${CURDIR}/../../../variables/bgpclustering/bgp_peer # used for configuration of bgp peer
${BGP_VARIABLES_FOLDER_OP} ${CURDIR}/../../../variables/bgpclustering/bgp_peer_operational
-${NETCONF_DEV_FOLDER} ${CURDIR}/../../../variables/netconf/device/full-uri-device
-${NETCONF_MOUNT_FOLDER} ${CURDIR}/../../../variables/netconf/device/full-uri-mount
${CHECK_PERIOD} 10
${HOLDTIME} 180
${INSERT} 1
RequestsLibrary.Delete_All_Sessions
SSHLibrary.Close_All_Connections
-Configure_Netconf_Device_And_Check_Mounted
- [Arguments] ${mapping}
- [Documentation] Configures netconf device
- # TODO: This keyword is not specific to prefix counting. Find a better place for it.
- TemplatedRequests.Put_As_Xml_Templated ${NETCONF_DEV_FOLDER} mapping=${mapping} session=${config_session}
- BuiltIn.Wait_Until_Keyword_Succeeds 10x 3s TemplatedRequests.Get_As_Xml_Templated ${NETCONF_MOUNT_FOLDER} mapping=${mapping} session=${config_session}
-
Start_Bgp_Peer
[Arguments] ${peerip}=${rib_owner_node_id}
[Documentation] Starts bgp peer and verifies that the peer runs.
*** Test Cases ***
Get_Example_Bgp_Rib_Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${rib_owner} ${rib_candidates}= BuiltIn.Wait_Until_Keyword_Succeeds 5x 2s ClusterManagement.Get_Owner_And_Successors_For_Device example-bgp-rib
... org.opendaylight.mdsal.ServiceEntityType 1
BuiltIn.Set Suite variable ${rib_owner}
Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/SSHKeywords.robot
Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
-Resource ${CURDIR}/../../../libraries/CompareStream.robot
Resource ${CURDIR}/PrefixcountKeywords.robot
*** Variables ***
Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/SSHKeywords.robot
Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
-Resource ${CURDIR}/../../../libraries/CompareStream.robot
Resource ${CURDIR}/PrefixcountKeywords.robot
*** Variables ***
Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/SSHKeywords.robot
Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
-Resource ${CURDIR}/../../../libraries/CompareStream.robot
Resource ${CURDIR}/PrefixcountKeywords.robot
*** Variables ***
Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/SSHKeywords.robot
Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
-Resource ${CURDIR}/../../../libraries/CompareStream.robot
Resource ${CURDIR}/PrefixcountKeywords.robot
*** Variables ***
Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/SSHKeywords.robot
Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
-Resource ${CURDIR}/../../../libraries/CompareStream.robot
Resource ${CURDIR}/PrefixcountKeywords.robot
*** Variables ***
Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/SSHKeywords.robot
Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
-Resource ${CURDIR}/../../../libraries/CompareStream.robot
Resource ${CURDIR}/PrefixcountKeywords.robot
*** Variables ***
*** Test Cases ***
Get Example Bgp Rib Owner
- [Documentation] Find an odl node which is able to accept incomming connection. To this node netconf connector should be configured.
+ [Documentation] Find an odl node which is able to accept incomming connection.
${rib_owner} ${rib_candidates}= ClusterManagement.Get_Owner_And_Successors_For_device example-bgp-rib org.opendaylight.mdsal.ServiceEntityType 1
BuiltIn.Set_Suite_Variable ${rib_owner} ${rib_owner}
BuiltIn.Set_Suite_Variable ${rib_owner_node_id} ${ODL_SYSTEM_${rib_owner}_IP}
[Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
BuiltIn.Wait_Until_Keyword_Succeeds ${INITIAL_RESTCONF_TIMEOUT} 1s PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_3} topology=${EXAMPLE_IPV4_TOPOLOGY}
-Configure_Netconf_Device
- [Documentation] Configures and verifies netconf device configuration. If configuration is not successful, it de-configures the device before the next attempt.
- # No need for configuring netconf device in carbon and above, openconfig is used
- CompareStream.Run_Keyword_If_At_Least_Carbon BuiltIn.Pass_Execution Openconfig usage does not need netconf connector
- &{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} DEVICE_PORT=1830 DEVICE_IP=${rib_owner_node_id} DEVICE_USER=admin DEVICE_PASSWORD=admin
- # After the netconf device is configured, odl starts downloading schemas. If the downloading will not finish within akka timeout, more tries are needed, 3 is based on a user experience.
- : FOR ${index} IN RANGE 0 3
- \ ${status} ${value}= Run Keyword And Ignore Error PrefixcountKeywords.Configure_Netconf_Device_And_Check_Mounted ${mapping}
- \ Exit For Loop If '${status}' == 'PASS'
- \ Run Keyword Unless '${status}' == 'PASS' TemplatedRequests.Delete_Templated ${NETCONF_DEV_FOLDER} mapping=${mapping} session=${config_session}
- Run Keyword Unless '${status}' == 'PASS' Fail
-
Reconfigure_ODL_To_Accept_Connection
[Documentation] Configure BGP peer module with initiate-connection set to false.
[Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
&{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} BGP_NAME=${BGP_PEER_NAME} IP=${TOOLS_SYSTEM_IP} HOLDTIME=${HOLDTIME} PEER_PORT=${BGP_TOOL_PORT}
... INITIATE=false BGP_RIB=${RIB_INSTANCE} BGP_RIB_OPENCONFIG=${PROTOCOL_OPENCONFIG}
TemplatedRequests.Delete_Templated ${BGP_VARIABLES_FOLDER} mapping=${mapping} session=${config_session}
-
-Delete_Netconf_Device_Configuration
- [Documentation] Revert the netconf configuration to the original stat
- [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
- CompareStream.Run_Keyword_If_At_Least_Carbon BuiltIn.Pass_Execution Openconfig usage does not need netconf connector
- &{mapping} BuiltIn.Create_Dictionary DEVICE_NAME=${DEVICE_NAME} DEVICE_PORT=1830 DEVICE_IP=${rib_owner_node_id} DEVICE_USER=admin DEVICE_PASSWORD=admin
- TemplatedRequests.Delete_Templated ${NETCONF_DEV_FOLDER} mapping=${mapping} session=${config_session}
+++ /dev/null
-{
- "module": [
- {
- "type": "odl-bgp-rib-impl-cfg:bgp-peer",
- "name": "$BGP_NAME",
- "odl-bgp-rib-impl-cfg:rib": {
- "type": "odl-bgp-rib-impl-cfg:rib-instance",
- "name": "$BGP_RIB"
- },
- "odl-bgp-rib-impl-cfg:holdtimer": $HOLDTIME,
- "odl-bgp-rib-impl-cfg:port": $PEER_PORT,
- "odl-bgp-rib-impl-cfg:advertized-table": [
- {
- "type": "odl-bgp-rib-impl-cfg:bgp-table-type",
- "name": "ipv4-unicast"
- },
- {
- "type": "odl-bgp-rib-impl-cfg:bgp-table-type",
- "name": "linkstate"
- },
- {
- "type": "odl-bgp-rib-impl-cfg:bgp-table-type",
- "name": "ipv6-unicast"
- }
- ],
- "odl-bgp-rib-impl-cfg:host": "$IP",
- "odl-bgp-rib-impl-cfg:initiate-connection": $INITIATE,
- "odl-bgp-rib-impl-cfg:peer-registry": {
- "type": "odl-bgp-rib-impl-cfg:bgp-peer-registry",
- "name": "global-bgp-peer-registry"
- }
- }
- ]
-}
+++ /dev/null
-<module xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer</type>
- <name>$BGP_NAME</name>
- <host xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">$IP</host>
- <port xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">$PEER_PORT</port>
- <holdtimer xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">$HOLDTIME</holdtimer>
- <initiate-connection xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">$INITIATE</initiate-connection>
- <rib xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
- <name>$BGP_RIB</name>
- </rib>
- <peer-registry xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
- <name>global-bgp-peer-registry</name>
- </peer-registry>
- <advertized-table xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
- <name>ipv4-unicast</name>
- </advertized-table>
- <advertized-table xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
- <name>ipv6-unicast</name>
- </advertized-table>
- <advertized-table xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
- <name>linkstate</name>
- </advertized-table>
-</module>
+++ /dev/null
-restconf/config/network-topology:network-topology/topology/topology-netconf/node/$DEVICE_NAME/yang-ext:mount/config:modules/module/odl-bgp-rib-impl-cfg:bgp-peer/$BGP_NAME
+++ /dev/null
-{
- "module": [
- {
- "type": "odl-bgp-rib-impl-cfg:bgp-peer",
- "name": "$BGP_NAME",
- "odl-bgp-rib-impl-cfg:rib": {
- "type": "odl-bgp-rib-impl-cfg:rib-instance",
- "name": "$BGP_RIB"
- },
- "odl-bgp-rib-impl-cfg:holdtimer": $HOLDTIME,
- "odl-bgp-rib-impl-cfg:port": $PEER_PORT,
- "odl-bgp-rib-impl-cfg:advertized-table": [
- {
- "type": "odl-bgp-rib-impl-cfg:bgp-table-type",
- "name": "ipv4-unicast"
- },
- {
- "type": "odl-bgp-rib-impl-cfg:bgp-table-type",
- "name": "linkstate"
- },
- {
- "type": "odl-bgp-rib-impl-cfg:bgp-table-type",
- "name": "ipv6-unicast"
- }
- ],
- "odl-bgp-rib-impl-cfg:host": "$IP",
- "odl-bgp-rib-impl-cfg:initiate-connection": $INITIATE,
- "odl-bgp-rib-impl-cfg:peer-registry": {
- "type": "odl-bgp-rib-impl-cfg:bgp-peer-registry",
- "name": "global-bgp-peer-registry"
- }
- }
- ]
-}
+++ /dev/null
-<module xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer</type>
- <name>$BGP_NAME</name>
- <host xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">$IP</host>
- <port xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">$PEER_PORT</port>
- <holdtimer xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">$HOLDTIME</holdtimer>
- <initiate-connection xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">$INITIATE</initiate-connection>
- <rib xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:rib-instance</type>
- <name>$BGP_RIB</name>
- </rib>
- <peer-registry xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-peer-registry</type>
- <name>global-bgp-peer-registry</name>
- </peer-registry>
- <advertized-table xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
- <name>ipv4-unicast</name>
- </advertized-table>
- <advertized-table xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
- <name>ipv6-unicast</name>
- </advertized-table>
- <advertized-table xmlns="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
- <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">prefix:bgp-table-type</type>
- <name>linkstate</name>
- </advertized-table>
-</module>
+++ /dev/null
-restconf/config/network-topology:network-topology/topology/topology-netconf/node/$DEVICE_NAME/yang-ext:mount/config:modules/module/odl-bgp-rib-impl-cfg:bgp-peer/$BGP_NAME