huawei-nvo3-statistics

Management for data center network virtualization over Layer 3.

  • Version: 2021-08-12

    huawei-nvo3-statistics@2021-08-12


    
      module huawei-nvo3-statistics {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-nvo3-statistics";
    
        prefix nvo3-statistics;
    
        import ietf-inet-types {
          prefix inet;
        }
        import huawei-nvo3 {
          prefix nvo3;
        }
        import huawei-ifm {
          prefix ifm;
        }
        import huawei-extension {
          prefix ext;
        }
    
        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
          "Management for data center network virtualization over Layer 3.";
    
        revision "2021-08-12" {
          description
            "Add container nvo3-tunnel-statistics, and add default config in leaves of grouping vxlan-traffic-collection.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-03-30" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "nvo3";
    
        typedef vxlan-mode {
          type enumeration {
            enum "l2" {
              value 0;
              description "Layer 2.";
            }
            enum "l3" {
              value 1;
              description "Layer 3.";
            }
            enum "both" {
              value 2;
              description "Both layer 2 and 3.";
            }
          }
          description "VXLAN mode.";
        }
    
        typedef statistics-direction {
          type enumeration {
            enum "inbound" {
              value 0;
              description "Inbound direction.";
            }
            enum "outbound" {
              value 1;
              description "Outbound direction.";
            }
            enum "bidirection" {
              value 2;
              description "Bidirection.";
            }
          }
          description
            "VXLAN tunnel traffic statistics type.";
        }
    
        rpc reset-vni-label-statistics {
          ext:node-ref "/nvo3:nvo3/nvo3:vni-labels/nvo3:vni-label/nvo3-statistics:statistics/nvo3-statistics:collections";
          description
            "Clear VXLAN tunnel traffic statistics collection for a VNI.";
          input {
            leaf vni {
              type uint32 {
                range "1..16777215";
              }
              mandatory true;
              description
                "VXLAN network identifier.";
            }
          }
        }  // rpc reset-vni-label-statistics
    
        rpc reset-vtep-statistics {
          ext:node-ref "/ifm:ifm/ifm:interfaces/ifm:interface/nvo3-statistics:nvo3-vtep-statistics/nvo3-statistics:nvo3-vtep-statistic/nvo3-statistics:collections/nvo3-statistics:collection";
          description
            "Clear VXLAN tunnel traffic statistics collection for a VTEP.";
          input {
            leaf vni {
              type uint32 {
                range "1..16777215";
              }
              mandatory true;
              description
                "VXLAN network identifier.";
            }
    
            leaf source {
              type inet:ipv4-address-no-zone;
              mandatory true;
              description
                "The srource address of VTEP.";
            }
    
            leaf peer {
              type inet:ipv4-address-no-zone;
              mandatory true;
              description "The address of VTEP.";
            }
    
            leaf mode {
              type vxlan-mode;
              mandatory true;
              description
                "The type of VXLAN tunnel traffic statistics.";
            }
    
            leaf direction {
              type statistics-direction;
              must
                "(../mode = 'l2') or (../mode = 'l3' and (../direction != 'bidirection'))";
              mandatory true;
              description
                "Traffic statistics direction.";
            }
          }
        }  // rpc reset-vtep-statistics
    
        rpc reset-ipv6-vtep-statistics {
          ext:node-ref "/ifm:ifm/ifm:interfaces/ifm:interface/nvo3-statistics:nvo3-ipv6-vtep-statistics/nvo3-statistics:nvo3-ipv6-vtep-statistic/nvo3-statistics:collections/nvo3-statistics:collection";
          description
            "Clear VXLAN6 tunnel traffic statistics collection for a VTEP.";
          input {
            leaf vni {
              type uint32 {
                range "1..16777215";
              }
              mandatory true;
              description
                "VXLAN6 network identifier.";
            }
    
            leaf source {
              type inet:ipv6-address-no-zone;
              mandatory true;
              description
                "The srource address of VTEP.";
            }
    
            leaf peer {
              type inet:ipv6-address-no-zone;
              mandatory true;
              description
                "The peer address of VTEP.";
            }
    
            leaf mode {
              type vxlan-mode;
              mandatory true;
              description
                "The type of VXLAN6 tunnel traffic statistics.";
            }
    
            leaf direction {
              type statistics-direction;
              must
                "(../mode = 'l2') or (../mode = 'l3' and (../direction != 'bidirection'))";
              mandatory true;
              description
                "Traffic statistics direction.";
            }
          }
        }  // rpc reset-ipv6-vtep-statistics
      }  // module huawei-nvo3-statistics
    

© 2023 YumaWorks, Inc. All rights reserved.