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

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/