draft-ietf-rtgwg-yang-rip-06.txt   draft-ietf-rtgwg-yang-rip-07.txt 
Network Working Group X. Liu Network Working Group X. Liu
Internet-Draft Jabil Internet-Draft Jabil
Intended status: Standards Track P. Sarda Intended status: Standards Track P. Sarda
Expires: April 29, 2018 Ericsson Expires: June 16, 2018 Ericsson
V. Choudhary V. Choudhary
Individual Individual
October 26, 2017 December 13, 2017
A YANG Data Model for Routing Information Protocol (RIP) A YANG Data Model for Routing Information Protocol (RIP)
draft-ietf-rtgwg-yang-rip-06 draft-ietf-rtgwg-yang-rip-07
Abstract Abstract
This document describes a data model for the Routing Information This document describes a data model for the Routing Information
Protocol (RIP). Both RIP version 2 and RIPng are covered. Protocol (RIP). Both RIP version 2 and RIPng are covered.
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 34 skipping to change at page 1, line 34
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 April 29, 2018. This Internet-Draft will expire on June 16, 2018.
Copyright Notice Copyright Notice
Copyright (c) 2017 IETF Trust and the persons identified as the Copyright (c) 2017 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 3, line 45 skipping to change at page 3, line 45
corresponding YANG module, as shown in Table 1. corresponding YANG module, as shown in Table 1.
+-----------+-----------------+-----------------------------------+ +-----------+-----------------+-----------------------------------+
| Prefix | YANG module | Reference | | Prefix | YANG module | Reference |
+-----------+-----------------+-----------------------------------+ +-----------+-----------------+-----------------------------------+
| yang | ietf-yang-types | [RFC6991] | | yang | ietf-yang-types | [RFC6991] |
| inet | ietf-inet-types | [RFC6991] | | inet | ietf-inet-types | [RFC6991] |
| if | ietf-interfaces | [I-D.bjorklund-netmod-rfc7223bis] | | if | ietf-interfaces | [I-D.bjorklund-netmod-rfc7223bis] |
| ip | ietf-ip | [I-D.bjorklund-netmod-rfc7277bis] | | ip | ietf-ip | [I-D.bjorklund-netmod-rfc7277bis] |
| rt | ietf-routing | [I-D.acee-netmod-rfc8022bis] | | rt | ietf-routing | [I-D.acee-netmod-rfc8022bis] |
| bfd | ietf-bfd | [I-D.ietf-bfd-yang] | | bfd-types | ietf-bfd-types | [I-D.ietf-bfd-yang] |
| isis | ietf-isis | [I-D.ietf-isis-yang-isis-cfg] | | isis | ietf-isis | [I-D.ietf-isis-yang-isis-cfg] |
| key-chain | ietf-key-chain | [RFC8177] | | key-chain | ietf-key-chain | [RFC8177] |
| ospf | ietf-ospf | [I-D.ietf-ospf-yang] | | ospf | ietf-ospf | [I-D.ietf-ospf-yang] |
+-----------+-----------------+-----------------------------------+ +-----------+-----------------+-----------------------------------+
Table 1: Prefixes and Corresponding YANG Modules Table 1: Prefixes and Corresponding YANG Modules
2. Design of the Data Model 2. Design of the Data Model
2.1. Scope of the Model 2.1. Scope of the Model
skipping to change at page 9, line 19 skipping to change at page 9, line 19
| +--rw interface if:interface-ref | +--rw interface if:interface-ref
| +--rw authentication | +--rw authentication
| | +--rw (auth-type-selection)? | | +--rw (auth-type-selection)?
| | +--:(auth-key-chain) | | +--:(auth-key-chain)
| | | +--rw key-chain? | | | +--rw key-chain?
key-chain:key-chain-ref key-chain:key-chain-ref
| | +--:(auth-key) | | +--:(auth-key)
| | +--rw key? string | | +--rw key? string
| | +--rw crypto-algorithm? identityref | | +--rw crypto-algorithm? identityref
| +--rw bfd {bfd}? | +--rw bfd {bfd}?
| | +--rw enabled? boolean | | +--rw enable? boolean
| | +--rw local-multiplier? multiplier
| | +--rw (interval-config-type)?
| | +--:(tx-rx-intervals)
| | | +--rw desired-min-tx-interval uint32
| | | +--rw required-min-rx-interval uint32
| | +--:(single-interval)
| | +--rw min-interval uint32
| +--rw cost? uint8 | +--rw cost? uint8
| +--rw neighbors {explicit-neighbors}? | +--rw neighbors {explicit-neighbors}?
| | +--rw neighbor* [address] | | +--rw neighbor* [address]
| | +--rw address inet:ip-address | | +--rw address inet:ip-address
| +--rw no-listen? empty | +--rw no-listen? empty
| +--rw originate-default-route | +--rw originate-default-route
| | +--rw enabled? boolean | | +--rw enabled? boolean
| | +--rw route-policy? route-policy-ref | | +--rw route-policy? route-policy-ref
| +--rw passive? empty | +--rw passive? empty
| +--rw split-horizon? enumeration | +--rw split-horizon? enumeration
skipping to change at page 11, line 15 skipping to change at page 11, line 22
+--ro responses-sent? yang:counter32 +--ro responses-sent? yang:counter32
rpcs: rpcs:
+---x clear-rip-route +---x clear-rip-route
+---w input +---w input
+---w rip-instance? -> /rt:routing +---w rip-instance? -> /rt:routing
/control-plane-protocols/control-plane-protocol/name /control-plane-protocols/control-plane-protocol/name
4. YANG Module 4. YANG Module
<CODE BEGINS> file "ietf-rip@2017-10-25.yang" <CODE BEGINS> file "ietf-rip@2017-12-05.yang"
module ietf-rip { module ietf-rip {
yang-version 1.1; yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-rip"; namespace "urn:ietf:params:xml:ns:yang:ietf-rip";
prefix rip; prefix rip;
import ietf-inet-types { import ietf-inet-types {
prefix "inet"; prefix "inet";
} }
skipping to change at page 11, line 46 skipping to change at page 12, line 7
} }
import ietf-routing { import ietf-routing {
prefix "rt"; prefix "rt";
} }
import ietf-key-chain { import ietf-key-chain {
prefix "key-chain"; prefix "key-chain";
} }
import ietf-bfd-types {
prefix "bfd-types";
}
import ietf-ospf { import ietf-ospf {
prefix "ospf"; prefix "ospf";
} }
import ietf-isis { import ietf-isis {
prefix "isis"; prefix "isis";
} }
organization "IETF Routing Area Working Group (rtgwg)"; organization "IETF Routing Area Working Group (rtgwg)";
contact contact
"WG Web: <http://tools.ietf.org/wg/rgtwg/> "WG Web: <http://tools.ietf.org/wg/rgtwg/>
WG List: <mailto:rgtwg@ietf.org> WG List: <mailto:rgtwg@ietf.org>
skipping to change at page 12, line 43 skipping to change at page 13, line 6
Copyright (c) 2016 IETF Trust and the persons identified as Copyright (c) 2016 IETF Trust and the persons identified as
authors of the code. All rights reserved. authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject to without modification, is permitted pursuant to, and subject to
the license terms contained in, the Simplified BSD License set the license terms contained in, the Simplified BSD License set
forth in Section 4.c of the IETF Trust's Legal Provisions forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents Relating to IETF Documents
(http://trustee.ietf.org/license-info)."; (http://trustee.ietf.org/license-info).";
revision 2017-10-25 { revision 2017-12-05 {
description description
"Initial revision."; "Initial revision.";
reference reference
"RFC 2453: RIP Version 2. "RFC 2453: RIP Version 2.
RFC 2080: RIPng for IPv6. RFC 2080: RIPng for IPv6.
RFC 1724: RIP Version 2 MIB Extension."; RFC 1724: RIP Version 2 MIB Extension.";
} }
/* /*
* Features * Features
*/ */
feature bfd { feature bfd {
description description
"This feature indicates that the RIP implementation on the "This feature indicates that the RIP implementation on the
system supports BFD (Bidirectional Forwarding Detection)."; system supports BFD (Bidirectional Forwarding Detection).";
} }
feature bfd-protocol-parameters {
description
"BFD (Bidirectional Forwarding Detection) protocol specific
parameters support on a RIP interface.";
}
feature explicit-neighbors { feature explicit-neighbors {
description description
"This feature indicates that the system supports explicit "This feature indicates that the system supports explicit
neighbor configuration on a RIP interface."; neighbor configuration on a RIP interface.";
} }
feature global-statistics { feature global-statistics {
description description
"This feature indicates that the system supports collecting "This feature indicates that the system supports collecting
global statistic data related to RIP."; global statistic data related to RIP.";
skipping to change at page 16, line 36 skipping to change at page 16, line 41
description description
"Redistributes routes from the specified IS-IS routing "Redistributes routes from the specified IS-IS routing
instance into the RIP routing instance."; instance into the RIP routing instance.";
} }
leaf level { leaf level {
type enumeration { type enumeration {
enum 1 { enum 1 {
description "IS-IS level 1 routes."; description "IS-IS level 1 routes.";
} }
enum 2 { enum 2 {
description "IS-IS level 1 routes."; description "IS-IS level 2 routes.";
} }
enum 1-2 { enum 1-2 {
description "IS-IS level 1-2 routes."; description "IS-IS level 1-2 routes.";
} }
} }
description description
"IS-IS level."; "IS-IS level.";
} }
uses redistribute-route-policy-attributes; uses redistribute-route-policy-attributes;
} }
skipping to change at page 26, line 32 skipping to change at page 26, line 37
description description
"Cryptographic algorithm associated with key."; "Cryptographic algorithm associated with key.";
} }
} }
} }
} }
container bfd { container bfd {
if-feature bfd; if-feature bfd;
description "BFD configuration."; description "BFD configuration.";
leaf enabled { uses bfd-types:client-cfg-parms;
type boolean;
default false;
description
"'true' if BFD is enabled for the interface.";
}
} }
leaf cost { leaf cost {
type uint8 { type uint8 {
range 1..16; range 1..16;
} }
default 1; default 1;
description description
"Interface cost."; "Interface cost.";
} }
skipping to change at page 37, line 18 skipping to change at page 37, line 18
progress), August 2017. progress), August 2017.
[I-D.bjorklund-netmod-rfc7277bis] [I-D.bjorklund-netmod-rfc7277bis]
Bjorklund, M., "A YANG Data Model for IP Management", Bjorklund, M., "A YANG Data Model for IP Management",
draft-bjorklund-netmod-rfc7277bis-00 (work in progress), draft-bjorklund-netmod-rfc7277bis-00 (work in progress),
August 2017. August 2017.
[I-D.acee-netmod-rfc8022bis] [I-D.acee-netmod-rfc8022bis]
Lhotka, L., Lindem, A., and Y. Qu, "A YANG Data Model for Lhotka, L., Lindem, A., and Y. Qu, "A YANG Data Model for
Routing Management (NDMA Version)", draft-acee-netmod- Routing Management (NDMA Version)", draft-acee-netmod-
rfc8022bis-05 (work in progress), October 2017. rfc8022bis-06 (work in progress), October 2017.
[I-D.ietf-bfd-yang] [I-D.ietf-bfd-yang]
Rahman, R., Zheng, L., Jethanandani, M., Networks, J., and Rahman, R., Zheng, L., Jethanandani, M., Networks, J., and
G. Mirsky, "YANG Data Model for Bidirectional Forwarding G. Mirsky, "YANG Data Model for Bidirectional Forwarding
Detection (BFD)", draft-ietf-bfd-yang-06 (work in Detection (BFD)", draft-ietf-bfd-yang-07 (work in
progress), June 2017. progress), October 2017.
[I-D.ietf-isis-yang-isis-cfg] [I-D.ietf-isis-yang-isis-cfg]
Litkowski, S., Yeung, D., Lindem, A., Zhang, Z., and L. Litkowski, S., Yeung, D., Lindem, A., Zhang, Z., and L.
Lhotka, "YANG Data Model for IS-IS protocol", draft-ietf- Lhotka, "YANG Data Model for IS-IS protocol", draft-ietf-
isis-yang-isis-cfg-18 (work in progress), July 2017. isis-yang-isis-cfg-19 (work in progress), November 2017.
[I-D.ietf-ospf-yang] [I-D.ietf-ospf-yang]
Yeung, D., Qu, Y., Zhang, Z., Chen, I., and A. Lindem, Yeung, D., Qu, Y., Zhang, Z., Chen, I., and A. Lindem,
"Yang Data Model for OSPF Protocol", draft-ietf-ospf- "Yang Data Model for OSPF Protocol", draft-ietf-ospf-
yang-08 (work in progress), July 2017. yang-09 (work in progress), October 2017.
[I-D.ietf-netmod-revised-datastores] [I-D.ietf-netmod-revised-datastores]
Bjorklund, M., Schoenwaelder, J., Shafer, P., Watsen, K., Bjorklund, M., Schoenwaelder, J., Shafer, P., Watsen, K.,
and R. Wilton, "Network Management Datastore and R. Wilton, "Network Management Datastore
Architecture", draft-ietf-netmod-revised-datastores-05 Architecture", draft-ietf-netmod-revised-datastores-07
(work in progress), October 2017. (work in progress), November 2017.
7.2. Informative References 7.2. Informative References
[RFC1724] Malkin, G. and F. Baker, "RIP Version 2 MIB Extension", [RFC1724] Malkin, G. and F. Baker, "RIP Version 2 MIB Extension",
RFC 1724, DOI 10.17487/RFC1724, November 1994, RFC 1724, DOI 10.17487/RFC1724, November 1994,
<https://www.rfc-editor.org/info/rfc1724>. <https://www.rfc-editor.org/info/rfc1724>.
[RFC6536] Bierman, A. and M. Bjorklund, "Network Configuration [RFC6536] Bierman, A. and M. Bjorklund, "Network Configuration
Protocol (NETCONF) Access Control Model", RFC 6536, Protocol (NETCONF) Access Control Model", RFC 6536,
DOI 10.17487/RFC6536, March 2012, <https://www.rfc- DOI 10.17487/RFC6536, March 2012, <https://www.rfc-
skipping to change at page 38, line 17 skipping to change at page 38, line 17
<https://www.rfc-editor.org/info/rfc7951>. <https://www.rfc-editor.org/info/rfc7951>.
[I-D.ietf-netconf-rfc5277bis] [I-D.ietf-netconf-rfc5277bis]
Clemm, A., Prieto, A., Voit, E., Nilsen-Nygaard, E., Clemm, A., Prieto, A., Voit, E., Nilsen-Nygaard, E.,
Tripathy, A., Chisholm, S., and H. Trevino, "Subscribing Tripathy, A., Chisholm, S., and H. Trevino, "Subscribing
to Event Notifications", draft-ietf-netconf-rfc5277bis-01 to Event Notifications", draft-ietf-netconf-rfc5277bis-01
(work in progress), October 2016. (work in progress), October 2016.
[I-D.ietf-netconf-yang-push] [I-D.ietf-netconf-yang-push]
Clemm, A., Voit, E., Prieto, A., Tripathy, A., Nilsen- Clemm, A., Voit, E., Prieto, A., Tripathy, A., Nilsen-
Nygaard, E., Bierman, A., and B. Lengyel, "Subscribing to Nygaard, E., Bierman, A., and B. Lengyel, "YANG Datastore
YANG datastore push updates", draft-ietf-netconf-yang- Subscription", draft-ietf-netconf-yang-push-11 (work in
push-10 (work in progress), October 2017. progress), October 2017.
[I-D.ietf-netmod-rfc6087bis] [I-D.ietf-netmod-rfc6087bis]
Bierman, A., "Guidelines for Authors and Reviewers of YANG Bierman, A., "Guidelines for Authors and Reviewers of YANG
Data Model Documents", draft-ietf-netmod-rfc6087bis-14 Data Model Documents", draft-ietf-netmod-rfc6087bis-14
(work in progress), September 2017. (work in progress), September 2017.
Appendix A. Data Tree Example Appendix A. Data Tree Example
This section contains an example of an instance data tree in the JSON This section contains an example of an instance data tree in the JSON
encoding [RFC7951], containing both configuration and state data. encoding [RFC7951], containing both configuration and state data.
+---------------------+ +---------------------+
| | | |
| Router 203.0.113.1 | | Router 203.0.113.1 |
| | | |
+----------+----------+ +----------+----------+
|eth0 |eth1
|192.0.2.1 |192.0.2.1/24
| |
| |
|192.0.2.2 |192.0.2.2/24
+----------+----------+ +----------+----------+
| | | | |
| Another Router | | Another Router +---------| 198.51.100.0/24
| | | | |
+---------------------+ +---------------------+
The configuration instance data tree for Router 203.0.113.1 in the The configuration instance data tree for Router 203.0.113.1 in the
above figure could be as follows: above figure could be as follows:
{ {
"ietf-interfaces:interfaces": { "ietf-interfaces:interfaces": {
"interface": [ "interface": [
{ {
"name": "eth1", "name": "eth1",
skipping to change at page 42, line 34 skipping to change at page 42, line 34
"route-type": "connected", "route-type": "connected",
"metric": 0, "metric": 0,
"expire-time": 22 "expire-time": 22
}, },
{ {
"ipv4-prefix": "198.51.100.0/24", "ipv4-prefix": "198.51.100.0/24",
"next-hop": "192.0.2.2", "next-hop": "192.0.2.2",
"interface": "eth1", "interface": "eth1",
"redistributed": false, "redistributed": false,
"route-type": "rip", "route-type": "rip",
"metric": 2, "metric": 1,
"expire-time": 82 "expire-time": 82
} }
] ]
} }
}, },
"statistics": { "statistics": {
"discontinuity-time": "2016-10-24T17:11:27+02:00", "discontinuity-time": "2016-10-24T17:11:27+02:00",
"requests-rcvd": 523, "requests-rcvd": 523,
"requests-sent": 262, "requests-sent": 262,
"responses-rcvd": 261, "responses-rcvd": 261,
 End of changes. 24 change blocks. 
38 lines changed or deleted 40 lines changed or added

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