-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstatic_route_template.xml
27 lines (27 loc) · 1.01 KB
/
static_route_template.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<config>
<routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
<routing-instance>
<name>default</name>
<description>default-vrf [read-only]</description>
<interfaces/>
<routing-protocols>
<routing-protocol>
<type>static</type>
<name>1</name>
<static-routes>
<ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ipv4-unicast-routing">
{% for route in route_list %}
<route>
<destination-prefix>{{ route['destination_prefix'] }}</destination-prefix>
<next-hop>
<next-hop-address>{{ route['next_hop_address'] }}</next-hop-address>
</next-hop>
</route>
{% endfor %}
</ipv4>
</static-routes>
</routing-protocol>
</routing-protocols>
</routing-instance>
</routing>
</config>