1 <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-1">
2 <data xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">module ietf-ip {
4 namespace "urn:ietf:params:xml:ns:yang:ietf-ip";
7 import ietf-interfaces {
11 import ietf-inet-types {
15 import ietf-yang-types {
20 "IETF NETMOD (NETCONF Data Modeling Language) Working Group";
22 "WG Web: <http://tools.ietf.org/wg/netmod/>
23 WG List: <mailto:netmod@ietf.org>
25 WG Chair: Thomas Nadeau
26 <mailto:tnadeau@lucidvision.com>
28 WG Chair: Juergen Schoenwaelder
29 <mailto:j.schoenwaelder@jacobs-university.de>
31 Editor: Martin Bjorklund
32 <mailto:mbj@tail-f.com>";
34 "This module contains a collection of YANG definitions for
35 configuring IP implementations.
37 Copyright (c) 2014 IETF Trust and the persons identified as
38 authors of the code. All rights reserved.
40 Redistribution and use in source and binary forms, with or
41 without modification, is permitted pursuant to, and subject
42 to the license terms contained in, the Simplified BSD License
43 set forth in Section 4.c of the IETF Trust's Legal Provisions
44 Relating to IETF Documents
45 (http://trustee.ietf.org/license-info).
47 This version of this YANG module is part of RFC 7277; see
48 the RFC itself for full legal notices.";
54 "RFC 7277: A YANG Data Model for IP Management";
57 feature ipv4-non-contiguous-netmasks {
59 "Indicates support for configuring non-contiguous
63 feature ipv6-privacy-autoconf {
65 "Indicates support for Privacy Extensions for Stateless Address
66 Autoconfiguration in IPv6.";
68 "RFC 4941: Privacy Extensions for Stateless Address
69 Autoconfiguration in IPv6";
72 typedef ip-address-origin {
77 "None of the following.";
82 "Indicates that the address has been statically
83 configured - for example, using NETCONF or a Command Line
89 "Indicates an address that has been assigned to this
90 system by a DHCP server.";
95 "Indicates an address created by IPv6 stateless
96 autoconfiguration that embeds a link-layer address in its
97 interface identifier.";
102 "Indicates an address chosen by the system at
104 random, e.g., an IPv4 address within 169.254/16, an
105 RFC 4941 temporary address, or an RFC 7217 semantically
108 "RFC 4941: Privacy Extensions for Stateless Address
109 Autoconfiguration in IPv6
110 RFC 7217: A Method for Generating Semantically Opaque
111 Interface Identifiers with IPv6 Stateless
112 Address Autoconfiguration (SLAAC)";
116 "The origin of an address.";
119 typedef neighbor-origin {
124 "None of the following.";
129 "Indicates that the mapping has been statically
130 configured - for example, using NETCONF or a Command Line
136 "Indicates that the mapping has been dynamically resolved
137 using, e.g., IPv4 ARP or the IPv6 Neighbor Discovery
142 "The origin of a neighbor entry.";
145 augment "/if:interfaces/if:interface" {
147 "Parameters for configuring IP on interfaces.
149 If an interface is not capable of running IP, the server
150 must not allow the client to configure these parameters.";
152 presence "Enables IPv4 unless the 'enabled' leaf
153 (which defaults to 'true') is set to 'false'";
155 "Parameters for the IPv4 address family.";
160 "Controls whether IPv4 is enabled or disabled on this
161 interface. When IPv4 is enabled, this interface is
162 connected to an IPv4 stack, and the interface can send
163 and receive IPv4 packets.";
170 "Controls IPv4 packet forwarding of datagrams received by,
171 but not addressed to, this interface. IPv4 routers
172 forward datagrams. IPv4 hosts do not (except those
173 source-routed via the host).";
182 "The size, in octets, of the largest IPv4 packet that the
183 interface will send and receive.
185 The server may restrict the allowed values for this leaf,
186 depending on the interface's type.
188 If this leaf is not configured, the operationally used MTU
189 depends on the interface's type.";
191 "RFC 791: Internet Protocol";
197 "The list of configured IPv4 addresses on the interface.";
199 type inet:ipv4-address-no-zone;
201 "The IPv4 address on the interface.";
207 "The subnet can be specified as a prefix-length, or,
208 if the server supports non-contiguous netmasks, as
215 "The length of the subnet prefix.";
219 if-feature "ipv4-non-contiguous-netmasks";
220 type yang:dotted-quad;
222 "The subnet specified as a netmask.";
230 "A list of mappings from IPv4 addresses to
231 link-layer addresses.
233 Entries in this list are used as static entries in the
236 "RFC 826: An Ethernet Address Resolution Protocol";
238 type inet:ipv4-address-no-zone;
240 "The IPv4 address of the neighbor node.";
243 leaf link-layer-address {
244 type yang:phys-address;
247 "The link-layer address of the neighbor node.";
253 presence "Enables IPv6 unless the 'enabled' leaf
254 (which defaults to 'true') is set to 'false'";
256 "Parameters for the IPv6 address family.";
261 "Controls whether IPv6 is enabled or disabled on this
262 interface. When IPv6 is enabled, this interface is
263 connected to an IPv6 stack, and the interface can send
264 and receive IPv6 packets.";
271 "Controls IPv6 packet forwarding of datagrams received by,
272 but not addressed to, this interface. IPv6 routers
273 forward datagrams. IPv6 hosts do not (except those
274 source-routed via the host).";
276 "RFC 4861: Neighbor Discovery for IP version 6 (IPv6)
277 Section 6.2.1, IsRouter";
286 "The size, in octets, of the largest IPv6 packet that the
287 interface will send and receive.
289 The server may restrict the allowed values for this leaf,
290 depending on the interface's type.
292 If this leaf is not configured, the operationally used MTU
293 depends on the interface's type.";
295 "RFC 2460: Internet Protocol, Version 6 (IPv6) Specification
302 "The list of configured IPv6 addresses on the interface.";
304 type inet:ipv6-address-no-zone;
306 "The IPv6 address on the interface.";
315 "The length of the subnet prefix.";
322 "A list of mappings from IPv6 addresses to
323 link-layer addresses.
325 Entries in this list are used as static entries in the
328 "RFC 4861: Neighbor Discovery for IP version 6 (IPv6)";
330 type inet:ipv6-address-no-zone;
332 "The IPv6 address of the neighbor node.";
335 leaf link-layer-address {
336 type yang:phys-address;
339 "The link-layer address of the neighbor node.";
343 leaf dup-addr-detect-transmits {
347 "The number of consecutive Neighbor Solicitation messages
348 sent while performing Duplicate Address Detection on a
349 tentative address. A value of zero indicates that
350 Duplicate Address Detection is not performed on
351 tentative addresses. A value of one indicates a single
352 transmission with no follow-up retransmissions.";
354 "RFC 4862: IPv6 Stateless Address Autoconfiguration";
359 "Parameters to control the autoconfiguration of IPv6
360 addresses, as described in RFC 4862.";
362 "RFC 4862: IPv6 Stateless Address Autoconfiguration";
363 leaf create-global-addresses {
367 "If enabled, the host creates global addresses as
368 described in RFC 4862.";
370 "RFC 4862: IPv6 Stateless Address Autoconfiguration
374 leaf create-temporary-addresses {
375 if-feature "ipv6-privacy-autoconf";
379 "If enabled, the host creates temporary addresses as
380 described in RFC 4941.";
382 "RFC 4941: Privacy Extensions for Stateless Address
383 Autoconfiguration in IPv6";
386 leaf temporary-valid-lifetime {
387 if-feature "ipv6-privacy-autoconf";
392 "The time period during which the temporary address
395 "RFC 4941: Privacy Extensions for Stateless Address
396 Autoconfiguration in IPv6
397 - TEMP_VALID_LIFETIME";
400 leaf temporary-preferred-lifetime {
401 if-feature "ipv6-privacy-autoconf";
406 "The time period during which the temporary address is
409 "RFC 4941: Privacy Extensions for Stateless Address
410 Autoconfiguration in IPv6
411 - TEMP_PREFERRED_LIFETIME";
417 augment "/if:interfaces-state/if:interface" {
419 "Data nodes for the operational state of IP on interfaces.";
421 presence "Present if IPv4 is enabled on this interface";
424 "Interface-specific parameters for the IPv4 address family.";
428 "Indicates whether IPv4 packet forwarding is enabled or
429 disabled on this interface.";
438 "The size, in octets, of the largest IPv4 packet that the
439 interface will send and receive.";
441 "RFC 791: Internet Protocol";
447 "The list of IPv4 addresses on the interface.";
449 type inet:ipv4-address-no-zone;
451 "The IPv4 address on the interface.";
456 "The subnet can be specified as a prefix-length, or,
457 if the server supports non-contiguous netmasks, as
464 "The length of the subnet prefix.";
468 if-feature "ipv4-non-contiguous-netmasks";
469 type yang:dotted-quad;
471 "The subnet specified as a netmask.";
476 type ip-address-origin;
478 "The origin of this address.";
485 "A list of mappings from IPv4 addresses to
486 link-layer addresses.
488 This list represents the ARP Cache.";
490 "RFC 826: An Ethernet Address Resolution Protocol";
492 type inet:ipv4-address-no-zone;
494 "The IPv4 address of the neighbor node.";
497 leaf link-layer-address {
498 type yang:phys-address;
500 "The link-layer address of the neighbor node.";
504 type neighbor-origin;
506 "The origin of this neighbor entry.";
512 presence "Present if IPv6 is enabled on this interface";
515 "Parameters for the IPv6 address family.";
520 "Indicates whether IPv6 packet forwarding is enabled or
521 disabled on this interface.";
523 "RFC 4861: Neighbor Discovery for IP version 6 (IPv6)
524 Section 6.2.1, IsRouter";
533 "The size, in octets, of the largest IPv6 packet that the
534 interface will send and receive.";
536 "RFC 2460: Internet Protocol, Version 6 (IPv6) Specification
543 "The list of IPv6 addresses on the interface.";
545 type inet:ipv6-address-no-zone;
547 "The IPv6 address on the interface.";
556 "The length of the subnet prefix.";
560 type ip-address-origin;
562 "The origin of this address.";
570 "This is a valid address that can appear as the
571 destination or source address of a packet.";
576 "This is a valid but deprecated address that should
577 no longer be used as a source address in new
578 communications, but packets addressed to such an
579 address are processed as expected.";
584 "This isn't a valid address, and it shouldn't appear
585 as the destination or source address of a packet.";
587 enum "inaccessible" {
590 "The address is not accessible because the interface
591 to which this address is assigned is not
597 "The status cannot be determined for some reason.";
602 "The uniqueness of the address on the link is being
603 verified. Addresses in this state should not be
604 used for general communication and should only be
605 used to determine the uniqueness of the address.";
610 "The address has been determined to be non-unique on
611 the link and so must not be used.";
616 "The address is available for use, subject to
617 restrictions, while its uniqueness on a link is
622 "The status of an address. Most of the states correspond
623 to states from the IPv6 Stateless Address
624 Autoconfiguration protocol.";
626 "RFC 4293: Management Information Base for the
627 Internet Protocol (IP)
629 RFC 4862: IPv6 Stateless Address Autoconfiguration";
636 "A list of mappings from IPv6 addresses to
637 link-layer addresses.
639 This list represents the Neighbor Cache.";
641 "RFC 4861: Neighbor Discovery for IP version 6 (IPv6)";
643 type inet:ipv6-address-no-zone;
645 "The IPv6 address of the neighbor node.";
648 leaf link-layer-address {
649 type yang:phys-address;
651 "The link-layer address of the neighbor node.";
655 type neighbor-origin;
657 "The origin of this neighbor entry.";
663 "Indicates that the neighbor node acts as a router.";
671 "Address resolution is in progress, and the link-layer
672 address of the neighbor has not yet been
678 "Roughly speaking, the neighbor is known to have been
679 reachable recently (within tens of seconds ago).";
684 "The neighbor is no longer known to be reachable, but
685 until traffic is sent to the neighbor no attempt
686 should be made to verify its reachability.";
691 "The neighbor is no longer known to be reachable, and
692 traffic has recently been sent to the neighbor.
693 Rather than probe the neighbor immediately, however,
694 delay sending probes for a short while in order to
695 give upper-layer protocols a chance to provide
696 reachability confirmation.";
701 "The neighbor is no longer known to be reachable, and
702 unicast Neighbor Solicitation probes are being sent
703 to verify reachability.";
707 "The Neighbor Unreachability Detection state of this
710 "RFC 4861: Neighbor Discovery for IP version 6 (IPv6)