huawei-diagnostic-tools-evpn

Evpn diagnosis tool.

  • Version: 2020-01-14

    huawei-diagnostic-tools-evpn@2020-01-14


    
      submodule huawei-diagnostic-tools-evpn {
    
        yang-version 1;
    
        belongs-to huawei-diagnostic-tools {
            prefix diagnostic-tools;
        }
    
        import ietf-inet-types {
          prefix inet;
        }
        import huawei-pub-type {
          prefix pub-type;
        }
        import huawei-extension {
          prefix ext;
        }
    
        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 "Evpn diagnosis tool.";
    
        revision "2020-01-14" {
          description "Add space.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-01-07" {
          description
            "Modify description of end-op.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-12-19" {
          description
            "Modify container ds-label-lists.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-12-14" {
          description
            "Container added for list.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-04-12" {
          description "Init revision.";
          reference
            "Huawei private.";
    
        }
    
    
        rpc evpn-start-mac-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:mac-ping-results";
          description "Start evpn mac ping.";
          input {
            leaf test-name {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Test name.";
            }
    
            choice access-type {
              mandatory true;
              description "Access type.";
              case normal {
                description "Normal access.";
                leaf evpn-name {
                  type string {
                    length "1..31";
                  }
                  description
                    "EVPN instance name.";
                }
              }  // case normal
    
              case bd {
                description
                  "Bridge-domain access.";
                leaf bd-id {
                  type uint32 {
                    range "1..16777215";
                  }
                  mandatory true;
                  description
                    "The ID of bridge-domain.";
                }
    
                leaf vlan-id {
                  type uint16 {
                    range "1..4094";
                  }
                  description "VLAN ID.";
                }
              }  // case bd
            }  // choice access-type
    
            leaf mac {
              type pub-type:mac-address;
              mandatory true;
              description "Mac address.";
            }
    
            leaf source-address {
              type inet:ip-address-no-zone;
              description
                "Source address of the string type. You can click this node to set different types of addresses and deploy the configurations together with the configuration of the source address type node. If the source address type is set to IPv4, this parameter is set to IPv4. If the source address type is set to IPv6, this parameter is set to IPv6.";
            }
    
            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 "100..9568";
              }
              units "Byte";
              default "110";
              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. If no response packet is received within the timeout period, the system considers that the test packet times out.";
            }
    
            leaf reply-mode {
              type reply-mode-evpn;
              default "udp";
              description
                "Mode for responding to test packets in a test.";
            }
    
            leaf next-hop {
              type inet:ip-address-no-zone;
              description "Next Hop Address.";
            }
          }
        }  // rpc evpn-start-mac-ping
    
        rpc evpn-stop-mac-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:mac-ping-results";
          description "Stop evpn mac ping.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:mac-ping-results/diagnostic-tools:mac-ping-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc evpn-stop-mac-ping
    
        rpc evpn-delete-mac-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:mac-ping-results";
          description "Delete evpn mac ping.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:mac-ping-results/diagnostic-tools:mac-ping-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc evpn-delete-mac-ping
    
        rpc evpn-start-vpws-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:vpws-ping-results";
          description "Start evpn vpws ping.";
          input {
            leaf test-name {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Test name.";
            }
    
            leaf local-ce-id {
              type uint32 {
                range "1..16777215";
              }
              mandatory true;
              description "Local EVPN VPWS ID.";
            }
    
            leaf remote-ce-id {
              type uint32 {
                range "1..16777215";
              }
              mandatory true;
              description "Remote EVPN VPWS ID.";
            }
    
            leaf source-address {
              type inet:ip-address-no-zone;
              description
                "Source address of the string type. You can click this node to set different types of addresses and deploy the configurations together with the configuration of the source address type node. If the source address type is set to IPv4, this parameter is set to IPv4. If the source address type is set to IPv6, this parameter is set to IPv6.";
            }
    
            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 "80..9600";
              }
              units "Byte";
              default "100";
              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. The EXP value is used to distinguish the service types of MPLS packets.";
            }
    
            leaf tc {
              type uint8 {
                range "0..255";
              }
              default "0";
              description
                "Traffic class value of IPv6 packets. The traffic class value is used to distinguish the service types of IPv6 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. If no response packet is received within the timeout period, the system considers that the test packet times out.";
            }
    
            leaf reply-mode {
              type reply-mode-evpn;
              default "udp";
              description
                "Mode for responding to test packets in a test.";
            }
    
            leaf end-op {
              type inet:ipv6-address-no-zone;
              must "not(../exp)";
              description "End-OP segment ID.";
            }
    
            leaf control-word {
              type boolean;
              description "Control word.";
            }
    
            leaf evpn-name {
              type string {
                length "1..31";
              }
              description "EVPN instance name.";
            }
    
            leaf service-class {
              type service-class-value;
              description "Service class.";
            }
          }
        }  // rpc evpn-start-vpws-ping
    
        rpc evpn-stop-vpws-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:vpws-ping-results";
          description "Stop evpn vpws ping.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:vpws-ping-results/diagnostic-tools:vpws-ping-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc evpn-stop-vpws-ping
    
        rpc evpn-delete-vpws-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:vpws-ping-results";
          description "Delete evpn vpws ping.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:vpws-ping-results/diagnostic-tools:vpws-ping-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc evpn-delete-vpws-ping
    
        rpc evpn-start-vpws-trace {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:vpws-trace-results";
          description "Start evpn vpws trace.";
          input {
            leaf test-name {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Test name.";
            }
    
            leaf local-ce-id {
              type uint32 {
                range "1..16777215";
              }
              mandatory true;
              description "Local EVPN VPWS ID.";
            }
    
            leaf remote-ce-id {
              type uint32 {
                range "1..16777215";
              }
              mandatory true;
              description "Remote EVPN VPWS ID.";
            }
    
            leaf source-address {
              type inet:ip-address-no-zone;
              description
                "Source address of the string type. You can click this node to set different types of addresses and deploy the configurations together with the configuration of the source address type node. If the source address type is set to IPv4, this parameter is set to IPv4. If the source address type is set to IPv6, this parameter is set to IPv6.";
            }
    
            leaf packet-size {
              type uint32 {
                range "96..9600";
              }
              units "Byte";
              default "160";
              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. The EXP value is used to distinguish the service types of MPLS packets.";
            }
    
            leaf tc {
              type uint8 {
                range "0..255";
              }
              default "0";
              description
                "Traffic class value of IPv6 packets. The traffic class value is used to distinguish the service types of IPv6 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. If no response packet is received within the timeout period, the system considers that the test packet times out.";
            }
    
            leaf ttl {
              type uint8 {
                range "1..255";
              }
              default "30";
              description "Time to live.";
            }
    
            leaf reply-mode {
              type reply-mode-evpn;
              default "udp";
              description
                "Mode for responding to test packets in a test.";
            }
    
            leaf ttl-mode {
              type ttl-mode;
              description "TTL mode.";
            }
    
            leaf end-op {
              type inet:ipv6-address-no-zone;
              must "not(../exp)";
              description "End-OP segment ID.";
            }
    
            leaf control-word {
              type boolean;
              description "Control word.";
            }
    
            leaf evpn-name {
              type string {
                length "1..31";
              }
              description "EVPN instance name.";
            }
    
            leaf service-class {
              type service-class-value;
              description "Service class.";
            }
          }
        }  // rpc evpn-start-vpws-trace
    
        rpc evpn-stop-vpws-trace {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:vpws-trace-results";
          description "Stop evpn vpws trace.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:vpws-trace-results/diagnostic-tools:vpws-trace-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc evpn-stop-vpws-trace
    
        rpc evpn-delete-vpws-trace {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:vpws-trace-results";
          description "Delete evpn vpws trace.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:evpn/diagnostic-tools:vpws-trace-results/diagnostic-tools:vpws-trace-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc evpn-delete-vpws-trace
      }  // submodule huawei-diagnostic-tools-evpn
    

© 2023 YumaWorks, Inc. All rights reserved.