08-03-2021 11:37 AM
08-04-2021 05:49 AM
08-04-2021 09:11 AM
My understanding is that 'merge' is the default behavior if no tag is used:
Here is the template applied by Service A:
<router xmlns="http://tail-f.com/ned/cisco-nx">
<ospf>
<id>CORE</id>
<bfd/>
<router-id>{$loopback0}</router-id>
</ospf>
<bgp>
<id>{/evpn-overlay/as-number}</id>
<log-neighbor-changes/>
<template>
<peer>
<name>{/name}-PEERS</name>
<update-source>loopback0</update-source>
<address-family>
<proto>l2vpn</proto>
<type>evpn</type>
<route-reflector-client/>
<send-community>
<attr>extended</attr>
</send-community>
</address-family>
<remote-as>{/evpn-overlay/as-number}</remote-as>
</peer>
</template>
<?foreach {/evpn-overlay/leaf/name}?>
<neighbor>
<id>{deref(current())/../loopback-ipv4-address}</id>
<description>{current()}</description>
<inherit>
<peer>{/name}-PEERS</peer>
</inherit>
</neighbor>
<?end?>
</bgp>
</router>
Here is the template for Service B:
<device>
<name>{/downstream/device}</name>
<config>
<router xmlns="http://tail-f.com/ned/cisco-nx">
<bgp>
<id>{$peer-asn}</id>
<neighbor>
<id>{$core-ip}</id>
<inner-remote-as>
<remote-as>{$core-asn}</remote-as>
</inner-remote-as>
<description>{/upstream/device}</description>
<inherit>
<peer>{$remote-peer-group}</peer>
</inherit>
</neighbor>
</bgp>
</router>
</config>
</device>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide