huawei-mpls-ldp

Specifies the multi-protocol label switching protocol.

  • Version: 2020-09-23

    huawei-mpls-ldp@2020-09-23


    
      module huawei-mpls-ldp {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-mpls-ldp";
    
        prefix mpls-ldp;
    
        import ietf-inet-types {
          prefix inet;
        }
        import huawei-pub-type {
          prefix pub-type;
        }
        import huawei-extension {
          prefix ext;
        }
        import huawei-network-instance {
          prefix ni;
        }
        import huawei-mpls {
          prefix mpls;
        }
        import huawei-ifm {
          prefix ifm;
        }
        import huawei-routing-policy {
          prefix rtp;
        }
        import huawei-routing {
          prefix rt;
        }
        import huawei-l3vpn {
          prefix l3vpn;
        }
        import huawei-bfd {
          prefix bfd;
        }
        import huawei-socket {
          prefix socket;
        }
    
        include huawei-mpls-ldp-type;
    
        organization
          "Huawei Technologies Co., Ltd.";
    
        contact
          "Huawei Industrial Base
    Bantian, Longgang
    Shenzhen 518129
    People's Republic of China
    Website: http://www.huawei.com
    Email: support@huawei.com";
    
        description
          "Specifies the multi-protocol label switching protocol.";
    
        revision "2020-09-23" {
          description
            "Add the manual-configuration-effect node.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-03-24" {
          description
            "Modified some descriptions.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-02-26" {
          description
            "Added the must condition and extension of some nodes and modified the value range of some nodes.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-01-14" {
          description
            "Added the authen-exclude node.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-12-26" {
          description
            "Added the is-tilfa-lsp node and modified the descriptions of the is-rlfa-lsp and is-frr-lsp nodes.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-11-30" {
          description "Add some nodes.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-11-06" {
          description
            "Modify the when and must conditions of some nodes.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-03-30" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "mpls-ldp";
    
        rpc reset-ldp-session {
          ext:node-ref "/ni:network-instance/ni:instances/ni:instance/mpls:mpls/mpls-ldp:ldp/mpls-ldp:instance/mpls-ldp:sessions/mpls-ldp:session";
          description "Reset LDP Session.";
          input {
            leaf peer-id {
              type inet:ipv4-address-no-zone;
              description
                "Peer ID of an LDP session to be restarted.";
            }
    
            leaf graceful {
              type boolean;
              default "false";
              description "GR flag.";
            }
    
            leaf vrfname {
              type string {
                length "1..31";
              }
              description
                "Name of an LDP instance.";
            }
          }
        }  // rpc reset-ldp-session
    
        rpc reset-all-ldp {
          ext:node-ref "/ni:network-instance/ni:instances/ni:instance/mpls:mpls/mpls-ldp:ldp/mpls-ldp:instance/mpls-ldp:sessions";
          description "Resets LDP.";
          input {
            leaf graceful {
              type boolean;
              default "false";
              description
                "Keep uninterrupted forwarding.";
            }
    
            leaf vrfname {
              type string {
                length "1..31";
              }
              description
                "Name of an LDP instance.";
            }
          }
        }  // rpc reset-all-ldp
    
        rpc reset-ldp-traffic-statistics {
          ext:node-ref "/ni:network-instance/ni:instances/ni:instance/mpls:mpls/mpls-ldp:ldp/mpls-ldp:instance/mpls-ldp:flows";
          description
            "Reset LDP traffic statistics.";
          input {
            leaf ipv4-dest-address {
              type inet:ipv4-address-no-zone;
              description "Prefix.";
            }
    
            leaf ipv4-masklen {
              type uint32;
              description "Length of mask.";
            }
          }
        }  // rpc reset-ldp-traffic-statistics
    
        rpc reset-mldp-traffic-statistics {
          ext:node-ref "/mpls:mpls/mpls-ldp:ldp/mpls-ldp:mldp/mpls-ldp:p2mp/mpls-ldp:flows";
          description
            "Reset MLDP P2MP traffic statistics.";
          input {
            leaf root-ip {
              type inet:ipv4-address-no-zone;
              description
                "MLDP P2MP lsp traffic statistics root IP address.";
            }
    
            leaf lsp-id {
              type uint32;
              description "MLDP P2MP LSP ID.";
            }
          }
        }  // rpc reset-mldp-traffic-statistics
    
        rpc reset-mldp-all-traffic-statistics {
          ext:node-ref "/mpls:mpls/mpls-ldp:ldp/mpls-ldp:mldp/mpls-ldp:p2mp/mpls-ldp:flows";
          description
            "Reset all MLDP P2MP traffic statistics.";
          input {
            leaf is-all {
              type boolean;
              default "false";
              description
                "Reset all MLDP P2MP traffic statistics.";
            }
          }
        }  // rpc reset-mldp-all-traffic-statistics
    
        rpc diagnose-lsp-establishment {
          description
            "Diagnose LSP establishment.";
          input {
            leaf destination-address {
              type inet:ipv4-address-no-zone;
              mandatory true;
              description
                "Destination address of an LSP.";
            }
    
            leaf prefix-length {
              type uint32 {
                range "1..32";
              }
              mandatory true;
              description
                "Prefix length of the destination address of an LSP.";
            }
    
            leaf vrfname {
              type string {
                length "1..31";
              }
              description
                "Name of an LDP instance.";
            }
          }
    
          output {
            leaf ingress-state {
              type ldp-lsp-state;
              description "Ingress LSP state.";
            }
    
            leaf ingress-check-route {
              type check-lsp-establishment;
              description
                "Route check for an ingress LSP.";
            }
    
            leaf ingress-check-policy {
              type check-lsp-establishment;
              description
                "Policy check for an ingress LSP.";
            }
    
            leaf ingress-check-downstream-session {
              type check-lsp-establishment;
              description
                "Downstream session check for an ingress LSP.";
            }
    
            leaf ingress-check-downstream-mapping {
              type check-lsp-establishment;
              description
                "Downstream mapping check for an ingress LSP.";
            }
    
            leaf ingress-check-limit {
              type check-lsp-establishment;
              description
                "Limit check for an ingress LSP.";
            }
    
            leaf ingress-check-resource {
              type check-lsp-establishment;
              description
                "Resource check for an ingress LSP.";
            }
    
            leaf transit-state {
              type ldp-lsp-state;
              description "Transit LSP state.";
            }
    
            leaf transit-check-route {
              type check-lsp-establishment;
              description
                "Route check for a transit LSP.";
            }
    
            leaf transit-check-policy {
              type check-lsp-establishment;
              description
                "Policy check for a transit LSP.";
            }
    
            leaf transit-check-downstream-session {
              type check-lsp-establishment;
              description
                "Downstream session check for a transit LSP.";
            }
    
            leaf transit-check-downstream-mapping {
              type check-lsp-establishment;
              description
                "Downstream mapping check for a transit LSP.";
            }
    
            leaf transit-check-upstream-request {
              type check-lsp-establishment;
              description
                "Upstream request check for a transit LSP.";
            }
    
            leaf transit-check-limit {
              type check-lsp-establishment;
              description
                "Limit check for a transit LSP.";
            }
    
            leaf transit-check-resource {
              type check-lsp-establishment;
              description
                "Resource check for a transit LSP.";
            }
    
            leaf egress-state {
              type ldp-lsp-state;
              description "Egress LSP state.";
            }
    
            leaf egress-check-route {
              type check-lsp-establishment;
              description
                "Route check for an egress LSP.";
            }
    
            leaf egress-check-policy {
              type check-lsp-establishment;
              description
                "Policy check for an egress LSP.";
            }
    
            leaf egress-check-upstream-request {
              type check-lsp-establishment;
              description
                "Upstream request check for an egress LSP.";
            }
    
            leaf egress-check-limit {
              type check-lsp-establishment;
              description
                "Limit check for an egress LSP.";
            }
    
            leaf egress-check-resource {
              type check-lsp-establishment;
              description
                "Resource check for an egress LSP.";
            }
          }
        }  // rpc diagnose-lsp-establishment
    
        rpc reset-ldp-event-records {
          description "Reset LDP event records.";
          input {
            leaf session-down {
              type boolean;
              description
                "Reset the down events of LDP sessions.";
            }
    
            leaf adjacency-down {
              type boolean;
              description
                "Reset the down events of LDP adjacencys.";
            }
          }
        }  // rpc reset-ldp-event-records
    
        rpc reset-ldp-error-packet {
          description "Reset LDP error packets.";
          input {
            leaf tcp-error-packet {
              type boolean;
              description
                "Reset TCP error packets.";
            }
    
            leaf udp-error-packet {
              type boolean;
              description
                "Reset UDP error packets.";
            }
    
            leaf all-error-packet {
              type boolean;
              description
                "Reset all error packets.";
            }
          }
        }  // rpc reset-ldp-error-packet
      }  // module huawei-mpls-ldp
    

© 2023 YumaWorks, Inc. All rights reserved.