Advertisement
Guest User

Untitled

a guest
Jun 26th, 2018
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.54 KB | None | 0 0
  1. <config-template xmlns="http://tail-f.com/ns/config/1.0">
  2.    <devices xmlns="http://tail-f.com/ns/ncs">
  3.       <device tags="nocreate">
  4.          <name>{/contrail_gateway}</name>
  5.          <config tags="merge">
  6.             <vrf xmlns="urn:ios">
  7.                <definition>
  8.                   <name>{/vrf_name}</name>
  9.                   <rd>{$route_target}</rd>
  10.                   <route-target>
  11.                      <export>
  12.                         <asn-ip>{$route_target}</asn-ip>
  13.                      </export>
  14.                      <import>
  15.                         <asn-ip>{$route_target}</asn-ip>
  16.                      </import>
  17.                   </route-target>
  18.                   <address-family>
  19.                      <ipv4 />
  20.                   </address-family>
  21.                </definition>
  22.             </vrf>
  23.             <interface xmlns="urn:ios">
  24.                <Tunnel>
  25.                   <name>{/gre_tunnel_number}</name>
  26.                   <vrf>
  27.                      <forwarding>{/vrf_name}</forwarding>
  28.                   </vrf>
  29.                   <ip>
  30.                      <address>
  31.                         <primary>
  32.                            <address>{/gre_tunnel_address}</address>
  33.                            <mask>255.255.255.0</mask>
  34.                         </primary>
  35.                      </address>
  36.                   </ip>
  37.                   <tunnel>
  38.                      <source>Loopback103</source>
  39.                      <destination>192.0.2.1</destination>
  40.                   </tunnel>
  41.                </Tunnel>
  42.             </interface>
  43.             <router xmlns="urn:ios">
  44.                <bgp>
  45.                 <as-no>64512</as-no>
  46.                   <address-family>
  47.                      <ipv4>
  48.                         <af>unicast</af>
  49.                         <default-information>
  50.                            <originate />
  51.                         </default-information>
  52.                      </ipv4>
  53.                      <with-vrf>
  54.                         <ipv4>
  55.                            <af>unicast</af>
  56.                            <vrf>
  57.                               <name>{/vrf_name}</name>
  58.                               <redistribute>
  59.                                  <connected />
  60.                                  <static />
  61.                               </redistribute>
  62.                            </vrf>
  63.                         </ipv4>
  64.                      </with-vrf>
  65.                   </address-family>
  66.                </bgp>
  67.             </router>
  68.          </config>
  69.       </device>
  70.    </devices>
  71. </config-template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement