[Documentation] Verify routes on quagga
${output} = Execute Show Command On quagga ${dcgw_ip} show ip bgp vrf ${rd}
Log ${output}
[Documentation] Verify routes on quagga
${output} = Execute Show Command On quagga ${dcgw_ip} show ip bgp vrf ${rd}
Log ${output}
BgpOperations.Create Quagga Telnet Session ${dcgw_ip} bgpd sdncbgpc
BgpOperations.Execute Command On Quagga Telnet Session configure terminal
BgpOperations.Execute Command On Quagga Telnet Session router bgp ${as_id}
BgpOperations.Create Quagga Telnet Session ${dcgw_ip} bgpd sdncbgpc
BgpOperations.Execute Command On Quagga Telnet Session configure terminal
BgpOperations.Execute Command On Quagga Telnet Session router bgp ${as_id}
AddNeighbor To BGP Configuration On ODL
[Arguments] &{Kwargs}
[Documentation] Associate the created L3VPN to a network-id received as dictionary argument
AddNeighbor To BGP Configuration On ODL
[Arguments] &{Kwargs}
[Documentation] Associate the created L3VPN to a network-id received as dictionary argument
- TemplatedRequests.Post_As_Json_Templated folder=${VAR_BASE_BGP}/addNeighbor_bgp mapping=${Kwargs} session=session
+ CompareStream.Run_Keyword_If_Less_Than_Magnesium TemplatedRequests.Post_As_Json_Templated folder=${VAR_BASE_BGP}/addNeighbor_bgp mapping=${Kwargs} session=session
+ CompareStream.Run_Keyword_If_At_Least_Magnesium TemplatedRequests.Post_As_Json_Templated folder=${VAR_BASE_BGP}/addNeighborsContainer_bgp mapping=${Kwargs} session=session
Get BGP Configuration On ODL
[Arguments] ${odl_session}
[Documentation] Get bgp configuration
${resp} = RequestsLibrary.Get Request ${odl_session} ${CONFIG_API}/ebgp:bgp/
Get BGP Configuration On ODL
[Arguments] ${odl_session}
[Documentation] Get bgp configuration
${resp} = RequestsLibrary.Get Request ${odl_session} ${CONFIG_API}/ebgp:bgp/
Delete BGP Configuration On ODL
[Arguments] ${odl_session}
[Documentation] Delete BGP
${resp} = RequestsLibrary.Delete Request ${odl_session} ${CONFIG_API}/ebgp:bgp/
Delete BGP Configuration On ODL
[Arguments] ${odl_session}
[Documentation] Delete BGP
${resp} = RequestsLibrary.Delete Request ${odl_session} ${CONFIG_API}/ebgp:bgp/
[Arguments] ${ip}
[Documentation] Get bgp configuration
${resp} = RequestsLibrary.Get Request session ${CONFIG_API}/itm:dc-gateway-ip-list/dc-gateway-ip/${ip}/
[Arguments] ${ip}
[Documentation] Get bgp configuration
${resp} = RequestsLibrary.Get Request session ${CONFIG_API}/itm:dc-gateway-ip-list/dc-gateway-ip/${ip}/
Play_To_Odl_Template
[Arguments] ${totest} ${dir} ${ipv}=ipv4
${as_path} = CompareStream.Set_Variable_If_At_Least_Neon ${NEW_AS_PATH} ${OLD_AS_PATH}
Play_To_Odl_Template
[Arguments] ${totest} ${dir} ${ipv}=ipv4
${as_path} = CompareStream.Set_Variable_If_At_Least_Neon ${NEW_AS_PATH} ${OLD_AS_PATH}
- &{adj_rib_in} BuiltIn.Create_Dictionary PATH=peer/bgp:%2F%2F${TOOLS_SYSTEM_IP}/adj-rib-in BGP_RIB=${RIB_NAME} AS_PATH=${as_path}
- &{effective_rib_in} BuiltIn.Create_Dictionary PATH=peer/bgp:%2F%2F${TOOLS_SYSTEM_IP}/effective-rib-in BGP_RIB=${RIB_NAME} AS_PATH=${as_path}
+ &{adj_rib_in} BuiltIn.Create_Dictionary PATH=peer\=bgp:%2F%2F${TOOLS_SYSTEM_IP}/adj-rib-in BGP_RIB=${RIB_NAME} AS_PATH=${as_path}
+ &{effective_rib_in} BuiltIn.Create_Dictionary PATH=peer\=bgp:%2F%2F${TOOLS_SYSTEM_IP}/effective-rib-in BGP_RIB=${RIB_NAME} AS_PATH=${as_path}
&{loc_rib} BuiltIn.Create_Dictionary PATH=loc-rib BGP_RIB=${RIB_NAME} AS_PATH=${as_path}
${announce_hex} = OperatingSystem.Get_File ${dir}/${totest}/announce_${totest}.hex
${withdraw_hex} = OperatingSystem.Get_File ${dir}/${totest}/withdraw_${totest}.hex
&{loc_rib} BuiltIn.Create_Dictionary PATH=loc-rib BGP_RIB=${RIB_NAME} AS_PATH=${as_path}
${announce_hex} = OperatingSystem.Get_File ${dir}/${totest}/announce_${totest}.hex
${withdraw_hex} = OperatingSystem.Get_File ${dir}/${totest}/withdraw_${totest}.hex
[Arguments] ${dcgw_count} ${flag}=True ${start}=${START_VALUE}
[Documentation] Check all BGP VPNv4 neighbor on ODL
${output} = KarafKeywords.Issue Command On Karaf Console ${DISPLAY_VPN4_ALL}
[Arguments] ${dcgw_count} ${flag}=True ${start}=${START_VALUE}
[Documentation] Check all BGP VPNv4 neighbor on ODL
${output} = KarafKeywords.Issue Command On Karaf Console ${DISPLAY_VPN4_ALL}
- : FOR ${index} IN RANGE ${start} ${dcgw_count}
- \ BuiltIn.Run Keyword If ${flag}==True BuiltIn.Should Contain ${output} ${DCGW_IP_LIST[${index}]}
- \ ... ELSE BuiltIn.Should Not Contain ${output} ${DCGW_IP_LIST[${index}]}
+ FOR ${index} IN RANGE ${start} ${dcgw_count}
+ BuiltIn.Run Keyword If ${flag}==True BuiltIn.Should Contain ${output} ${DCGW_IP_LIST[${index}]}
+ ... ELSE BuiltIn.Should Not Contain ${output} ${DCGW_IP_LIST[${index}]}
+ END