Skip to content

Instantly share code, notes, and snippets.

@h4ndzdatm0ld
Created September 23, 2020 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h4ndzdatm0ld/6735855049104432ffbf0169ba53a660 to your computer and use it in GitHub Desktop.
Save h4ndzdatm0ld/6735855049104432ffbf0169ba53a660 to your computer and use it in GitHub Desktop.
nokia-vprn-xml
{% for VRF in data %}
<config>
<configure xmlns="urn:nokia.com:sros:ns:yang:sr:conf">
<service>
<customer>
<customer-name>{{VRF.CUSTOMER_NAME}}</customer-name>
<customer-id>{{VRF.CUSTOMER_ID}}</customer-id>
</customer>
<vprn>
<service-name>{{VRF.SERVICE_NAME}}</service-name>
<service-id>{{VRF.SERVICE_ID}}</service-id>
<admin-state>enable</admin-state>
<customer>{{VRF.CUSTOMER_NAME}}</customer>
<autonomous-system>{{VRF.ASN}}</autonomous-system>
<route-distinguisher>{{VRF.ASN}}:{{VRF.RD}}</route-distinguisher>
<vrf-target>
<community>target:{{VRF.ASN}}:{{VRF.RT}}</community>
</vrf-target>
<auto-bind-tunnel>
<resolution>any</resolution>
</auto-bind-tunnel>
<interface>
<interface-name>{{VRF.INTERFACE_NAME}}</interface-name>
<loopback>true</loopback>
<ipv4>
<primary>
<address>{{VRF.INTERFACE_ADDRESS}}</address>
<prefix-length>{{VRF.INTERFACE_PREFIX}}</prefix-length>
</primary>
</ipv4>
</interface>
</vprn>
</service>
</configure>
</config>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment