--- 1/draft-ietf-netmod-ip-cfg-08.txt 2013-02-11 11:56:41.883707393 +0100 +++ 2/draft-ietf-netmod-ip-cfg-09.txt 2013-02-11 11:56:41.907707241 +0100 @@ -1,18 +1,18 @@ Network Working Group M. Bjorklund Internet-Draft Tail-f Systems -Intended status: Standards Track February 6, 2013 -Expires: August 10, 2013 +Intended status: Standards Track February 11, 2013 +Expires: August 15, 2013 A YANG Data Model for IP Management - draft-ietf-netmod-ip-cfg-08 + draft-ietf-netmod-ip-cfg-09 Abstract This document defines a YANG data model for management of IP implementations. Status of this Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. @@ -20,21 +20,21 @@ Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at http://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." - This Internet-Draft will expire on August 10, 2013. + This Internet-Draft will expire on August 15, 2013. Copyright Notice Copyright (c) 2013 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents @@ -105,38 +105,38 @@ with a colon (":"). +--rw if:interfaces +--rw if:interface [name] ... +--rw ipv4? | +--rw enabled? boolean | +--rw forwarding? boolean | +--rw mtu? uint16 | +--rw address [ip] - | | +--rw ip inet:ipv4-address - | | +--rw (subnet)? + | | +--rw ip inet:ipv4-address-no-zone + | | +--rw (subnet) | | +--:(prefix-length) | | | +--rw ip:prefix-length? uint8 | | +--:(netmask) - | | +--rw ip:netmask? inet:ipv4-address + | | +--rw ip:netmask? yang:dotted-quad | +--rw neighbor [ip] - | +--rw ip inet:ipv4-address + | +--rw ip inet:ipv4-address-no-zone | +--rw phys-address? yang:phys-address +--rw ipv6? +--rw enabled? boolean +--rw forwarding? boolean +--rw mtu? uint32 +--rw address [ip] - | +--rw ip inet:ipv6-address - | +--rw prefix-length? uint8 + | +--rw ip inet:ipv6-address-no-zone + | +--rw prefix-length uint8 +--rw neighbor [ip] - | +--rw ip inet:ipv6-address + | +--rw ip inet:ipv6-address-no-zone | +--rw phys-address? yang:phys-address +--rw dup-addr-detect-transmits? uint32 +--rw autoconf +--rw create-global-addresses? boolean +--rw create-temporary-addresses? boolean +--rw temporary-valid-lifetime? uint32 +--rw temporary-preferred-lifetime? uint32 The data model defines two containers, "ipv4" and "ipv6", representing the IPv4 and IPv6 address families. In each container, @@ -183,21 +183,21 @@ 4. IP configuration YANG Module This module imports typedefs from [I-D.ietf-netmod-rfc6021-bis] and [I-D.ietf-netmod-interfaces-cfg], and references [RFC0791], [RFC0826], [RFC2460], [RFC4861], [RFC4862], and [RFC4941]. RFC Ed.: update the date below with the date of RFC publication and remove this note. - file "ietf-ip@2013-02-06.yang" + file "ietf-ip@2013-02-11.yang" module ietf-ip { namespace "urn:ietf:params:xml:ns:yang:ietf-ip"; prefix ip; import ietf-interfaces { prefix if; } import ietf-inet-types { @@ -238,21 +238,21 @@ (http://trustee.ietf.org/license-info). This version of this YANG module is part of RFC XXXX; see the RFC itself for full legal notices."; // RFC Ed.: replace XXXX with actual RFC number and remove this // note. // RFC Ed.: update the date below with the date of RFC publication // and remove this note. - revision 2013-02-06 { + revision 2013-02-11 { description "Initial revision."; reference "RFC XXXX: A YANG Data Model for IP Management"; } /* Features */ feature ipv4-non-contiguous-netmasks { description @@ -318,32 +318,29 @@ key "ip"; description "The list of IPv4 addresses on the interface."; leaf ip { type inet:ipv4-address-no-zone; description "The IPv4 address on the interface."; } choice subnet { - default prefix-length; + mandatory true; description "The subnet can be specified as a prefix-length, or, if the server supports non-contiguous netmasks, as - a netmask. - - The default subnet is a prefix-length of 32."; + a netmask."; leaf prefix-length { type uint8 { range "0..32"; } - default 32; description "The length of the subnet prefix."; } leaf netmask { if-feature ipv4-non-contiguous-netmasks; type yang:dotted-quad; description "The subnet specified as a netmask."; } } @@ -418,22 +415,23 @@ "The list of IPv6 addresses on the interface."; leaf ip { type inet:ipv6-address-no-zone; description "The IPv6 address on the interface."; } leaf prefix-length { type uint8 { range "0..128"; + } - default 128; + mandatory true; description "The length of the subnet prefix."; } } list neighbor { key "ip"; description "A list of mappings from IPv6 addresses to physical addresses.