From 3360848854cff441d4fa331025955e36e7765e86 Mon Sep 17 00:00:00 2001 From: JayaPr Date: Mon, 29 Jul 2019 22:56:31 +0530 Subject: [PATCH] Add testcase for Control path monitor (bfd) for bgp Signed-off-by: JayaPr Change-Id: Ieb38cde08efe9f84ba8797aad8fc649cd3d83314 --- csit/suites/netvirt/l3vpn_bgp/bfd_bgp.robot | 36 +++++++++++++++++++ .../netvirt-1node-dcgw-openstack.txt | 1 + 2 files changed, 37 insertions(+) create mode 100644 csit/suites/netvirt/l3vpn_bgp/bfd_bgp.robot diff --git a/csit/suites/netvirt/l3vpn_bgp/bfd_bgp.robot b/csit/suites/netvirt/l3vpn_bgp/bfd_bgp.robot new file mode 100644 index 0000000000..1a8484d9b6 --- /dev/null +++ b/csit/suites/netvirt/l3vpn_bgp/bfd_bgp.robot @@ -0,0 +1,36 @@ +*** Settings *** +Documentation Test Case to configure and validate default bfd configuration +Suite Setup OpenStackOperations.Suite Setup +Suite Teardown OpenStackOperations.OpenStack Suite Teardown +Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing +Test Teardown OpenStackOperations.Get Test Teardown Debugs +Resource ../../../libraries/KarafKeywords.robot +Resource ../../../libraries/OpenStackOperations.robot +Resource ../../../libraries/SetupUtils.robot +Resource ../../../libraries/Utils.robot +Resource ../../../libraries/VpnOperations.robot +Resource ../../../variables/Variables.robot +Resource ../../../variables/netvirt/Variables.robot + +*** Variables *** +${BFD_CONFIG_ADD_CMD} bfd-config add +${BFD_CONFIG_REMOVE_CMD} bfd-config del +${BFD_CACHE_CMD} bfd-cache +${BFD_TX} 6000 +${BFD_RX} 500 +${BFD_STATE} yes +${BFD_MULTIPLIER} 3 +${BFD_MULTIHOP} yes + +*** Test Cases *** +Verify BGP_BFD Configuration + [Documentation] Validate bfd configuration parameters in ODL + KarafKeywords.Issue Command On Karaf Console ${BFD_CONFIG_ADD_CMD} + ${output} = KarafKeywords.Issue Command On Karaf Console ${BFD_CACHE_CMD} + BuiltIn.Should Match Regexp ${output} .*${BFD_STATE}\\s+.*${BFD_RX}\\s+.*${BFD_TX}\\s+.*${BFD_MULTIPLIER}\\s+.*${BFD_MULTIHOP} + KarafKeywords.Issue Command On Karaf Console ${BFD_CONFIG_REMOVE_CMD} + +*** Keywords *** +Suite Setup + [Documentation] Setup start suite + VpnOperations.Basic Suite Setup diff --git a/csit/testplans/netvirt-1node-dcgw-openstack.txt b/csit/testplans/netvirt-1node-dcgw-openstack.txt index fcc0dbd20f..60930f41ce 100644 --- a/csit/testplans/netvirt-1node-dcgw-openstack.txt +++ b/csit/testplans/netvirt-1node-dcgw-openstack.txt @@ -1,4 +1,5 @@ # Suites listed here are intended to be using dcgw. integration/test/csit/suites/netvirt/snatdnat/snat_dnat.robot integration/test/csit/suites/netvirt/subnet_routing/subnet_routing_and_multicast.robot +integration/test/csit/suites/netvirt/l3vpn_bgp/bfd_bgp.robot integration/test/csit/suites/integration/Create_JVM_Plots.robot -- 2.36.6