X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FBgpOperations.robot;h=97ba03c3e91052b0751968b8ac66aa608134bebd;hb=c6740c77a4706a11379d2b074fc5d380a610d9af;hp=98809ed4b2d0fe06b0673cb3efb52eda8951523e;hpb=f08fb5f92c3c46074bf91aaf546d9d411ccd0e84;p=integration%2Ftest.git diff --git a/csit/libraries/BgpOperations.robot b/csit/libraries/BgpOperations.robot index 98809ed4b2..97ba03c3e9 100644 --- a/csit/libraries/BgpOperations.robot +++ b/csit/libraries/BgpOperations.robot @@ -21,6 +21,7 @@ ${NEW_AS_PATH} ${EMPTY} &{APP_PEER} IP=${ODL_SYSTEM_IP} BGP_RIB=${RIB_NAME} ${NEW_IPV4_ROUTES_LINE} ${EMPTY} ${OLD_IPV4_ROUTES_LINE} \n"bgp-inet:ipv4-routes": {}, +${BGP_CONFIG_SERVER_CMD} bgp-connect -h ${ODL_SYSTEM_IP} -p 7644 add *** Keywords *** Start Quagga Processes On ODL @@ -65,12 +66,18 @@ Start Quagga Processes On DCGW Restart BGP Processes On DCGW [Arguments] ${dcgw_ip} - [Documentation] To Restart the zrpcd, bgpd,and zebra processes on DCGW + [Documentation] To Restart the zrpcd, bgpd and zebra processes on DCGW ${dcgw_conn_id} = Open_Connection_To_Tools_System ip_address=${dcgw_ip} Switch Connection ${dcgw_conn_id} Write Commands Until Expected Prompt sudo pkill -f bgpd ${DEFAULT_LINUX_PROMPT_STRICT} Start Quagga Processes On DCGW ${dcgw_ip} +Stop BGP Processes On Node + [Arguments] ${node_ip} + [Documentation] To stop the bgpd , qthriftd processes on specific node given by user. + Utils.Run Command On Remote System ${node_ip} sudo pkill -f bgpd + Utils.Run Command On Remote System ${node_ip} sudo pkill -f zrpcd + Show Quagga Configuration On ODL [Arguments] ${odl_ip} ${rd} [Documentation] Show quagga config from ODL @@ -154,6 +161,26 @@ Verify BGP Neighbor Status On Quagga Log ${output} Should Contain ${output} BGP state = Established +Setup BGP Peering On ODL + [Arguments] ${odl_ip} ${as_id} ${nbr_ip} + [Documentation] Setup BGP peering between ODL and given neighbor IP. + ... Configuring and starting BGP on ODL node with given AS number + ... Adding and verifying BGP neighbor + KarafKeywords.Issue Command On Karaf Console ${BGP_CONFIG_SERVER_CMD} + BgpOperations.Create BGP Configuration On ODL localas=${as_id} routerid=${odl_ip} + BgpOperations.AddNeighbor To BGP Configuration On ODL remoteas=${as_id} neighborAddr=${nbr_ip} + ${output} = BgpOperations.Get BGP Configuration On ODL session + BuiltIn.Should Contain ${output} ${nbr_ip} + +Setup BGP Peering On DCGW + [Arguments] ${dcgw_ip} ${as_id} ${nbr_ip} ${vrf_name} ${rd} ${loopback_ip} + [Documentation] Setup BGP peering between DCGW and given neighbor IP. + ... Configuring,adding neighbor on DCGW node and verifying BGP neighbor. + BgpOperations.Configure BGP And Add Neighbor On DCGW ${dcgw_ip} ${as_id} ${dcgw_ip} ${nbr_ip} ${vrf_name} ${rd} + ... ${loopback_ip} + ${output} = BgpOperations.Execute Show Command On Quagga ${dcgw_ip} ${RUN_CONFIG} + BuiltIn.Should Contain ${output} ${nbr_ip} + Verify Routes On Quagga [Arguments] ${dcgw_ip} ${rd} ${ip_list} [Documentation] Verify routes on quagga