huawei-mac-fwd

Forwarding MAC service.

  • Version: 2020-01-22

    huawei-mac-fwd@2020-01-22


    
      module huawei-mac-fwd {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-mac-fwd";
    
        prefix mac-fwd;
    
        import huawei-extension {
          prefix ext;
        }
        import huawei-devm {
          prefix devm;
        }
        import huawei-vlan {
          prefix vlan;
        }
        import huawei-l2vpn {
          prefix l2vpn;
        }
        import huawei-bd {
          prefix bd;
        }
        import huawei-mac {
          prefix mac;
        }
        import huawei-ifm {
          prefix ifm;
        }
        import huawei-mac-flapping {
          prefix mac-flapping;
        }
        import huawei-pub-type {
          prefix pub-type;
        }
        import ietf-inet-types {
          prefix inet;
        }
    
        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 "Forwarding MAC service.";
    
        revision "2020-01-22" {
          description "Modify description.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-04-15" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "mac";
    
        typedef alarm-state {
          type enumeration {
            enum "disable" {
              value 0;
              description
                "Disable the MAC flapping alarm function.";
            }
            enum "enable" {
              value 1;
              description
                "Enable the MAC flapping alarm function.";
            }
          }
          description
            "MAC flapping alarm enable.";
        }
    
        rpc reset-bd-machop {
          ext:node-ref "/bd:bd/bd:instances/bd:instance/mac-fwd:mac-hops/mac-fwd:mac-hop";
          description
            "Reset MAC hop info by BD ID.";
          input {
            leaf bd-id {
              type uint32 {
                range "1..16777215";
              }
              mandatory true;
              description "BD ID.";
            }
          }
        }  // rpc reset-bd-machop
    
        rpc reset-bd-machop-all {
          ext:node-ref "/bd:bd/bd:instances/bd:instance/mac-fwd:mac-hops/mac-fwd:mac-hop";
          description "Reset MAC hop info.";
        }  // rpc reset-bd-machop-all
    
        rpc reset-vlan-machop {
          ext:node-ref "/vlan:vlan/vlan:vlans/vlan:vlan/mac-fwd:mac-hops/mac-fwd:mac-hop";
          description
            "Reset MAC hop info by VLAN ID.";
          input {
            leaf vlan-id {
              type uint32 {
                range "1..4094";
              }
              mandatory true;
              description "VLAN ID.";
            }
          }
        }  // rpc reset-vlan-machop
    
        rpc reset-vlan-machop-all {
          ext:node-ref "/vlan:vlan/vlan:vlans/vlan:vlan/mac-fwd:mac-hops/mac-fwd:mac-hop";
          description "Reset MAC hop info.";
        }  // rpc reset-vlan-machop-all
    
        rpc reset-vsi-machop {
          ext:node-ref "/l2vpn:l2vpn/l2vpn:instances/l2vpn:instance/l2vpn:vpls/mac-fwd:mac-hops/mac-fwd:mac-hop";
          description
            "Reset MAC hop info by VSI name.";
          input {
            leaf name {
              type string {
                length "1..31";
              }
              mandatory true;
              description "VSI name.";
            }
          }
        }  // rpc reset-vsi-machop
    
        rpc reset-vsi-machop-all {
          ext:node-ref "/l2vpn:l2vpn/l2vpn:instances/l2vpn:instance/l2vpn:vpls/mac-fwd:mac-hops/mac-fwd:mac-hop";
          description "Reset MAC hop info.";
        }  // rpc reset-vsi-machop-all
      }  // module huawei-mac-fwd
    

© 2023 YumaWorks, Inc. All rights reserved.