netconfcentral logo

openconfig-mpls-ldp@2015-07-04



  module openconfig-mpls-ldp {

    yang-version 1;

    namespace
      "http://openconfig.net/yang/ldp";

    prefix ldp;

    import ietf-inet-types {
      prefix inet;
    }
    import openconfig-mpls-types {
      prefix mplst;
    }

    organization "OpenConfig working group";

    contact
      "OpenConfig working group
netopenconfig@googlegroups.com";

    description
      "Configuration of Label Distribution Protocol global and LSP-
specific parameters for IGP-congruent LSPs";

    revision "2015-07-04" {
      description "Initial revision";
      reference
        "TBD";

    }


    grouping ldp-global {
      description
        "global LDP signaling configuration";
      container ldp {
        description
          "LDP global signaling configuration";
        container timers {
          description "LDP timers";
        }  // container timers
      }  // container ldp
    }  // grouping ldp-global

    grouping igp-tunnel-ldp {
      description
        "common defintiions for LDP-signaled LSP tunnel
types";
      container tunnel {
        description
          "contains configuration stanzas for different LSP
tunnel types (P2P, P2MP, etc.)";
        leaf tunnel-type {
          type mplst:tunnel-type;
          description
            "specifies the type of LSP, e.g., P2P or P2MP";
        }

        leaf ldp-type {
          type enumeration {
            enum "BASIC" {
              value 0;
              description
                "basic hop-by-hop LSP";
            }
            enum "TARGETED" {
              value 1;
              description "tLDP LSP";
            }
          }
          description
            "specify basic or targeted LDP LSP";
        }

        container p2p-lsp {
          when "tunnel-type = 'P2P'" {
            description
              "container active when LSP tunnel type is
point to point";
          }
          description
            "properties of point-to-point tunnels";
          leaf-list fec-address {
            type inet:ip-prefix;
            description
              "Address prefix for packets sharing the same
forwarding equivalence class for the IGP-based LSP";
          }
        }  // container p2p-lsp

        container p2mp-lsp {
          when "tunnel-type = 'P2MP'" {
            description
              "container is active when LSP tunnel type is
point to multipoint";
          }
          description
            "properties of point-to-multipoint tunnels";
        }  // container p2mp-lsp

        container mp2mp-lsp {
          when "tunnel-type = 'MP2MP'" {
            description
              "container is active when LSP tunnel type is
multipoint to multipoint";
          }
          description
            "properties of multipoint-to-multipoint tunnels";
        }  // container mp2mp-lsp
      }  // container tunnel
    }  // grouping igp-tunnel-ldp

    grouping igp-lsp-ldp-setup {
      description
        "grouping for LDP setup attributes";
      container ldp {
        presence
          "Presence of this container sets the LSP to use
LDP signaling";
        description
          "LDP signaling setup for IGP-congruent LSPs";
        uses igp-tunnel-ldp;
      }  // container ldp
    }  // grouping igp-lsp-ldp-setup
  }  // module openconfig-mpls-ldp