<!-- ~ 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="http://fd.io/hc2vpp/yang/v3po">x:loopback</type> <loopback xmlns="http://fd.io/hc2vpp/yang/v3po"> <mac>01:ff:ff:ff:ff:ff</mac> </loopback> </interface> <interface> <name>loop2</name> <description>for testing purposes</description> <type xmlns:x="http://fd.io/hc2vpp/yang/v3po">x:loopback</type> <loopback xmlns="http://fd.io/hc2vpp/yang/v3po"> <mac>02:ff:ff:ff:ff:ff</mac> </loopback> <nat xmlns="http://fd.io/hc2vpp/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="http://fd.io/hc2vpp/yang/v3po">x:loopback</type> <loopback xmlns="http://fd.io/hc2vpp/yang/v3po"> <mac>03:ff:ff:ff:ff:ff</mac> </loopback> <nat xmlns="http://fd.io/hc2vpp/yang/interface-nat"> <outbound> <post-routing>true</post-routing> </outbound> </nat> </interface> <interface> <name>loop0</name> <description>for testing purposes</description> <type xmlns:x="http://fd.io/hc2vpp/yang/v3po">x:loopback</type> <loopback xmlns="http://fd.io/hc2vpp/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="http://fd.io/hc2vpp/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="http://fd.io/hc2vpp/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>