-
Notifications
You must be signed in to change notification settings - Fork 1
/
example2.xml
106 lines (106 loc) · 3.27 KB
/
example2.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?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.3</name>
<type>ianaift:l2vlan</type>
<if-ext:parent-interface>eth0</if-ext:parent-interface>
<if-ext:encapsulation>
<flexible xmlns=
"urn:ietf:params:xml:ns:yang:ietf-if-flexible-encapsulation">
<match>
<dot1q-vlan-tagged>
<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>21</vlan-id>
</second-tag>
</dot1q-vlan-tagged>
</match>
<rewrite>
<symmetrical>
<dot1q-tag-rewrite>
<pop-tags>1</pop-tags>
</dot1q-tag-rewrite>
</symmetrical>
</rewrite>
</flexible>
</if-ext:encapsulation>
</interface>
<interface>
<name>eth1</name>
<type>ianaift:ethernetCsmacd</type>
</interface>
<interface>
<name>eth1.0</name>
<type>ianaift:l2vlan</type>
<if-ext:parent-interface>eth0</if-ext:parent-interface>
<if-ext:encapsulation>
<flexible xmlns=
"urn:ietf:params:xml:ns:yang:ietf-if-flexible-encapsulation">
<match>
<dot1q-vlan-tagged>
<outer-tag>
<tag-type>dot1q-types:c-vlan</tag-type>
<vlan-id>50</vlan-id>
</outer-tag>
</dot1q-vlan-tagged>
</match>
<rewrite>
<symmetrical>
<dot1q-tag-rewrite>
<pop-tags>1</pop-tags>
</dot1q-tag-rewrite>
</symmetrical>
</rewrite>
</flexible>
</if-ext:encapsulation>
</interface>
</interfaces>
<network-instances
xmlns="urn:ietf:params:xml:ns:yang:ietf-network-instance">
<network-instance
xmlns:l2vpn="urn:ietf:params:xml:ns:yang:ietf-l2vpn">
<name>p2p-l2-1</name>
<description>Point to point L2 service</description>
<l2vpn:type>l2vpn:vpws-instance-type</l2vpn:type>
<l2vpn:signaling-type>
l2vpn:ldp-signaling
</l2vpn:signaling-type>
<endpoint xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn">
<name>local</name>
<ac>
<name>eth0.3</name>
</ac>
</endpoint>
<endpoint xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn">
<name>remote</name>
<pw>
<name>pw1</name>
</pw>
</endpoint>
<vsi-root>
<!-- Does not Validate -->
</vsi-root>
</network-instance>
</network-instances>
<pseudowires
xmlns="urn:ietf:params:xml:ns:yang:ietf-pseudowires">
<pseudowire>
<name>pw1</name>
<peer-ip>2001:db8::50></peer-ip>
<pw-id>100</pw-id>
</pseudowire>
</pseudowires>
</config>