-
Notifications
You must be signed in to change notification settings - Fork 1
/
example1.xml
61 lines (61 loc) · 1.96 KB
/
example1.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="utf-8"?>
<config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<interfaces
xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type"
xmlns:dot1q-types="urn:ieee:std:802.1Q:yang:ieee802-dot1q-types"
xmlns:if-ext="urn:ietf:params:xml:ns:yang:ietf-if-extensions">
<interface>
<name>eth0</name>
<type>ianaift:ethernetCsmacd</type>
</interface>
<interface>
<name>eth0.1</name>
<type>ianaift:l2vlan</type>
<if-ext:parent-interface>eth0</if-ext:parent-interface>
<if-ext:encapsulation>
<dot1q-vlan
xmlns=
"urn:ietf:params:xml:ns:yang:ietf-if-vlan-encapsulation">
<outer-tag>
<tag-type>dot1q-types:s-vlan</tag-type>
<vlan-id>10</vlan-id>
</outer-tag>
<second-tag>
<tag-type>dot1q-types:c-vlan</tag-type>
<vlan-id>20</vlan-id>
</second-tag>
</dot1q-vlan>
</if-ext:encapsulation>
<ipv6 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
<forwarding>true</forwarding>
<address>
<ip>2001:db8:10::1</ip>
<prefix-length>48</prefix-length>
</address>
</ipv6>
</interface>
<interface>
<name>eth0.2</name>
<type>ianaift:l2vlan</type>
<if-ext:parent-interface>eth0</if-ext:parent-interface>
<if-ext:encapsulation>
<dot1q-vlan
xmlns=
"urn:ietf:params:xml:ns:yang:ietf-if-vlan-encapsulation">
<outer-tag>
<tag-type>dot1q-types:s-vlan</tag-type>
<vlan-id>11</vlan-id>
</outer-tag>
</dot1q-vlan>
</if-ext:encapsulation>
<ipv6 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
<forwarding>true</forwarding>
<address>
<ip>2001:db8:11::1</ip>
<prefix-length>48</prefix-length>
</address>
</ipv6>
</interface>
</interfaces>
</config>