huawei-fim-ifm

Common interface management, which includes the public configuration of interfaces.

  • Version: 2020-03-23

    huawei-fim-ifm@2020-03-23


    
      module huawei-fim-ifm {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-fim-ifm";
    
        prefix fim-ifm;
    
        import huawei-pub-type {
          prefix pub-type;
        }
        import huawei-ifm {
          prefix ifm;
        }
        import huawei-extension {
          prefix ext;
        }
        import huawei-ethernet {
          prefix ethernet;
        }
    
        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
          "Common interface management, which includes the public configuration of interfaces.";
    
        reference
          "Huawei private.";
    
    
        revision "2020-03-23" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "forwarding";
    
        typedef enable-type {
          type enumeration {
            enum "disable" {
              value 0;
              description "Disable.";
            }
            enum "enable" {
              value 1;
              description "Enable.";
            }
          }
          description "Enable type.";
        }
    
        typedef statistic-mode-type {
          type enumeration {
            enum "forward" {
              value 1;
              description
                "Forward mode statistics.";
            }
            enum "mac" {
              value 0;
              description "MAC mode statistics.";
            }
          }
          description "Ip Statistic Mode Type.";
        }
    
        typedef ve-mode-type {
          type enumeration {
            enum "through" {
              value 1;
              description "Software loopback.";
            }
            enum "loopback" {
              value 0;
              description "Hardware loopback.";
            }
            enum "half-through" {
              value 3;
              description
                "Software switch hardware loopback.";
            }
          }
          description "VE Forward Mode Type.";
        }
    
        typedef ve-interface-type {
          type enumeration {
            enum "L2VE" {
              value 1;
              description
                "Layer 2 Terminate Virtual-Ethernet interface.";
            }
            enum "L3VE" {
              value 2;
              description
                "Layer 3 Access Virtual-Ethernet interface.";
            }
            enum "terminate-ve" {
              value 7;
              description
                "Layer 3 Terminate Virtual-Ethernet interface.";
            }
          }
          description "VE Interface Type.";
        }
    
        typedef local-forward-type {
          type enumeration {
            enum "unicast" {
              value 1;
              description
                "Unicast Local Forward.";
            }
          }
          description
            "Trunk Local Forward Type.";
        }
    
        typedef reset-ipversion-type {
          type enumeration {
            enum "ipv4" {
              value 1;
              description "IPv4 reset.";
            }
            enum "ipv6" {
              value 2;
              description "IPv6 reset.";
            }
          }
          description "Reset IP vertion type.";
        }
    
        typedef reset-dispcard-type {
          type enumeration {
            enum "mac" {
              value 1;
              description "MAC reset.";
            }
            enum "mtu" {
              value 2;
              description "MTU reset.";
            }
          }
          description
            "Reset discard vertion type.";
        }
    
        rpc rst-macmtu-intf {
          ext:node-ref "/ifm/interfaces/interface";
          description
            "Clear MAC and MTU error statistics.";
          input {
            leaf interface-name {
              type string {
                length "1..63";
              }
              mandatory true;
              description "Interface name.";
            }
    
            leaf discard-type {
              type reset-dispcard-type;
              description
                "Configure the discard type.";
            }
    
            leaf ip-version {
              type reset-ipversion-type;
              description
                "Configure the discard IP version.";
            }
          }
        }  // rpc rst-macmtu-intf
    
        rpc rst-macmtu-slot {
          ext:node-ref "/ifm/interfaces/interface";
          description
            "Clear MAC&MTU error statistics.";
          input {
            leaf board-position {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Board position.";
            }
    
            leaf discard-type {
              type reset-dispcard-type;
              description
                "Configure the discard type.";
            }
    
            leaf ip-version {
              type reset-ipversion-type;
              description
                "Configure the discard IP version.";
            }
          }
        }  // rpc rst-macmtu-slot
    
        rpc rst-mru-discard {
          ext:node-ref "/ifm/interfaces/interface";
          description
            "Clear interface MRU discard statistics.";
          input {
            leaf interface-name {
              type string {
                length "1..63";
              }
              mandatory true;
              description
                "Interface name of clear interface MRU discard statistics.";
            }
          }
        }  // rpc rst-mru-discard
      }  // module huawei-fim-ifm
    

© 2023 YumaWorks, Inc. All rights reserved.