huawei-if-ip

This module contains a collection of YANG definitions for configuring IP implementations. Copyright (C) 2019 Huawei Technologies...

  • Version: 2021-10-13

    huawei-if-ip@2021-10-13


    
      module huawei-if-ip {
    
        yang-version 1;
    
        namespace "urn:huawei:yang:huawei-if-ip";
    
        prefix if-ip;
    
        import ietf-inet-types {
          prefix inet;
        }
        import huawei-ifm {
          prefix ifm;
        }
        import huawei-network-instance {
          prefix ni;
        }
        import huawei-extension {
          prefix ext;
        }
        import huawei-l3vpn {
          prefix l3vpn;
        }
    
        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
          "This module contains a collection of YANG definitions for
    configuring IP implementations.
    Copyright (C) 2019 Huawei Technologies Co., Ltd. All rights reserved.";
    
        revision "2021-10-13" {
          description "Add Discarded Tags.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-06-30" {
          description "Add units attribute.";
          reference
            "Huawei private.";
    
        }
    
        revision "2020-02-07" {
          description
            "The modifications in the code are synchronized to the YANG file.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-04-10" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "interface-mgr";
    
        typedef ipv4-address-config-type {
          type enumeration {
            enum "main" {
              value 1;
              description
                "Primary address of an interface.";
            }
            enum "sub" {
              value 32;
              description
                "Secondary address of an interface.";
            }
          }
          description "IPv4 address type.";
        }
    
        typedef ipv4-address-state-type {
          type enumeration {
            enum "main" {
              value 1;
              description
                "Primary address of an interface.";
            }
            enum "sub" {
              value 32;
              description
                "Secondary address of an interface.";
            }
            enum "neg" {
              value 4;
              description
                "Negotiated address of an interface.";
            }
            enum "unnumber" {
              value 2;
              description
                "Unnumbered address of an interface.";
            }
          }
          description "IPv4 address type.";
        }
    
        typedef ipv4-netmask {
          type string {
            length "9..15";
            pattern
              '((([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))';
          }
          description
            "IPv4 mask support mask format.";
        }
    
        typedef negotiation-type {
          type enumeration {
            enum "ppp-negotiate" {
              value 0;
              description
                "PPP negotiation type.";
            }
          }
          description
            "Negotiation address type.";
        }
    
        typedef ipv6-address-config-type {
          type enumeration {
            enum "global" {
              value 1;
              description
                "Global unicast address.";
            }
            enum "link-local" {
              value 2;
              description "Link local address.";
            }
            enum "anycast" {
              value 6;
              description "Anycast address.";
            }
          }
          description "IPv6 address type.";
        }
    
        typedef ipv6-address-state-type {
          type enumeration {
            enum "global" {
              value 1;
              description
                "Global unicast address.";
            }
            enum "link-local" {
              value 2;
              description "Link local address.";
            }
            enum "auto-link-local" {
              value 3;
              description
                "Auto link local address.";
            }
            enum "anycast" {
              value 6;
              description "Anycast address.";
            }
          }
          description "IPv6 address type.";
        }
    
        typedef ipv6-address-algorithm-type {
          type enumeration {
            enum "none" {
              value 0;
              description "None.";
            }
            enum "cga" {
              value 1;
              description "CGA.";
            }
            enum "eui64" {
              value 2;
              description "EUI 64.";
            }
          }
          description
            "IPv6 address algorithm type.";
        }
    
        typedef ipv6-status-type {
          type enumeration {
            enum "preferred" {
              value 1;
              description
                "This is a valid address that can appear as the destination or source address of a packet.";
            }
            enum "inaccessible" {
              value 4;
              description
                "The address is not accessible because the interface to which this address is assigned is not operational.";
            }
            enum "unknown" {
              value 5;
              description
                "The status cannot be determined for some reason.";
            }
            enum "tentative" {
              value 6;
              description
                "The uniqueness of the address on the link is being verified. Addresses in this state should not be used for general communication and should only be used to determine the uniqueness of the address.";
            }
            enum "duplicate" {
              value 7;
              description
                "The address has been determined to be non-unique on the link and so must not be used.";
            }
          }
          description "Status of an address.";
        }
      }  // module huawei-if-ip
    

© 2023 YumaWorks, Inc. All rights reserved.