netconfcentral logo

ietf-mpls-static

HTML

ietf-mpls-static@2019-09-12



  module ietf-mpls-static {

    yang-version 1.1;

    namespace
      "urn:ietf:params:xml:ns:yang:ietf-mpls-static";

    prefix mpls-static;

    import ietf-mpls {
      prefix mpls;
      reference
        "draft-ietf-mpls-base-yang: MPLS Base YANG Data Model";


    }
    import ietf-routing {
      prefix rt;
      reference
        "RFC8349: A YANG Data Model for Routing Management";


    }
    import ietf-routing-types {
      prefix rt-types;
      reference
        "RFC8294: Common YANG Data Types for the Routing Area";


    }
    import ietf-inet-types {
      prefix inet;
      reference
        "RFC6991: Common YANG Data Types";


    }
    import ietf-interfaces {
      prefix if;
      reference
        "RFC7223: A YANG Data Model for Interface Management";


    }

    organization "IETF MPLS Working Group";

    contact
      "WG Web:   <http://tools.ietf.org/wg/mpls/>

WG List:  <mailto:mpls@ietf.org>

Editor:   Tarek Saad
	  <mailto:tsaad@juniper.net>

Editor:   Rakesh Gandhi
	  <mailto:rgandhi@cisco.com>

Editor:   Xufeng Liu
	  <mailto: xufeng.liu.ietf@gmail.com>

Editor:   Vishnu Pavan Beeram
	  <mailto:vbeeram@juniper.net>

Editor:   Igor Bryskin
	  <mailto: Igor.Bryskin@huawei.com>";

    description
      "This YANG module augments the 'ietf-routing' module with basic
configuration and operational state data for MPLS static
The model fully conforms to the Network Management Datastore
Architecture (NMDA).

Copyright (c) 2018 IETF Trust and the persons
identified as authors of the code.  All rights reserved.

Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC XXXX; see
the RFC itself for full legal notices.";

    revision "2019-09-12" {
      description
        "Latest revision of MPLS Static LSP YANG module";
      reference
        "RFC XXXX: A YANG Data Model for MPLS Static LSPs";

    }


    typedef static-lsp-ref {
      type leafref {
        path "/rt:routing/mpls:mpls/mpls-static:static-lsps/mpls-static:static-lsp/mpls-static:name";
      }
      description
        "This type is used by data models that need to reference
configured static LSP.";
    }

    grouping in-segment {
      description "In-segment grouping";
      container in-segment {
        description "MPLS incoming segment";
        container fec {
          description
            "Forwarding Equivalence Class grouping";
          choice type {
            description "FEC type choices";
            leaf ip-prefix {
              type inet:ip-prefix;
              description "An IP prefix";
            }
            leaf incoming-label {
              type rt-types:mpls-label;
              description
                "label value on the incoming packet";
            }
          }  // choice type

          leaf incoming-interface {
            type if:interface-ref;
            description
              "Optional incoming interface if FEC is restricted
to traffic incoming on a specific interface";
          }
        }  // container fec
      }  // container in-segment
    }  // grouping in-segment

    grouping out-segment {
      description "Out-segment grouping";
      container out-segment {
        description "MPLS outgoing segment";
        choice out-segment {
          description
            "The MPLS out-segment type choice";
          container nhlfe-single {
            description
              "Container for single NHLFE entry";
            uses mpls:nhlfe-single-contents;

            leaf outgoing-interface {
              type if:interface-ref;
              description
                "The outgoing interface";
            }
          }  // container nhlfe-single
          container nhlfe-multiple {
            description
              "Container for multiple NHLFE entries";
            list nhlfe {
              key "index";
              description "MPLS NHLFE entry";
              uses mpls:nhlfe-multiple-contents;

              leaf outgoing-interface {
                type if:interface-ref;
                description
                  "The outgoing interface";
              }
            }  // list nhlfe
          }  // container nhlfe-multiple
        }  // choice out-segment
      }  // container out-segment
    }  // grouping out-segment

    augment /rt:routing/mpls:mpls {
      description
        "Augmentations for MPLS Static LSPs";
      container static-lsps {
        description
          "Statically configured LSPs, without dynamic signaling";
        list static-lsp {
          key "name";
          description
            "list of defined static LSPs";
          leaf name {
            type string;
            description
              "name to identify the LSP";
          }

          leaf operation {
            type mpls:mpls-operations-type;
            description
              "The MPLS operation to be executed on the incoming packet";
          }

          uses in-segment;

          uses out-segment;
        }  // list static-lsp
      }  // container static-lsps
    }
  }  // module ietf-mpls-static

Summary

  
  
Organization IETF MPLS Working Group
  
Module ietf-mpls-static
Version 2019-09-12
File ietf-mpls-static@2019-09-12.yang
  
Prefix mpls-static
Namespace urn:ietf:params:xml:ns:yang:ietf-mpls-static
  
Cooked /cookedmodules/ietf-mpls-static/2019-09-12
YANG /src/ietf-mpls-static@2019-09-12.yang
XSD /xsd/ietf-mpls-static@2019-09-12.xsd
  
Abstract This YANG module augments the 'ietf-routing' module with basic configuration and operational state data for MPLS static The mode...
  
Contact
WG Web:   <http://tools.ietf.org/wg/mpls/>

WG List:  <mailto:mpls@ietf.org>

Editor:   Tarek Saad
	  <mailto:tsaad@juniper.net>

Editor:   Rakesh Gandhi
	  <mailto:rgandhi@cisco.com>

Editor:   Xufeng Liu
	  <mailto: xufeng.liu.ietf@gmail.com>

Editor:   Vishnu Pavan Beeram
	  <mailto:vbeeram@juniper.net>

Editor:   Igor Bryskin
	  <mailto: Igor.Bryskin@huawei.com>

Description

 
This YANG module augments the 'ietf-routing' module with basic
configuration and operational state data for MPLS static
The model fully conforms to the Network Management Datastore
Architecture (NMDA).

Copyright (c) 2018 IETF Trust and the persons
identified as authors of the code.  All rights reserved.

Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC XXXX; see
the RFC itself for full legal notices.

Typedefs

Typedef Base type Abstract
static-lsp-ref leafref This type is used by data models that need to reference configured static LSP.

Groupings

Grouping Objects Abstract
in-segment in-segment In-segment grouping
out-segment out-segment Out-segment grouping