draft-ietf-softwire-dslite-yang-10.txt   draft-ietf-softwire-dslite-yang-11.txt 
Network Working Group M. Boucadair Network Working Group M. Boucadair
Internet-Draft C. Jacquenet Internet-Draft C. Jacquenet
Intended status: Standards Track Orange Intended status: Standards Track Orange
Expires: May 20, 2018 S. Sivakumar Expires: May 23, 2018 S. Sivakumar
Cisco Systems Cisco Systems
November 16, 2017 November 19, 2017
A YANG Data Module for Dual-Stack Lite (DS-Lite) A YANG Data Module for Dual-Stack Lite (DS-Lite)
draft-ietf-softwire-dslite-yang-10 draft-ietf-softwire-dslite-yang-11
Abstract Abstract
This document defines a YANG module for the DS-Lite Address Family This document defines a YANG module for the DS-Lite Address Family
Transition Router (AFTR) and Basic Bridging BroadBand (B4) elements. Transition Router (AFTR) and Basic Bridging BroadBand (B4) elements.
Editorial Note (To be removed by RFC Editor) Editorial Note (To be removed by RFC Editor)
Please update these statements with the RFC number to be assigned to Please update these statements with the RFC number to be assigned to
this document: this document:
skipping to change at page 1, line 44 skipping to change at page 1, line 44
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 https://datatracker.ietf.org/drafts/current/. Drafts is at https://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 May 20, 2018. This Internet-Draft will expire on May 23, 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
(https://trustee.ietf.org/license-info) in effect on the date of (https://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 6, line 46 skipping to change at page 6, line 46
+--ro policy-id -> /nat:nat/instances/instance/policy/id +--ro policy-id -> /nat:nat/instances/instance/policy/id
+--ro address inet:ipv6-address +--ro address inet:ipv6-address
Figure 2: YANG Module for DS-Lite Figure 2: YANG Module for DS-Lite
Examples to illustrate the use of this module are provided in Examples to illustrate the use of this module are provided in
Appendix A and Appendix B. Appendix A and Appendix B.
3. DS-Lite YANG Module 3. DS-Lite YANG Module
<CODE BEGINS> file "ietf-dslite@2017-11-15.yang" <CODE BEGINS> file "ietf-dslite@2017-11-20.yang"
module ietf-dslite { module ietf-dslite {
yang-version 1.1; yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-dslite"; namespace "urn:ietf:params:xml:ns:yang:ietf-dslite";
prefix dslite; prefix dslite;
import ietf-inet-types { prefix inet; } import ietf-inet-types { prefix inet; }
import ietf-interfaces { prefix if; } import ietf-interfaces { prefix if; }
import iana-if-type { prefix ianaift; } import iana-if-type { prefix ianaift; }
import ietf-nat {prefix nat;} import ietf-nat {prefix nat;}
skipping to change at page 7, line 43 skipping to change at page 7, line 43
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-11-15 { revision 2017-11-20 {
description description
"Initial revision."; "Initial revision.";
reference reference
"RFC XXXX: A YANG Data Module for Dual-Stack Lite (DS-Lite)"; "RFC XXXX: A YANG Data Module for Dual-Stack Lite (DS-Lite)";
} }
/* /*
* Features * Features
*/ */
skipping to change at page 10, line 9 skipping to change at page 10, line 9
use this model by provisioning the network such that the use this model by provisioning the network such that the
AFTR/B4 copies the DSCP value in the IPv4 header to AFTR/B4 copies the DSCP value in the IPv4 header to
the Traffic Class field in the IPv6 header, after the the Traffic Class field in the IPv6 header, after the
encapsulation for the downstream traffic."; encapsulation for the downstream traffic.";
reference reference
"Section 2.10 of RFC 6908."; "Section 2.10 of RFC 6908.";
} }
} }
augment "/nat:nat/nat:instances/nat:instance/nat:policy" { augment "/nat:nat/nat:instances/nat:instance/nat:policy" {
when "/nat:nat/nat:instances/nat:instance/nat:type='napt44'" + when "/nat:nat/nat:instances/nat:instance/nat:type='nat:napt44'" +
" and /nat:nat/nat:instances/nat:instance/" + " and /nat:nat/nat:instances/nat:instance/" +
"nat:per-interface-binding='dslite'"; "nat:per-interface-binding='dslite'";
if-feature aftr; if-feature aftr;
description description
"Augments the NAPT44 module with AFTR parameters."; "Augments the NAPT44 module with AFTR parameters.";
leaf max-softwires-per-subscriber { leaf max-softwires-per-subscriber {
type uint8; type uint8;
default 1; default 1;
description description
skipping to change at page 11, line 50 skipping to change at page 11, line 50
"Enable/disable MSS rewriting feature."; "Enable/disable MSS rewriting feature.";
} }
leaf mss-value { leaf mss-value {
type uint16; type uint16;
units "octets"; units "octets";
description description
"Sets the MSS value to be used for MSS rewriting."; "Sets the MSS value to be used for MSS rewriting.";
} }
} }
} }
augment "/nat:nat/nat:instances/nat:instance/"+ augment "/nat:nat/nat:instances/nat:instance/"+
"nat:mapping-table/nat:mapping-entry"{ "nat:mapping-table/nat:mapping-entry"{
when "/nat:nat/nat:instances/nat:instance/nat:type='napt44'" + when "/nat:nat/nat:instances/nat:instance/nat:type='nat:napt44'" +
" and /nat:nat/nat:instances/nat:instance/" + " and /nat:nat/nat:instances/nat:instance/" +
"nat:per-interface-binding='dslite'"; "nat:per-interface-binding='dslite'";
if-feature aftr; if-feature aftr;
description description
"Augments the NAPT44 mapping table with DS-Lite specifics."; "Augments the NAPT44 mapping table with DS-Lite specifics.";
container b4-ipv6-address { container b4-ipv6-address {
description description
"Records the IPv6 address used by the B4 element and the last "Records the IPv6 address used by the B4 element and the last
time that address changed."; time that address changed.";
leaf address { leaf address {
type inet:ipv6-address; type inet:ipv6-address;
description description
"Corresponds to the IPv6 address used by the B4 element."; "Corresponds to the IPv6 address used by the B4 element.";
reference reference
"RFC 6333: Dual-Stack Lite Broadband Deployments Following "RFC 6333: Dual-Stack Lite Broadband Deployments Following
IPv4 Exhaustion"; IPv4 Exhaustion";
} }
leaf last-address-change { leaf last-address-change {
type yang:date-and-time; type yang:date-and-time;
description description
"Records the last time when the address changed."; "Records the last time when the address changed.";
} }
} }
leaf v6-dscp { leaf v6-dscp {
when "/if:interfaces/if:interface/" + when "/if:interfaces/if:interface/" +
"dslite:v6-v4-dscp-preservation='true'"; "dslite:v6-v4-dscp-preservation='true'";
type uint8; type uint8;
skipping to change at page 13, line 12 skipping to change at page 13, line 12
leaf external-v4-dscp { leaf external-v4-dscp {
when "/if:interfaces/if:interface/" + when "/if:interfaces/if:interface/" +
"dslite:v6-v4-dscp-preservation='true'"; "dslite:v6-v4-dscp-preservation='true'";
type uint8; type uint8;
description description
"DSCP value of the translated IPv4 packet as marked by "DSCP value of the translated IPv4 packet as marked by
the AFTR."; the AFTR.";
} }
} }
augment "/nat:nat/nat:instances/nat:instance/nat:statistics/" + augment "/nat:nat/nat:instances/nat:instance/nat:statistics/" +
"nat:mappings-statistics" { "nat:mappings-statistics" {
if-feature aftr; if-feature aftr;
description description
"Indicates the number of active softwires."; "Indicates the number of active softwires.";
leaf active-softwires{ leaf active-softwires{
type yang:gauge32; type yang:gauge32;
description description
"The number of currently active softwires on the AFTR "The number of currently active softwires on the AFTR
instance."; instance.";
} }
} }
/* /*
* Notifications * Notifications
*/ */
notification b4-address-change-limit-policy-violation { notification b4-address-change-limit-policy-violation {
if-feature aftr; if-feature aftr;
description description
"Generates notifications when a B4 unsuccessfully attempts "Generates notifications when a B4 unsuccessfully attempts
to change IPv6 address in a time shorter than the value of to change IPv6 address in a time shorter than the value of
skipping to change at page 15, line 42 skipping to change at page 15, line 42
This document requests IANA to register the following YANG module in This document requests IANA to register the following YANG module in
the "YANG Module Names" registry [RFC7950]. the "YANG Module Names" registry [RFC7950].
name: ietf-dslite name: ietf-dslite
namespace: urn:ietf:params:xml:ns:yang:ietf-dslite namespace: urn:ietf:params:xml:ns:yang:ietf-dslite
prefix: dslite-aftr prefix: dslite-aftr
reference: RFC XXXX reference: RFC XXXX
6. Acknowledgements 6. Acknowledgements
Thanks to Qin Wu for identifying a compiling error. Mahesh Thanks to Qin Wu, Benoit Claise, and Andy Bierman who helped for
Jethanandani provided an early yangdoctors review; many thanks to identifying compiling errors. Mahesh Jethanandani provided an early
him. yangdoctors review; many thanks to him.
Many thanks to Ian Farrer for the review and comments. Many thanks to Ian Farrer for the review and comments.
7. References 7. References
7.1. Normative references 7.1. Normative references
[I-D.ietf-opsawg-nat-yang] [I-D.ietf-opsawg-nat-yang]
Boucadair, M., Sivakumar, S., Jacquenet, C., Vinapamula, Boucadair, M., Sivakumar, S., Jacquenet, C., Vinapamula,
S., and Q. Wu, "A YANG Data Model for Network Address S., and Q. Wu, "A YANG Data Model for Network Address
 End of changes. 13 change blocks. 
16 lines changed or deleted 15 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/