Add peer group configuration 75/73175/3
authorTomas Markovic <tomas.markovic@pantheon.tech>
Tue, 19 Jun 2018 05:13:36 +0000 (07:13 +0200)
committerJamo Luhrsen <jluhrsen@redhat.com>
Tue, 19 Jun 2018 22:27:00 +0000 (22:27 +0000)
There are now base peer-groups defined,
which we can use for shorter peer configuration
definition. But this is only avaiable to
fluorine, so I am adding this only to fluorine tests.

Change-Id: I65507022d68708bcded838bc3483772792492c1c
Signed-off-by: Tomas Markovic <tomas.markovic@pantheon.tech>
csit/suites/bgpcep/bgpfunct/060_bgp_functional_mvpn.robot
csit/variables/bgpfunctional/mvpn/bgp_peer/data.xml

index 36441bbc3588a021d83eb461e09c23f888b39f7b..2b59d70ae4b98d6244e04bbbea7fe9e58205fdb8 100644 (file)
@@ -28,8 +28,6 @@ Resource          ../../../variables/Variables.robot
 
 *** Variables ***
 ${HOLDTIME}       180
-${APP_PEER_NAME}    example-bgp-peer-app
-${BGP_DIR}        ${CURDIR}/../../../variables/bgpfunctional
 ${CONFIG_SESSION}    config-session
 ${MVPN_DIR}       ${CURDIR}/../../../variables/bgpfunctional/mvpn
 ${PLAY_SCRIPT}    ${CURDIR}/../../../../tools/fastbgp/play.py
index ba486131a3b29bf66e1ee8bfaeda13b9364b6412..a1f4368b19669e8952caa864667c2f4175cdf417 100644 (file)
@@ -1,36 +1,6 @@
 <neighbor xmlns="urn:opendaylight:params:xml:ns:yang:bgp:openconfig-extensions">
     <neighbor-address>$IP</neighbor-address>
-    <route-reflector>
-        <config>
-            <route-reflector-client>false</route-reflector-client>
-        </config>
-    </route-reflector>
-    <timers>
-        <config>
-            <hold-time>$HOLDTIME</hold-time>
-        </config>
-    </timers>
-    <transport>
-        <config>
-            <remote-port>$PEER_PORT</remote-port>
-            <passive-mode>$PASSIVE_MODE</passive-mode>
-        </config>
-    </transport>
     <config>
-        <peer-type>INTERNAL</peer-type>
+        <peer-group>/bgp/neighbors/neighbor/bgp/peer-groups/peer-group[peer-group-name="internal-neighbor"]</peer-group>
     </config>
-    <afi-safis>
-        <afi-safi>
-            <afi-safi-name xmlns:x="http://openconfig.net/yang/bgp-types">x:IPV4-UNICAST</afi-safi-name>
-        </afi-safi>
-        <afi-safi>
-            <afi-safi-name>IPV4-MCAST-VPN</afi-safi-name>
-        </afi-safi>
-        <afi-safi>
-            <afi-safi-name>IPV6-MCAST-VPN</afi-safi-name>
-        </afi-safi>
-        <afi-safi>
-            <afi-safi-name>LINKSTATE</afi-safi-name>
-        </afi-safi>
-    </afi-safis>
 </neighbor>