@{SUBNET_CIDR} 22.1.1.0/24 33.1.1.0/24 44.1.1.0/24
@{ROUTERS} multipath_router_1 multipath_router_2 multipath_router_3
${AS_ID} 100
-${VPNV4_ADDR_FAMILY} vpnv4
${BGP_CACHE} bgp-cache
-${BGP_CONNECT} bgp-connect -h ${ODL_SYSTEM_IP} -p 7644 add
-${DISPLAY_VPN4_ALL} show-bgp --cmd "ip bgp ${VPNV4_ADDR_FAMILY} all"
${DIPSLAY_FIB} fib-show
${ENABLE} enable
${DISABLE} disable
: FOR ${idx} IN RANGE ${START_VALUE} ${NUM_OF_DCGW}
\ Configure Maxpath @{MAX_PATH_LIST}[2] @{DCGW_RD_IRT_ERT}[${idx}]
\ BuiltIn.Wait Until Keyword Succeeds 10s 2s Verify Maxpath @{MAX_PATH_LIST}[2] @{DCGW_RD_IRT_ERT}[${idx}]
- BuiltIn.Wait Until Keyword Succeeds 60s 10s Check BGP VPNv4 Nbr On ODL ${NUM_OF_DCGW} False
+ BuiltIn.Wait Until Keyword Succeeds 60s 10s BgpOperations.Check BGP VPNv4 Nbr On ODL ${NUM_OF_DCGW} False
Verify max-path error message with invalid inputs
[Documentation] Verify max path error message while configuring maxpath with invalid range
: FOR ${invalid} IN @{MAX_PATH_INVALID_LIST}
\ Configure Maxpath ${invalid} @{DCGW_RD_IRT_ERT}[0]
\ BuiltIn.Wait Until Keyword Succeeds 10s 2s Verify Maxpath ${invalid} @{DCGW_RD_IRT_ERT}[0]
- BuiltIn.Wait Until Keyword Succeeds 60s 10s Check BGP VPNv4 Nbr On ODL ${NUM_OF_DCGW} False
+ BuiltIn.Wait Until Keyword Succeeds 60s 10s BgpOperations.Check BGP VPNv4 Nbr On ODL ${NUM_OF_DCGW} False
Verify ODL supports dynamic configuration changes for max path value
[Documentation] Verify ODL supports dynamic configuration changes for max path value
BuiltIn.Wait Until Keyword Succeeds 10s 2s Verify Maxpath @{MAX_PATH_LIST}[2] @{DCGW_RD_IRT_ERT}[0]
: FOR ${idx} IN RANGE ${START_VALUE} ${NUM_OF_DCGW}
\ BgpOperations.Add Routes On DCGW @{DCGW_IP_LIST}[${idx}] @{DCGW_RD_IRT_ERT}[0] @{NETWORK_IP}[0] @{LABEL}[${idx}]
- BuiltIn.Wait Until Keyword Succeeds 60s 10s Check BGP VPNv4 Nbr On ODL ${NUM_OF_DCGW}
+ BuiltIn.Wait Until Keyword Succeeds 60s 10s BgpOperations.Check BGP VPNv4 Nbr On ODL ${NUM_OF_DCGW}
BuiltIn.Wait Until Keyword Succeeds 60s 10s Verify Routing Entry On ODL @{DCGW_RD_IRT_ERT}[0] @{NETWORK_IP}[0] @{NUM_OF_ROUTES}[2]
BuiltIn.Wait Until Keyword Succeeds 30s 5s Verify FIB Entry On ODL @{NETWORK_IP}[0] @{NUM_OF_ROUTES}[2]
: FOR ${index} IN RANGE 0 3
BuiltIn.Wait Until Keyword Succeeds 10s 2s Verify Maxpath @{MAX_PATH_LIST}[2] @{DCGW_RD_IRT_ERT}[0]
: FOR ${idx} IN RANGE ${START_VALUE} ${NUM_OF_DCGW}
\ BgpOperations.Add Routes On DCGW @{DCGW_IP_LIST}[${idx}] @{DCGW_RD_IRT_ERT}[0] @{NETWORK_IP}[0] @{LABEL}[${idx}]
- BuiltIn.Wait Until Keyword Succeeds 60s 10s Check BGP VPNv4 Nbr On ODL ${NUM_OF_DCGW}
+ BuiltIn.Wait Until Keyword Succeeds 60s 10s BgpOperations.Check BGP VPNv4 Nbr On ODL ${NUM_OF_DCGW}
BuiltIn.Wait Until Keyword Succeeds 60s 10s Verify Routing Entry On ODL @{DCGW_RD_IRT_ERT}[0] @{NETWORK_IP}[0] @{NUM_OF_ROUTES}[2]
BuiltIn.Wait Until Keyword Succeeds 30s 5s Verify FIB Entry On ODL @{NETWORK_IP}[0] @{NUM_OF_ROUTES}[2]
Configure Maxpath @{MAX_PATH_LIST}[0] @{DCGW_RD_IRT_ERT}[0]
: FOR ${dcgw} IN @{DCGW_IP_LIST}
\ BgpOperations.Start Quagga Processes On DCGW ${dcgw}
BgpOperations.Start Quagga Processes On ODL ${ODL_SYSTEM_IP}
- KarafKeywords.Issue Command On Karaf Console ${BGP_CONNECT}
+ KarafKeywords.Issue Command On Karaf Console ${BGP_CONFIG_SERVER_CMD}
BgpOperations.Create BGP Configuration On ODL localas=${AS_ID} routerid=${ODL_SYSTEM_IP}
: FOR ${dcgw} IN @{DCGW_IP_LIST}
\ BgpOperations.AddNeighbor To BGP Configuration On ODL remoteas=${AS_ID} neighborAddr=${dcgw}
BuiltIn.Run Keyword If 0 < ${maxpath} < 65 BuiltIn.Should Match Regexp ${output} ${rd}\\s*${maxpath}
... ELSE BuiltIn.Should Not Match Regexp ${output} ${rd}\\s*${maxpath}
-Check BGP VPNv4 Nbr On ODL
- [Arguments] ${dcgw_count} ${flag}=True ${start}=${START_VALUE}
- [Documentation] Check BGP VPNv4 neighbor all 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}]}
-
Verify Routing Entry On ODL
[Arguments] ${rd} ${prefix} ${no_of_times}
[Documentation] Verify routing table for specific prefix