draft-ietf-netmod-rfc7277bis-01.txt | draft-ietf-netmod-rfc7277bis-02.txt | |||
---|---|---|---|---|
Network Working Group M. Bjorklund | Network Working Group M. Bjorklund | |||
Internet-Draft Tail-f Systems | Internet-Draft Tail-f Systems | |||
Obsoletes: rfc7277 (if approved) December 17, 2017 | Obsoletes: rfc7277 (if approved) January 9, 2018 | |||
Intended status: Standards Track | Intended status: Standards Track | |||
Expires: June 20, 2018 | Expires: July 13, 2018 | |||
A YANG Data Model for IP Management | A YANG Data Model for IP Management | |||
draft-ietf-netmod-rfc7277bis-01 | draft-ietf-netmod-rfc7277bis-02 | |||
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. The data model includes configuration and system | implementations. The data model includes configuration and system | |||
state. This document obsoletes RFC 7277. | state. This document obsoletes RFC 7277. | |||
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 | |||
skipping to change at page 1, line 33 ¶ | skipping to change at page 1, line 33 ¶ | |||
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 June 20, 2018. | This Internet-Draft will expire on July 13, 2018. | |||
Copyright Notice | Copyright Notice | |||
Copyright (c) 2017 IETF Trust and the persons identified as the | Copyright (c) 2018 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 | |||
carefully, as they describe your rights and restrictions with respect | carefully, as they describe your rights and restrictions with respect | |||
to this document. Code Components extracted from this document must | to this document. Code Components extracted from this document must | |||
include Simplified BSD License text as described in Section 4.e of | include Simplified BSD License text as described in Section 4.e of | |||
the Trust Legal Provisions and are provided without warranty as | the Trust Legal Provisions and are provided without warranty as | |||
skipping to change at page 2, line 20 ¶ | skipping to change at page 2, line 20 ¶ | |||
1.3. Tree Diagrams . . . . . . . . . . . . . . . . . . . . . . 3 | 1.3. Tree Diagrams . . . . . . . . . . . . . . . . . . . . . . 3 | |||
2. IP Data Model . . . . . . . . . . . . . . . . . . . . . . . . 4 | 2. IP Data Model . . . . . . . . . . . . . . . . . . . . . . . . 4 | |||
3. Relationship to the IP-MIB . . . . . . . . . . . . . . . . . 6 | 3. Relationship to the IP-MIB . . . . . . . . . . . . . . . . . 6 | |||
4. IP Management YANG Module . . . . . . . . . . . . . . . . . . 7 | 4. IP Management YANG Module . . . . . . . . . . . . . . . . . . 7 | |||
5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 26 | 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 26 | |||
6. Security Considerations . . . . . . . . . . . . . . . . . . . 26 | 6. Security Considerations . . . . . . . . . . . . . . . . . . . 26 | |||
7. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 27 | 7. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 27 | |||
8. References . . . . . . . . . . . . . . . . . . . . . . . . . 27 | 8. References . . . . . . . . . . . . . . . . . . . . . . . . . 27 | |||
8.1. Normative References . . . . . . . . . . . . . . . . . . 27 | 8.1. Normative References . . . . . . . . . . . . . . . . . . 27 | |||
8.2. Informative References . . . . . . . . . . . . . . . . . 29 | 8.2. Informative References . . . . . . . . . . . . . . . . . 29 | |||
Appendix A. Example: NETCONF <get-config> reply . . . . . . . . 29 | Appendix A. Example: NETCONF <get-config> reply . . . . . . . . 30 | |||
Appendix B. Example: NETCONF <get-data> Reply . . . . . . . . . 30 | Appendix B. Example: NETCONF <get-data> Reply . . . . . . . . . 30 | |||
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 32 | Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 32 | |||
1. Introduction | 1. Introduction | |||
This document defines a YANG [RFC7950] data model for management of | This document defines a YANG [RFC7950] data model for management of | |||
IP implementations. | IP implementations. | |||
The data model covers configuration of per-interface IPv4 and IPv6 | The data model covers configuration of per-interface IPv4 and IPv6 | |||
parameters, and mappings of IP addresses to link-layer addresses. It | parameters, and mappings of IP addresses to link-layer addresses. It | |||
skipping to change at page 7, line 46 ¶ | skipping to change at page 7, line 46 ¶ | |||
4. IP Management YANG Module | 4. IP Management YANG Module | |||
This module imports typedefs from [RFC6991] and | This module imports typedefs from [RFC6991] and | |||
[I-D.ietf-netmod-rfc7223bis], and it references [RFC0791], [RFC0826], | [I-D.ietf-netmod-rfc7223bis], and it references [RFC0791], [RFC0826], | |||
[RFC2460], [RFC4861], [RFC4862], [RFC4941] and [RFC7217]. | [RFC2460], [RFC4861], [RFC4862], [RFC4941] and [RFC7217]. | |||
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@2017-12-16.yang" | <CODE BEGINS> file "ietf-ip@2018-01-09.yang" | |||
module ietf-ip { | module ietf-ip { | |||
yang-version 1.1; | yang-version 1.1; | |||
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 { | |||
prefix inet; | prefix inet; | |||
skipping to change at page 8, line 27 ¶ | skipping to change at page 8, line 27 ¶ | |||
contact | contact | |||
"WG Web: <http://tools.ietf.org/wg/netmod/> | "WG Web: <http://tools.ietf.org/wg/netmod/> | |||
WG List: <mailto:netmod@ietf.org> | WG List: <mailto:netmod@ietf.org> | |||
Editor: Martin Bjorklund | Editor: Martin Bjorklund | |||
<mailto:mbj@tail-f.com>"; | <mailto:mbj@tail-f.com>"; | |||
description | description | |||
"This module contains a collection of YANG definitions for | "This module contains a collection of YANG definitions for | |||
managing IP implementations. | managing IP implementations. | |||
Copyright (c) 2017 IETF Trust and the persons identified as | Copyright (c) 2018 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 | without modification, is permitted pursuant to, and subject | |||
to the license terms contained in, the Simplified BSD License | to the license terms contained in, the Simplified BSD License | |||
set forth in Section 4.c of the IETF Trust's Legal Provisions | set 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 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."; | |||
revision 2017-12-16 { | revision 2018-01-09 { | |||
description | description | |||
"Updated to support NMDA."; | "Updated to support NMDA."; | |||
reference | reference | |||
"RFC XXXX: A YANG Data Model for IP Management"; | "RFC XXXX: A YANG Data Model for IP Management"; | |||
} | } | |||
revision 2014-06-16 { | revision 2014-06-16 { | |||
description | description | |||
"Initial revision."; | "Initial revision."; | |||
reference | reference | |||
skipping to change at page 26, line 27 ¶ | skipping to change at page 26, line 27 ¶ | |||
This document registers a YANG module in the "YANG Module Names" | This document registers a YANG module in the "YANG Module Names" | |||
registry [RFC6020]. | registry [RFC6020]. | |||
Name: ietf-ip | Name: ietf-ip | |||
Namespace: urn:ietf:params:xml:ns:yang:ietf-ip | Namespace: urn:ietf:params:xml:ns:yang:ietf-ip | |||
Prefix: ip | Prefix: ip | |||
Reference: RFC 7277 | Reference: RFC 7277 | |||
6. Security Considerations | 6. Security Considerations | |||
The YANG module defined in this memo is designed to be accessed via | The YANG module defined in this document is designed to be accessed | |||
the NETCONF protocol [RFC6241]. The lowest NETCONF layer is the | via network management protocols such as NETCONF [RFC6241] or | |||
secure transport layer and the mandatory-to-implement secure | RESTCONF [RFC8040]. The lowest NETCONF layer is the secure transport | |||
transport is SSH [RFC6242]. The NETCONF access control model | layer, and the mandatory-to-implement secure transport is Secure | |||
[RFC6536] provides the means to restrict access for particular | Shell (SSH) [RFC6242]. The lowest RESTCONF layer is HTTPS, and the | |||
NETCONF users to a pre-configured subset of all available NETCONF | mandatory-to-implement secure transport is TLS [RFC5246]. | |||
protocol operations and content. | ||||
The NETCONF access control model [RFC6536] provides the means to | ||||
restrict access for particular NETCONF or RESTCONF users to a | ||||
preconfigured subset of all available NETCONF or RESTCONF protocol | ||||
operations and content. | ||||
There are a number of data nodes defined in the YANG module which are | There are a number of data nodes defined in the YANG module which are | |||
writable/creatable/deletable (i.e., config true, which is the | writable/creatable/deletable (i.e., config true, which is the | |||
default). These data nodes may be considered sensitive or vulnerable | default). These data nodes may be considered sensitive or vulnerable | |||
in some network environments. Write operations (e.g., edit-config) | in some network environments. Write operations (e.g., edit-config) | |||
to these data nodes without proper protection can have a negative | to these data nodes without proper protection can have a negative | |||
effect on network operations. These are the subtrees and data nodes | effect on network operations. These are the subtrees and data nodes | |||
and their sensitivity/vulnerability: | and their sensitivity/vulnerability: | |||
ipv4/enabled and ipv6/enabled: These leafs are used to enable or | ipv4/enabled and ipv6/enabled: These leafs are used to enable or | |||
skipping to change at page 27, line 47 ¶ | skipping to change at page 27, line 49 ¶ | |||
8.1. Normative References | 8.1. Normative References | |||
[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-07 | Architecture", draft-ietf-netmod-revised-datastores-07 | |||
(work in progress), November 2017. | (work in progress), November 2017. | |||
[I-D.ietf-netmod-rfc7223bis] | [I-D.ietf-netmod-rfc7223bis] | |||
Bjorklund, M., "A YANG Data Model for Interface | Bjorklund, M., "A YANG Data Model for Interface | |||
Management", draft-ietf-netmod-rfc7223bis-00 (work in | Management", draft-ietf-netmod-rfc7223bis-01 (work in | |||
progress), October 2017. | progress), December 2017. | |||
[RFC0791] Postel, J., "Internet Protocol", STD 5, RFC 791, DOI | [RFC0791] Postel, J., "Internet Protocol", STD 5, RFC 791, | |||
10.17487/RFC0791, September 1981, <https://www.rfc- | DOI 10.17487/RFC0791, September 1981, <https://www.rfc- | |||
editor.org/info/rfc791>. | editor.org/info/rfc791>. | |||
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate | [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate | |||
Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/ | Requirement Levels", BCP 14, RFC 2119, | |||
RFC2119, March 1997, <https://www.rfc-editor.org/info/ | DOI 10.17487/RFC2119, March 1997, <https://www.rfc- | |||
rfc2119>. | editor.org/info/rfc2119>. | |||
[RFC2460] Deering, S. and R. Hinden, "Internet Protocol, Version 6 | [RFC2460] Deering, S. and R. Hinden, "Internet Protocol, Version 6 | |||
(IPv6) Specification", RFC 2460, DOI 10.17487/RFC2460, | (IPv6) Specification", RFC 2460, DOI 10.17487/RFC2460, | |||
December 1998, <https://www.rfc-editor.org/info/rfc2460>. | December 1998, <https://www.rfc-editor.org/info/rfc2460>. | |||
[RFC3688] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, | [RFC3688] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, | |||
DOI 10.17487/RFC3688, January 2004, <https://www.rfc- | DOI 10.17487/RFC3688, January 2004, <https://www.rfc- | |||
editor.org/info/rfc3688>. | editor.org/info/rfc3688>. | |||
[RFC4861] Narten, T., Nordmark, E., Simpson, W., and H. Soliman, | [RFC4861] Narten, T., Nordmark, E., Simpson, W., and H. Soliman, | |||
"Neighbor Discovery for IP version 6 (IPv6)", RFC 4861, | "Neighbor Discovery for IP version 6 (IPv6)", RFC 4861, | |||
DOI 10.17487/RFC4861, September 2007, <https://www.rfc- | DOI 10.17487/RFC4861, September 2007, <https://www.rfc- | |||
editor.org/info/rfc4861>. | editor.org/info/rfc4861>. | |||
[RFC4862] Thomson, S., Narten, T., and T. Jinmei, "IPv6 Stateless | [RFC4862] Thomson, S., Narten, T., and T. Jinmei, "IPv6 Stateless | |||
Address Autoconfiguration", RFC 4862, DOI 10.17487/ | Address Autoconfiguration", RFC 4862, | |||
RFC4862, September 2007, <https://www.rfc-editor.org/info/ | DOI 10.17487/RFC4862, September 2007, <https://www.rfc- | |||
rfc4862>. | editor.org/info/rfc4862>. | |||
[RFC4941] Narten, T., Draves, R., and S. Krishnan, "Privacy | [RFC4941] Narten, T., Draves, R., and S. Krishnan, "Privacy | |||
Extensions for Stateless Address Autoconfiguration in | Extensions for Stateless Address Autoconfiguration in | |||
IPv6", RFC 4941, DOI 10.17487/RFC4941, September 2007, | IPv6", RFC 4941, DOI 10.17487/RFC4941, September 2007, | |||
<https://www.rfc-editor.org/info/rfc4941>. | <https://www.rfc-editor.org/info/rfc4941>. | |||
[RFC5246] Dierks, T. and E. Rescorla, "The Transport Layer Security | ||||
(TLS) Protocol Version 1.2", RFC 5246, | ||||
DOI 10.17487/RFC5246, August 2008, <https://www.rfc- | ||||
editor.org/info/rfc5246>. | ||||
[RFC6020] Bjorklund, M., Ed., "YANG - A Data Modeling Language for | [RFC6020] Bjorklund, M., Ed., "YANG - A Data Modeling Language for | |||
the Network Configuration Protocol (NETCONF)", RFC 6020, | the Network Configuration Protocol (NETCONF)", RFC 6020, | |||
DOI 10.17487/RFC6020, October 2010, <https://www.rfc- | DOI 10.17487/RFC6020, October 2010, <https://www.rfc- | |||
editor.org/info/rfc6020>. | editor.org/info/rfc6020>. | |||
[RFC6241] Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed., | [RFC6241] Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed., | |||
and A. Bierman, Ed., "Network Configuration Protocol | and A. Bierman, Ed., "Network Configuration Protocol | |||
(NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011, | (NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011, | |||
<https://www.rfc-editor.org/info/rfc6241>. | <https://www.rfc-editor.org/info/rfc6241>. | |||
[RFC6991] Schoenwaelder, J., Ed., "Common YANG Data Types", RFC | [RFC6242] Wasserman, M., "Using the NETCONF Protocol over Secure | |||
6991, DOI 10.17487/RFC6991, July 2013, <https://www.rfc- | Shell (SSH)", RFC 6242, DOI 10.17487/RFC6242, June 2011, | |||
editor.org/info/rfc6991>. | <https://www.rfc-editor.org/info/rfc6242>. | |||
[RFC6991] Schoenwaelder, J., Ed., "Common YANG Data Types", | ||||
RFC 6991, DOI 10.17487/RFC6991, July 2013, | ||||
<https://www.rfc-editor.org/info/rfc6991>. | ||||
[RFC7950] Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language", | [RFC7950] Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language", | |||
RFC 7950, DOI 10.17487/RFC7950, August 2016, | RFC 7950, DOI 10.17487/RFC7950, August 2016, | |||
<https://www.rfc-editor.org/info/rfc7950>. | <https://www.rfc-editor.org/info/rfc7950>. | |||
[RFC8040] Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF | ||||
Protocol", RFC 8040, DOI 10.17487/RFC8040, January 2017, | ||||
<https://www.rfc-editor.org/info/rfc8040>. | ||||
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC | [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC | |||
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, | 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, | |||
May 2017, <https://www.rfc-editor.org/info/rfc8174>. | May 2017, <https://www.rfc-editor.org/info/rfc8174>. | |||
8.2. Informative References | 8.2. Informative References | |||
[I-D.ietf-netmod-yang-tree-diagrams] | [I-D.ietf-netmod-yang-tree-diagrams] | |||
Bjorklund, M. and L. Berger, "YANG Tree Diagrams", draft- | Bjorklund, M. and L. Berger, "YANG Tree Diagrams", draft- | |||
ietf-netmod-yang-tree-diagrams-02 (work in progress), | ietf-netmod-yang-tree-diagrams-02 (work in progress), | |||
October 2017. | October 2017. | |||
skipping to change at page 29, line 26 ¶ | skipping to change at page 29, line 42 ¶ | |||
[RFC0826] Plummer, D., "Ethernet Address Resolution Protocol: Or | [RFC0826] Plummer, D., "Ethernet Address Resolution Protocol: Or | |||
Converting Network Protocol Addresses to 48.bit Ethernet | Converting Network Protocol Addresses to 48.bit Ethernet | |||
Address for Transmission on Ethernet Hardware", STD 37, | Address for Transmission on Ethernet Hardware", STD 37, | |||
RFC 826, DOI 10.17487/RFC0826, November 1982, | RFC 826, DOI 10.17487/RFC0826, November 1982, | |||
<https://www.rfc-editor.org/info/rfc826>. | <https://www.rfc-editor.org/info/rfc826>. | |||
[RFC4293] Routhier, S., Ed., "Management Information Base for the | [RFC4293] Routhier, S., Ed., "Management Information Base for the | |||
Internet Protocol (IP)", RFC 4293, DOI 10.17487/RFC4293, | Internet Protocol (IP)", RFC 4293, DOI 10.17487/RFC4293, | |||
April 2006, <https://www.rfc-editor.org/info/rfc4293>. | April 2006, <https://www.rfc-editor.org/info/rfc4293>. | |||
[RFC6242] Wasserman, M., "Using the NETCONF Protocol over Secure | ||||
Shell (SSH)", RFC 6242, DOI 10.17487/RFC6242, June 2011, | ||||
<https://www.rfc-editor.org/info/rfc6242>. | ||||
[RFC6536] Bierman, A. and M. Bjorklund, "Network Configuration | [RFC6536] Bierman, A. and M. Bjorklund, "Network Configuration | |||
Protocol (NETCONF) Access Control Model", RFC 6536, DOI | Protocol (NETCONF) Access Control Model", RFC 6536, | |||
10.17487/RFC6536, March 2012, <https://www.rfc- | DOI 10.17487/RFC6536, March 2012, <https://www.rfc- | |||
editor.org/info/rfc6536>. | editor.org/info/rfc6536>. | |||
[RFC7217] Gont, F., "A Method for Generating Semantically Opaque | [RFC7217] Gont, F., "A Method for Generating Semantically Opaque | |||
Interface Identifiers with IPv6 Stateless Address | Interface Identifiers with IPv6 Stateless Address | |||
Autoconfiguration (SLAAC)", RFC 7217, DOI 10.17487/ | Autoconfiguration (SLAAC)", RFC 7217, | |||
RFC7217, April 2014, <https://www.rfc-editor.org/info/ | DOI 10.17487/RFC7217, April 2014, <https://www.rfc- | |||
rfc7217>. | editor.org/info/rfc7217>. | |||
[RFC8022] Lhotka, L. and A. Lindem, "A YANG Data Model for Routing | [RFC8022] Lhotka, L. and A. Lindem, "A YANG Data Model for Routing | |||
Management", RFC 8022, DOI 10.17487/RFC8022, November | Management", RFC 8022, DOI 10.17487/RFC8022, November | |||
2016, <https://www.rfc-editor.org/info/rfc8022>. | 2016, <https://www.rfc-editor.org/info/rfc8022>. | |||
Appendix A. Example: NETCONF <get-config> reply | Appendix A. Example: NETCONF <get-config> reply | |||
This section gives an example of a reply to the NETCONF <get-config> | This section gives an example of a reply to the NETCONF <get-config> | |||
request for the running configuration datastore for a device that | request for the running configuration datastore for a device that | |||
implements the data model defined in this document. | implements the data model defined in this document. | |||
skipping to change at page 30, line 40 ¶ | skipping to change at page 30, line 50 ¶ | |||
</interfaces> | </interfaces> | |||
</data> | </data> | |||
</rpc-reply> | </rpc-reply> | |||
Appendix B. Example: NETCONF <get-data> Reply | Appendix B. Example: NETCONF <get-data> Reply | |||
This section gives an example of a reply to the NETCONF <get-data> | This section gives an example of a reply to the NETCONF <get-data> | |||
request for the operational state datastore for a device that | request for the operational state datastore for a device that | |||
implements the data model defined in this document. | implements the data model defined in this document. | |||
This example uses the "origin" annotation, which is defined in the | ||||
module "ietf-origin" [I-D.ietf-netmod-revised-datastores]. | ||||
<rpc-reply | <rpc-reply | |||
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" | xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" | |||
message-id="101"> | message-id="101"> | |||
<data> | <data xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-datastores"> | |||
<interfaces | <interfaces | |||
xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" | xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" | |||
xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type" | xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type" | |||
xmlns:or="urn:ietf:params:xml:ns:yang:ietf-origin"> | xmlns:or="urn:ietf:params:xml:ns:yang:ietf-origin"> | |||
<interface or:origin="or:intended"> | <interface or:origin="or:intended"> | |||
<name>eth0</name> | <name>eth0</name> | |||
<type>ianaift:ethernetCsmacd</type> | <type>ianaift:ethernetCsmacd</type> | |||
<!-- other parameters from ietf-interfaces omitted --> | <!-- other parameters from ietf-interfaces omitted --> | |||
<ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip"> | <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip"> | |||
<enabled or:origin="or:default">true</enabled> | <enabled or:origin="or:default">true</enabled> | |||
<forwarding or:origin="or:default">false</forwarding> | <forwarding or:origin="or:default">false</forwarding> | |||
<mtu or:origin="or:system">1500</mtu> | <mtu or:origin="or:system">1500</mtu> | |||
<address> | <address> | |||
<ip>192.0.2.1</ip> | <ip>192.0.2.1</ip> | |||
<prefix-length>24</prefix-length> | <prefix-length>24</prefix-length> | |||
<origin>static</origin> | <origin>static</origin> | |||
</address> | </address> | |||
<neighbor or:origin="or:learned"> | <neighbor or:origin="or:learned"> | |||
End of changes. 23 change blocks. | ||||
39 lines changed or deleted | 56 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/ |