Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <config-template xmlns="http://tail-f.com/ns/config/1.0">
- <devices xmlns="http://tail-f.com/ns/ncs">
- <device tags="nocreate">
- <name>{/contrail_gateway}</name>
- <config tags="merge">
- <vrf xmlns="urn:ios">
- <definition>
- <name>{/vrf_name}</name>
- <rd>{$route_target}</rd>
- <route-target>
- <export>
- <asn-ip>{$route_target}</asn-ip>
- </export>
- <import>
- <asn-ip>{$route_target}</asn-ip>
- </import>
- </route-target>
- <address-family>
- <ipv4 />
- </address-family>
- </definition>
- </vrf>
- <interface xmlns="urn:ios">
- <Tunnel>
- <name>{/gre_tunnel_number}</name>
- <vrf>
- <forwarding>{/vrf_name}</forwarding>
- </vrf>
- <ip>
- <address>
- <primary>
- <address>{/gre_tunnel_address}</address>
- <mask>255.255.255.0</mask>
- </primary>
- </address>
- </ip>
- <tunnel>
- <source>Loopback103</source>
- <destination>192.0.2.1</destination>
- </tunnel>
- </Tunnel>
- </interface>
- <router xmlns="urn:ios">
- <bgp>
- <as-no>64512</as-no>
- <address-family>
- <ipv4>
- <af>unicast</af>
- <default-information>
- <originate />
- </default-information>
- </ipv4>
- <with-vrf>
- <ipv4>
- <af>unicast</af>
- <vrf>
- <name>{/vrf_name}</name>
- <redistribute>
- <connected />
- <static />
- </redistribute>
- </vrf>
- </ipv4>
- </with-vrf>
- </address-family>
- </bgp>
- </router>
- </config>
- </device>
- </devices>
- </config-template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement