huawei-diagnostic-tools-vxlan

Vxlan diagnosis tool.

  • Version: 2021-01-04

    huawei-diagnostic-tools-vxlan@2021-01-04


    
      submodule huawei-diagnostic-tools-vxlan {
    
        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;
        }
    
        include huawei-diagnostic-tools-type;
        include huawei-diagnostic-tools-common;
    
        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 "Vxlan diagnosis tool.";
    
        revision "2021-01-04" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
    
        rpc vxlan-start-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vxlan/diagnostic-tools:ping-results";
          description "Start VXLAN ping.";
          input {
            leaf test-name {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Test name.";
            }
    
            leaf vni {
              type uint32 {
                range "1..16777215";
              }
              mandatory true;
              description "The ID of the VNI.";
            }
    
            leaf source-addr {
              type inet:ipv4-address-no-zone;
              mandatory true;
              description
                "The source address of the NVE interface.";
            }
    
            leaf peer-addr {
              type inet:ipv4-address-no-zone;
              mandatory true;
              description
                "The address of the remote NVE.";
            }
    
            leaf udp-port {
              type uint16 {
                range "1..65535";
              }
              description
                "Destination UDP port number.";
            }
    
            leaf inner-source-addr {
              type inet:ipv4-address-no-zone;
              description
                "The source address of the inner packet.";
            }
    
            leaf packet-count {
              type uint32 {
                range "1..4294967295";
              }
              default "5";
              description
                "Number of sent packets.";
            }
    
            leaf interval {
              type uint32 {
                range "1..10000";
              }
              units "ms";
              default "500";
              description
                "Interval for sending test packets.";
            }
    
            leaf reply-mode {
              type vxlan-reply-mode;
              default "udp";
              description
                "Specify the reply mode of the test packets in a VXLAN ping test.";
            }
    
            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.";
            }
    
            choice load-balance {
              description "Load balance.";
              case vxlan-port {
                description "VXLAN port.";
                leaf vxlan-source-port {
                  type uint16 {
                    range "49152..65535";
                  }
                  description
                    "VXLAN source port for load balance.";
                }
    
                leaf vxlan-end-source-port {
                  type uint16 {
                    range "49152..65535";
                  }
                  description
                    "VXLAN end source port for load balance.";
                }
              }  // case vxlan-port
    
              case inner-packet {
                description
                  "Inner packet information.";
                leaf source-address {
                  type inet:ipv4-address-no-zone;
                  description
                    "The IPv4 source address of the user packet for load balance.";
                }
    
                leaf destination-address {
                  type inet:ipv4-address-no-zone;
                  description
                    "The IPv4 destination address of the user packet for load balance.";
                }
    
                leaf protocol {
                  type uint8 {
                    range "1..255";
                  }
                  description
                    "The protocol of the user packet for load balance.";
                }
    
                leaf source-port {
                  type uint16 {
                    range "1..65535";
                  }
                  description
                    "The source port of the user packet for load balance.";
                }
    
                leaf destination-port {
                  type uint16 {
                    range "1..65535";
                  }
                  description
                    "The destination port of the user packet for load balance.";
                }
    
                leaf source-mac {
                  type pub-type:mac-address;
                  description
                    "The source MAC of the user packet for load balance.";
                }
    
                leaf destination-mac {
                  type pub-type:mac-address;
                  description
                    "The destination MAC of the user packet for load balance.";
                }
              }  // case inner-packet
            }  // choice load-balance
          }
        }  // rpc vxlan-start-ping
    
        rpc vxlan-stop-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vxlan/diagnostic-tools:ping-results";
          description "Stop VXLAN ping.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vxlan/diagnostic-tools:ping-results/diagnostic-tools:ping-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc vxlan-stop-ping
    
        rpc vxlan-delete-ping {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vxlan/diagnostic-tools:ping-results";
          description "Delete VXLAN ping.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vxlan/diagnostic-tools:ping-results/diagnostic-tools:ping-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc vxlan-delete-ping
    
        rpc vxlan-start-trace {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vxlan/diagnostic-tools:trace-results";
          description "Start VXLAN trace.";
          input {
            leaf test-name {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Test name.";
            }
    
            leaf vni {
              type uint32 {
                range "1..16777215";
              }
              mandatory true;
              description "The ID of the VNI.";
            }
    
            leaf source-addr {
              type inet:ipv4-address-no-zone;
              mandatory true;
              description
                "The source address of the NVE interface.";
            }
    
            leaf peer-addr {
              type inet:ipv4-address-no-zone;
              mandatory true;
              description
                "The address of the remote NVE.";
            }
    
            leaf udp-port {
              type uint16 {
                range "1..65535";
              }
              description
                "Destination UDP port number.";
            }
    
            leaf inner-source-addr {
              type inet:ipv4-address-no-zone;
              description
                "The source address of the inner packet.";
            }
    
            leaf reply-mode {
              type vxlan-reply-mode;
              default "udp";
              description
                "Specify the reply mode of the test packets in a VXLAN trace test.";
            }
    
            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 max-ttl {
              type uint8 {
                range "1..255";
              }
              default "30";
              description
                "Max TTL of test packets.";
            }
    
            leaf ttl-mode {
              type ttl-mode-type;
              default "uniform";
              description "TTL mode.";
            }
    
            choice load-balance {
              description "Load balance.";
              case vxlan-port {
                description "VXLAN port.";
                leaf vxlan-source-port {
                  type uint16 {
                    range "49152..65535";
                  }
                  description
                    "VXLAN source port for load balance.";
                }
              }  // case vxlan-port
    
              case inner-packet {
                description
                  "Inner packet information.";
                leaf source-address {
                  type inet:ipv4-address-no-zone;
                  description
                    "The IPv4 source address of the user packet for load balance.";
                }
    
                leaf destination-address {
                  type inet:ipv4-address-no-zone;
                  description
                    "The IPv4 destination address of the user packet for load balance.";
                }
    
                leaf protocol {
                  type uint8 {
                    range "1..255";
                  }
                  description
                    "The protocol of the user packet for load balance.";
                }
    
                leaf source-port {
                  type uint16 {
                    range "1..65535";
                  }
                  description
                    "The source port of the user packet for load balance.";
                }
    
                leaf destination-port {
                  type uint16 {
                    range "1..65535";
                  }
                  description
                    "The destination port of the user packet for load balance.";
                }
    
                leaf source-mac {
                  type pub-type:mac-address;
                  description
                    "The source MAC of the user packet for load balance.";
                }
    
                leaf destination-mac {
                  type pub-type:mac-address;
                  description
                    "The destination MAC of the user packet for load balance.";
                }
              }  // case inner-packet
            }  // choice load-balance
          }
        }  // rpc vxlan-start-trace
    
        rpc vxlan-stop-trace {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vxlan/diagnostic-tools:trace-results";
          description "Stop VXLAN trace.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vxlan/diagnostic-tools:trace-results/diagnostic-tools:trace-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc vxlan-stop-trace
    
        rpc vxlan-delete-trace {
          ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vxlan/diagnostic-tools:trace-results";
          description "Delete VXLAN trace.";
          input {
            leaf test-name {
              type leafref {
                path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:vxlan/diagnostic-tools:trace-results/diagnostic-tools:trace-result/diagnostic-tools:test-name";
              }
              mandatory true;
              description "Test name.";
            }
          }
        }  // rpc vxlan-delete-trace
      }  // submodule huawei-diagnostic-tools-vxlan
    

© 2023 YumaWorks, Inc. All rights reserved.