huawei-diagnostic-tools-vpls

Vpls diagnosis tool.

  • Version: 2021-06-11

    huawei-diagnostic-tools-vpls@2021-06-11


    
      submodule huawei-diagnostic-tools-vpls {
    
        yang-version 1;
    
        belongs-to huawei-diagnostic-tools {
            prefix diagnostic-tools;
        }
    
        import huawei-pub-type {
          prefix pub-type;
        }
        import ietf-inet-types {
          prefix inet;
        }
        import huawei-extension {
          prefix ext;
        }
        import huawei-ifm {
          prefix ifm;
        }
    
        include huawei-diagnostic-tools-common;
        include huawei-diagnostic-tools-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 "Vpls diagnosis tool.";
    
        revision "2021-06-11" {
          description "Add VPLS VSI ping.";
          reference
            "Huawei private.";
    
        }
    
        revision "2021-01-08" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
    
        rpc vpls-start-mac-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vpls/diagnostic-tools:mac-ping-results";
          description "Start VPLS MAC ping.";
          input {
            leaf test-name {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Test name.";
            }
    
            leaf vsi-name {
              type string {
                length "1..31";
              }
              mandatory true;
              description "VSI name.";
            }
    
            leaf dest-mac {
              type pub-type:mac-address;
              mandatory true;
              description
                "Destination mac address.";
            }
    
            leaf vlan {
              type uint16 {
                range "1..4094";
              }
              description "VLAN ID.";
            }
    
            leaf src-addr {
              type inet:ipv4-address-no-zone;
              description "Source address.";
            }
    
            leaf count {
              type uint32 {
                range "1..4294967295";
              }
              default "5";
              description
                "Number of sent test packets.";
            }
    
            leaf interval {
              type uint32 {
                range "1..10000";
              }
              units "ms";
              default "2000";
              description
                "Interval for sending test packets.";
            }
    
            leaf packet-size {
              type uint32 {
                range "142..1442";
              }
              units "Byte";
              default "142";
              description
                "Number of bytes in a sent test packet.";
            }
    
            leaf exp {
              type uint32 {
                range "0..7";
              }
              default "0";
              description
                "EXP value in the label field of MPLS packets.";
            }
    
            leaf timeout {
              type uint32 {
                range "0..65535";
              }
              units "ms";
              default "2000";
              description
                "Time taken to wait for the response packets after detection packets are sent.";
            }
    
            leaf reply-mode {
              type reply-mode-vpls-mac;
              default "udp-via-vpls";
              description "Reply Mode.";
            }
    
            leaf ttl {
              type uint32 {
                range "1..255";
              }
              default "255";
              description "TTL value.";
            }
    
            leaf fragment {
              type boolean;
              default "false";
              description
                "Set the Fragment flag in packet.";
            }
          }
        }  // rpc vpls-start-mac-ping
    
        rpc vpls-stop-mac-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vpls/diagnostic-tools:mac-ping-results";
          description "Stop VPLS MAC ping.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vpls/diagnostic-tools:mac-ping-results/diagnostic-tools:mac-ping-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc vpls-stop-mac-ping
    
        rpc vpls-delete-mac-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vpls/diagnostic-tools:mac-ping-results";
          description "Delete VPLS MAC ping.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vpls/diagnostic-tools:mac-ping-results/diagnostic-tools:mac-ping-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc vpls-delete-mac-ping
    
        rpc vpls-start-vsi-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vpls/diagnostic-tools:vsi-ping-results";
          description "Start VPLS VSI ping.";
          input {
            leaf test-name {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Test name.";
            }
    
            leaf vsi-name {
              type string {
                length "1..31";
              }
              mandatory true;
              description "VSI name.";
            }
    
            choice signal-type {
              mandatory true;
              description "Signal type.";
              case ldp {
                description
                  "Detecting by LDP signal.";
                leaf peer-address {
                  type inet:ipv4-address-no-zone;
                  mandatory true;
                  description
                    "Specify the peer IP address.";
                }
    
                leaf negotiation-vc-id {
                  type uint32 {
                    range "1..4294967295";
                  }
                  description "Local pw ID.";
                }
    
                leaf remote-address {
                  type inet:ipv4-address-no-zone;
                  description
                    "Specify the IP address of the remote LDP session.";
                }
    
                leaf remote-pw-id {
                  type uint32 {
                    range "1..4294967295";
                  }
                  description "Remote PW ID.";
                }
    
                leaf sender-address {
                  type inet:ipv4-address-no-zone;
                  description
                    "The source address of the target session.";
                }
              }  // case ldp
    
              case bgp {
                description
                  "Detecting by BGP signal.";
                leaf local-site-id {
                  type uint32 {
                    range "0..65534";
                  }
                  mandatory true;
                  description "Local site ID.";
                }
    
                leaf remote-site-id {
                  type uint32 {
                    range "0..65534";
                  }
                  mandatory true;
                  description "Remote site ID.";
                }
              }  // case bgp
            }  // choice signal-type
    
            leaf label-type {
              type vpls-label-type;
              description "Label type.";
            }
    
            leaf bypass-source-if-name {
              type leafref {
                path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name";
              }
              description
                "Set the interface as the source interface of ping packet when specifying VPLS bypass LSP.";
            }
    
            leaf count {
              type uint32 {
                range "1..4294967295";
              }
              default "5";
              description
                "Number of sent test packets.";
            }
    
            leaf interval {
              type uint32 {
                range "1..10000";
              }
              units "ms";
              default "2000";
              description
                "Interval for sending test packets.";
            }
    
            leaf packet-size {
              type uint32 {
                range "65..9600";
              }
              units "Byte";
              default "100";
              description
                "Number of bytes in a sent test packet.";
            }
    
            leaf timeout {
              type uint32 {
                range "0..65535";
              }
              units "ms";
              default "2000";
              description
                "Time taken to wait for the response packets after detection packets are sent.";
            }
    
            leaf exp {
              type uint32 {
                range "0..7";
              }
              default "0";
              description
                "EXP value in the label field of MPLS packets.";
            }
    
            leaf reply-mode {
              type reply-mode-vpls;
              default "udp";
              description "Reply mode.";
            }
    
            leaf verbose-info {
              type empty;
              description "Verbose output.";
            }
    
            leaf fragment {
              type empty;
              description
                "Set the fragment flag in packet.";
            }
          }
        }  // rpc vpls-start-vsi-ping
    
        rpc vpls-stop-vsi-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vpls/diagnostic-tools:vsi-ping-results";
          description "Stop VPLS VSI ping.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vpls/diagnostic-tools:vsi-ping-results/diagnostic-tools:vsi-ping-result/diagnostic-tools:test-name";
              }
              description "Test name.";
            }
          }
        }  // rpc vpls-stop-vsi-ping
    
        rpc vpls-delete-vsi-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vpls/diagnostic-tools:vsi-ping-results";
          description "Delete VPLS VSI ping.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vpls/diagnostic-tools:vsi-ping-results/diagnostic-tools:vsi-ping-result/diagnostic-tools:test-name";
              }
              description "Test name.";
            }
          }
        }  // rpc vpls-delete-vsi-ping
      }  // submodule huawei-diagnostic-tools-vpls
    

© 2023 YumaWorks, Inc. All rights reserved.