| rfc8695v2.txt | rfc8695.txt | |||
|---|---|---|---|---|
| Internet Engineering Task Force (IETF) X. Liu | Internet Engineering Task Force (IETF) X. Liu | |||
| Request for Comments: 8695 Volta Networks | Request for Comments: 8695 Volta Networks | |||
| Category: Standards Track P. Sarda | Category: Standards Track P. Sarda | |||
| ISSN: 2070-1721 Ericsson | ISSN: 2070-1721 Ericsson | |||
| V. Choudhary | V. Choudhary | |||
| Individual | Individual | |||
| January 2020 | February 2020 | |||
| A YANG Data Model for the Routing Information Protocol (RIP) | A YANG Data Model for the Routing Information Protocol (RIP) | |||
| Abstract | Abstract | |||
| This document describes a data model for the management of the | This document describes a data model for the management of the | |||
| Routing Information Protocol (RIP). Both RIP version 2 and RIPng are | Routing Information Protocol (RIP). Both RIP version 2 and RIPng are | |||
| covered. The data model includes definitions for configuration, | covered. The data model includes definitions for configuration, | |||
| operational state, and Remote Procedure Calls (RPCs). | operational state, and Remote Procedure Calls (RPCs). | |||
| skipping to change at line 461 ¶ | skipping to change at line 461 ¶ | |||
| +--ro responses-rcvd? yang:counter32 | +--ro responses-rcvd? yang:counter32 | |||
| +--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? leafref | +---w rip-instance? leafref | |||
| 4. YANG Module | 4. YANG Module | |||
| <CODE BEGINS> file "ietf-rip@2019-12-02.yang" | <CODE BEGINS> file "ietf-rip@2020-01-21.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; | |||
| } | } | |||
| import ietf-yang-types { | import ietf-yang-types { | |||
| prefix yang; | prefix yang; | |||
| skipping to change at line 498 ¶ | skipping to change at line 498 ¶ | |||
| import ietf-ospf { | import ietf-ospf { | |||
| prefix ospf; | prefix ospf; | |||
| } | } | |||
| import ietf-isis { | import ietf-isis { | |||
| prefix isis; | prefix isis; | |||
| } | } | |||
| organization | organization | |||
| "IETF Routing Area Working Group (rtgwg)"; | "IETF Routing Area Working Group (rtgwg)"; | |||
| contact | contact | |||
| "WG Web: <http://tools.ietf.org/wg/rgtwg/> | "WG Web: <https://datatracker.ietf.org/wg/rtgwg/> | |||
| WG List: <mailto:rgtwg@ietf.org> | WG List: <mailto:rgtwg@ietf.org> | |||
| Editor: Xufeng Liu | Editor: Xufeng Liu | |||
| <mailto:xufeng_liu@jabil.com> | <mailto:xufeng.liu.ietf@gmail.com> | |||
| Editor: Prateek Sarda | Editor: Prateek Sarda | |||
| <mailto:prateek.sarda@ericsson.com> | <mailto:prateek.sarda@ericsson.com> | |||
| Editor: Vikram Choudhary | Editor: Vikram Choudhary | |||
| <mailto:vikschw@gmail.com>"; | <mailto:vikschw@gmail.com>"; | |||
| description | description | |||
| "This YANG module defines a model for managing Routing | "This YANG module defines a model for managing Routing | |||
| Information Protocol (RIP), including RIP version 2 and RIPng. | Information Protocol (RIP), including RIP version 2 and RIPng. | |||
| Copyright (c) 2018 IETF Trust and the persons identified as | Copyright (c) 2020 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). | |||
| This version of this YANG module is part of RFC 8695; see the | This version of this YANG module is part of RFC 8695; see the | |||
| RFC itself for full legal notices."; | RFC itself for full legal notices."; | |||
| revision 2019-12-02 { | revision 2020-01-21 { | |||
| description | description | |||
| "Initial revision."; | "Initial revision."; | |||
| reference | reference | |||
| "RFC 8695: A YANG Data Model for Routing Information Protocol | "RFC 8695: A YANG Data Model for Routing Information Protocol | |||
| (RIP). | (RIP). | |||
| 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."; | |||
| } | } | |||
| skipping to change at line 940 ¶ | skipping to change at line 940 ¶ | |||
| units "seconds"; | units "seconds"; | |||
| default "240"; | default "240"; | |||
| description | description | |||
| "Interval before a route is flushed from the routing | "Interval before a route is flushed from the routing | |||
| table. This value must be larger than the value for the | table. This value must be larger than the value for the | |||
| invalid-interval argument."; | invalid-interval argument."; | |||
| } | } | |||
| } | } | |||
| // timers | // timers | |||
| } | } | |||
| // timers-container | ||||
| grouping global-attributes { | grouping global-attributes { | |||
| description | description | |||
| "Global configuration and state attributes."; | "Global configuration and state attributes."; | |||
| uses originate-default-route-container; | uses originate-default-route-container; | |||
| leaf default-metric { | leaf default-metric { | |||
| type uint8 { | type uint8 { | |||
| range "0..16"; | range "0..16"; | |||
| } | } | |||
| default "1"; | default "1"; | |||
| skipping to change at line 1033 ¶ | skipping to change at line 1033 ¶ | |||
| description | description | |||
| "Direction of the routing updates."; | "Direction of the routing updates."; | |||
| } | } | |||
| leaf if-name { | leaf if-name { | |||
| type if:interface-ref; | type if:interface-ref; | |||
| description | description | |||
| "Reference to an interface to which the prefix list is | "Reference to an interface to which the prefix list is | |||
| applied."; | applied."; | |||
| } | } | |||
| } | } | |||
| // distribute-list | ||||
| } | } | |||
| // distribute-lists | // distribute-lists | |||
| grouping route-attributes { | grouping route-attributes { | |||
| description | description | |||
| "Grouping for route attributes."; | "Grouping for route attributes."; | |||
| leaf redistributed { | leaf redistributed { | |||
| type boolean; | type boolean; | |||
| description | description | |||
| "Redistributed routes."; | "Redistributed routes."; | |||
| skipping to change at line 1104 ¶ | skipping to change at line 1105 ¶ | |||
| type boolean; | type boolean; | |||
| description | description | |||
| "The route is inactive."; | "The route is inactive."; | |||
| } | } | |||
| leaf flush-expire-before-holddown { | leaf flush-expire-before-holddown { | |||
| type boolean; | type boolean; | |||
| description | description | |||
| "The flush timer expired before holddown time."; | "The flush timer expired before holddown time."; | |||
| } | } | |||
| } | } | |||
| // route-attribute | // route-attributes | |||
| /* | /* | |||
| * Configuration data and operational state data nodes | * Configuration data and operational state data nodes | |||
| */ | */ | |||
| augment "/rt:routing/rt:control-plane-protocols/" | augment "/rt:routing/rt:control-plane-protocols/" | |||
| + "rt:control-plane-protocol" { | + "rt:control-plane-protocol" { | |||
| when "derived-from(rt:type, 'rip:rip')" { | when "derived-from(rt:type, 'rip:rip')" { | |||
| description | description | |||
| "This augment is only valid for a routing protocol instance | "This augment is only valid for a routing protocol instance | |||
| skipping to change at line 1560 ¶ | skipping to change at line 1563 ¶ | |||
| "The number of responses received by RIP."; | "The number of responses received by RIP."; | |||
| } | } | |||
| leaf responses-sent { | leaf responses-sent { | |||
| type yang:counter32; | type yang:counter32; | |||
| description | description | |||
| "The number of responses sent by RIP."; | "The number of responses sent by RIP."; | |||
| } | } | |||
| } | } | |||
| // statistics | // statistics | |||
| } | } | |||
| // container rip | // rip | |||
| } | } | |||
| /* | /* | |||
| * RPCs | * RPCs | |||
| */ | */ | |||
| rpc clear-rip-route { | rpc clear-rip-route { | |||
| description | description | |||
| "Clears RIP routes from the IP routing table and routes | "Clears RIP routes from the IP routing table and routes | |||
| redistributed into RIP for the specified RIP instance | redistributed into RIP for the specified RIP instance | |||
| skipping to change at line 1588 ¶ | skipping to change at line 1591 ¶ | |||
| description | description | |||
| "Instance name identifying a specific RIP instance. | "Instance name identifying a specific RIP instance. | |||
| This leaf is optional for the RPC. | This leaf is optional for the RPC. | |||
| If it is specified, the RPC will clear all routes in the | If it is specified, the RPC will clear all routes in the | |||
| specified RIP instance; | specified RIP instance; | |||
| if it is not specified, the RPC will clear all routes in | if it is not specified, the RPC will clear all routes in | |||
| all RIP instances."; | all RIP instances."; | |||
| } | } | |||
| } | } | |||
| } | } | |||
| // rcp clear-rip-route | // clear-rip-route | |||
| } | } | |||
| <CODE ENDS> | <CODE ENDS> | |||
| 5. IANA Considerations | 5. IANA Considerations | |||
| This document registers the following namespace URIs in the "IETF XML | This document registers the following namespace URIs in the "IETF XML | |||
| Registry" [RFC3688]: | Registry" [RFC3688]: | |||
| URI: urn:ietf:params:xml:ns:yang:ietf-rip | URI: urn:ietf:params:xml:ns:yang:ietf-rip | |||
| End of changes. 11 change blocks. | ||||
| 9 lines changed or deleted | 11 lines changed or added | |||
This html diff was produced by rfcdiff 1.45. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ | ||||