summaryrefslogtreecommitdiffstats
path: root/examples/ncclient/nat/expected_config_nat_update.xml
blob: cf21408d2ed23c52b2c0ab8385342b51cd45b22d (plain)
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
107
108
109
110
111
112
113
<!--
  ~ Copyright (c) 2018 Cisco and/or its affiliates.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at:
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
    <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
        <interface>
            <name>local0</name>
            <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
            <enabled>false</enabled>
        </interface>
        <interface>
            <name>loop1</name>
            <description>for testing purposes</description>
            <type xmlns:x="urn:opendaylight:params:xml:ns:yang:v3po">x:loopback</type>
            <loopback xmlns="urn:opendaylight:params:xml:ns:yang:v3po">
                <mac>01:ff:ff:ff:ff:ff</mac>
            </loopback>
        </interface>
        <interface>
            <name>loop2</name>
            <description>for testing purposes</description>
            <type xmlns:x="urn:opendaylight:params:xml:ns:yang:v3po">x:loopback</type>
            <loopback xmlns="urn:opendaylight:params:xml:ns:yang:v3po">
                <mac>02:ff:ff:ff:ff:ff</mac>
            </loopback>
            <nat xmlns="urn:opendaylight:params:xml:ns:yang:interface:nat">
                <inbound>
                    <nat64-support>true</nat64-support>
                    <nat44-support>false</nat44-support>
                </inbound>
            </nat>
        </interface>
        <interface>
            <name>loop3</name>
            <description>for testing purposes</description>
            <type xmlns:x="urn:opendaylight:params:xml:ns:yang:v3po">x:loopback</type>
            <loopback xmlns="urn:opendaylight:params:xml:ns:yang:v3po">
                <mac>03:ff:ff:ff:ff:ff</mac>
            </loopback>
            <nat xmlns="urn:opendaylight:params:xml:ns:yang:interface:nat">
                <outbound>
                    <post-routing>true</post-routing>
                </outbound>
            </nat>
        </interface>
        <interface>
            <name>loop0</name>
            <description>for testing purposes</description>
            <type xmlns:x="urn:opendaylight:params:xml:ns:yang:v3po">x:loopback</type>
            <loopback xmlns="urn:opendaylight:params:xml:ns:yang:v3po">
                <mac>00:ff:ff:ff:ff:ff</mac>
            </loopback>
        </interface>
    </interfaces>
    <nat xmlns="urn:ietf:params:xml:ns:yang:ietf-nat">
        <instances>
            <instance>
                <id>0</id>
                <policy>
                    <id>0</id>
                    <nat64-prefixes>
                        <nat64-prefix>2001:db8:122:300::/56</nat64-prefix>
                    </nat64-prefixes>
                    <external-ip-address-pool>
                        <pool-id>6</pool-id>
                        <external-ip-pool>1.2.3.4/32</external-ip-pool>
                        <pool-type xmlns="urn:opendaylight:params:xml:ns:yang:vpp:nat">nat64</pool-type>
                    </external-ip-address-pool>
                    <external-ip-address-pool>
                        <pool-id>5</pool-id>
                        <external-ip-pool>172.16.2.0/30</external-ip-pool>
                    </external-ip-address-pool>
                    <external-ip-address-pool>
                        <pool-id>3</pool-id>
                        <external-ip-pool>10.10.10.1/30</external-ip-pool>
                        <pool-type xmlns="urn:opendaylight:params:xml:ns:yang:vpp:nat">nat64</pool-type>
                    </external-ip-address-pool>
                    <external-ip-address-pool>
                        <pool-id>2</pool-id>
                        <external-ip-pool>172.15.2.123/32</external-ip-pool>
                    </external-ip-address-pool>
                </policy>
                <mapping-table>
                    <mapping-entry>
                        <index>1</index>
                        <type>static</type>
                        <transport-protocol>6</transport-protocol>
                        <external-src-address>10.1.1.3/32</external-src-address>
                        <external-src-port>
                            <start-port-number>5678</start-port-number>
                        </external-src-port>
                        <internal-src-address>2001:db8:85a3::8a2e:370:7334/128</internal-src-address>
                        <internal-src-port>
                            <start-port-number>1234</start-port-number>
                        </internal-src-port>
                    </mapping-entry>
                </mapping-table>
            </instance>
        </instances>
    </nat>
</data>