module iana-tunnel-type { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:iana-tunnel-type"; prefix iana-tunnel-type; import iana-if-type { prefix ift; reference "RFC 7224: IANA Interface Type YANG Module"; } organization "IANA"; contact "Internet Assigned Numbers Authority Postal: ICANN 12025 Waterfront Drive, Suite 300 Los Angeles, CA 90094-2536 United States of America Tel: +1 310 301 5800 <mailto:iana@iana.org>"; description "This module contains a collection of YANG identities defined by IANA and used as interface types for tunnel interfaces. Copyright (c) 2019 IETF Trust and the persons identified as authors of the code. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Simplified BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info). This version of this YANG module is part of RFC 8675; see the RFC itself for full legal notices."; revision 2019-11-16 { description "Initial revision."; reference "RFC 8675: A YANG Data Model for Tunnel Interface Types"; } identity other { base ift:tunnel; description "None of the following values."; reference "RFC 4087: IP Tunnel MIB"; } identity direct { base ift:tunnel; description "No intermediate header."; reference "RFC 2003: IP Encapsulation within IP RFC 4213: Basic Transition Mechanisms for IPv6 Hosts and Routers"; } identity gre { base ift:tunnel; description "GRE encapsulation."; reference "RFC 1701: Generic Routing Encapsulation (GRE) RFC 1702: Generic Routing Encapsulation over IPv4 networks RFC 7676: IPv6 Support for Generic Routing Encapsulation (GRE)"; } identity minimal { base ift:tunnel; description "Minimal encapsulation."; reference "RFC 2004: Minimal Encapsulation within IP"; } identity l2tp { base ift:tunnel; description "L2TP encapsulation."; reference "RFC 2661: Layer Two Tunneling Protocol 'L2TP'"; } identity pptp { base ift:tunnel; description "PPTP encapsulation."; reference "RFC 2637: Point-to-Point Tunneling Protocol (PPTP)"; } identity l2f { base ift:tunnel; description "L2F encapsulation."; reference "RFC 2341: Cisco Layer Two Forwarding (Protocol) 'L2F'"; } identity udp { base ift:tunnel; description "UDP encapsulation."; reference "RFC 1234: Tunneling IPX Traffic through IP Networks, RFC 8085: UDP Usage Guidelines, Section 3.1.11"; } identity atmp { base ift:tunnel; description "ATMP encapsulation."; reference "RFC 2107: Ascend Tunnel Management Protocol - ATMP"; } identity msdp { base ift:tunnel; description "MSDP encapsulation."; reference "RFC 3618: Multicast Source Discovery Protocol (MSDP)"; } identity sixtofour { base ift:tunnel; description "6to4 encapsulation."; reference "RFC 3056: Connection of IPv6 Domains via IPv4 Clouds"; } identity sixoverfour { base ift:tunnel; description "6over4 encapsulation."; reference "RFC 2529: Transmission of IPv6 over IPv4 Domains without Explicit Tunnels"; } identity isatap { base ift:tunnel; description "ISATAP encapsulation."; reference "RFC 5214: Intra-Site Automatic Tunnel Addressing Protocol (ISATAP)"; } identity teredo { base ift:tunnel; description "Teredo encapsulation."; reference "RFC 4380: Teredo: Tunneling IPv6 over UDP through Network Address Translations (NATs)"; } identity iphttps { base ift:tunnel; description "IP over HTTPS (IP-HTTPS) Tunneling Protocol."; reference "Microsoft Corporation, IP over HTTPS (IP-HTTPS) Tunneling Protocol Specification, https://msdn.microsoft.com/en-us/library/dd358571.aspx"; } identity softwiremesh { base ift:tunnel; description "softwire mesh tunnel."; reference "RFC 5565: Softwire Mesh Framework"; } identity dslite { base ift:tunnel; description "DS-Lite tunnel."; reference "RFC 6333: Dual-Stack Lite Broadband Deployments Following IPv4 Exhaustion"; } identity aplusp { base ift:tunnel; description "A+P encapsulation."; reference "RFC 6346: The Address plus Port (A+P) Approach to the IPv4 Address Shortage"; } }
Decimal | Name | Description | References |
---|---|---|---|
2 | direct | no intermediate header | [RFC 4087] |
3 | gre | GRE encapsulation | [RFC 4087] |
4 | minimal | Minimal encapsulation | [RFC 4087] |
5 | l2tp | L2TP encapsulation | [RFC 4087] |
6 | pptp | PPTP encapsulation | [RFC 4087] |
7 | l2f | L2F encapsulation | [RFC 4087] |
8 | udp | UDP encapsulation | [RFC 4087] |
9 | atmp | ATMP encapsulation | [RFC 4087] |
10 | msdp | MSDP encapsulation | [RFC 4087] |
11 | sixToFour | 6to4 encapsulation | [RFC 4087] |
12 | sixOverFour | 6over4 encapsulation | [RFC 4087] |
13 | isatap | ISATAP encapsulation | [RFC 4087] |
14 | teredo | Teredo encapsulation | [RFC 4087] |
16 | softwireMesh | softwire mesh tunnel | [RFC 7856] |
17 | dsLite | DS-Lite tunnel | [RFC 7870] |
Decimal | Name | Description | References |
---|---|---|---|
2 | direct | no intermediate header | [RFC 2003][RFC 4213] |
3 | gre | GRE encapsulation | [RFC 1701][RFC 1702][RFC 7676] |
4 | minimal | Minimal encapsulation | [RFC 2004] |
5 | l2tp | L2TP encapsulation | [RFC 2661] |
6 | pptp | PPTP encapsulation | [RFC 2637] |
7 | l2f | L2F encapsulation | [RFC 2341] |
8 | udp | UDP encapsulation | [RFC 8085] |
9 | atmp | ATMP encapsulation | [RFC 2107] |
10 | msdp | MSDP encapsulation | [RFC 3618] |
11 | sixToFour | 6to4 encapsulation | [RFC 3056] |
12 | sixOverFour | 6over4 encapsulation | [RFC 2529] |
13 | isatap | ISATAP encapsulation | [RFC 5214] |
14 | teredo | Teredo encapsulation | [RFC 4380] |
16 | softwireMesh | softwire mesh tunnel | [RFC 5565] |
17 | dsLite | DS-Lite tunnel | [RFC 6333] |
module: example-iftunnel-extension augment /if:interfaces/if:interface: +--rw remote-endpoint? inet:ipv6-address
module example-iftunnel-extension { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:example-iftunnel-extension"; prefix example; import ietf-inet-types { prefix inet; reference "RFC 6991: Common YANG Data Types, Section 4"; } import ietf-interfaces { prefix if; reference "RFC 8343: A YANG Data Model for Interface Management"; } import iana-tunnel-type { prefix iana-tunnel-type; reference "RFC 8675: A Tunnel Extension to the Interface Management YANG Module"; } organization "IETF Softwire Working Group"; contact "WG Web: <https://datatracker.ietf.org/wg/softwire/> WG List: <mailto:softwire@ietf.org> Author: Mohamed Boucadair <mailto:mohamed.boucadair@orange.com>"; description "This is an example YANG module to extend the Interface YANG module with tunnel-specific parameters. Copyright (c) 2019 IETF Trust and the persons identified as authors of the code. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Simplified BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info). This version of this YANG module is part of RFC 8675; see the RFC itself for full legal notices."; revision 2019-10-21 { description "Initial revision."; reference "RFC 8675: Tunnel Interface Types YANG Module"; } augment "/if:interfaces/if:interface" { when "derived-from(if:type, 'iana-tunnel-type:gre')"; description "Augments Interface module with specific tunnel parameters."; leaf remote-endpoint { type inet:ipv6-address; description "IPv6 address of the remote GRE endpoint."; } } }