huawei-bras-rui

Bras RUI.

  • Version: 2019-10-31

    huawei-bras-rui@2019-10-31


    
      module huawei-bras-rui {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-bras-rui";
    
        prefix bras-rui;
    
        import huawei-aaa {
          prefix aaa;
        }
        import huawei-pub-type {
          prefix pub-type;
        }
        import ietf-inet-types {
          prefix inet;
        }
        import huawei-bras-ipv4-address-manage {
          prefix bras-ipv4-address-manage;
        }
        import huawei-bras-ipv6-address-manage {
          prefix bras-ipv6-address-manage;
        }
        import huawei-network-instance {
          prefix ni;
        }
        import huawei-tunnel-management {
          prefix tnlm;
        }
        import huawei-l3vpn {
          prefix l3vpn;
        }
        import huawei-rbs {
          prefix rbs;
        }
        import huawei-ifm {
          prefix ifm;
        }
        import huawei-extension {
          prefix ext;
        }
        import huawei-bfd {
          prefix bfd;
        }
        import huawei-route-monitor-group {
          prefix rmg;
        }
        import huawei-bras-user-manage {
          prefix bras-user-manage;
        }
        import huawei-monitor-group {
          prefix mg;
        }
    
        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 "Bras RUI.";
    
        revision "2019-10-31" {
          description
            "Modify container ip-vpns, backup-user-infos.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-10-17" {
          description
            "Add container rbp-lpu-infos, rbp-slave-mpu-infos, access-remark-macs, load-balance-hash-algorithm, accounting.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-04-07" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "rui";
    
        typedef common-state-type {
          type enumeration {
            enum "down" {
              value 1;
              description "Down state.";
            }
            enum "up" {
              value 2;
              description "Up state.";
            }
          }
          description
            "Defines the type of state.";
        }
    
        typedef mac-address-type {
          type enumeration {
            enum "even" {
              value 1;
              description "Even MAC Address.";
            }
            enum "odd" {
              value 2;
              description "Odd MAC Address.";
            }
          }
          description
            "Defines the type of MAC address.";
        }
    
        typedef hash-arithmetic-type {
          type enumeration {
            enum "arithmetic1" {
              value 1;
              description
                "The first hash arithmetic.";
            }
            enum "arithmetic2" {
              value 2;
              description
                "The second hash arithmetic.";
            }
          }
          description
            "Defines the type of hash arithmetic.";
        }
    
        container bras-rui {
          description "Bras RUI.";
          container global {
            description
              "Configure global config of bras RUI.";
            container rui-option {
              description
                "Configure global rui option code for DHCP and DHCPv6.";
              leaf dhcpv4 {
                type uint8 {
                  range "151..174";
                }
                default "151";
                description "DHCP option code.";
              }
    
              leaf dhcpv6 {
                type uint8 {
                  range "151..174";
                }
                default "151";
                description
                  "DHCPv6 option code.";
              }
            }  // container rui-option
    
            container peer-backup-batch-access {
              description
                "Configure enables users to go online during batch backup.";
              leaf status {
                type boolean;
                default "false";
                description
                  "Enable/disable peer backup batch access status.";
              }
            }  // container peer-backup-batch-access
    
            container peer-backup {
              description
                "Configure global peer backup.";
              leaf download-vrrp-delay-time {
                type uint8 {
                  range "0..60";
                }
                units "s";
                default "0";
                description
                  "Download vrrp table delay time.";
              }
    
              leaf trigger-speed {
                type uint16 {
                  range "0..400";
                }
                description
                  "Peer-backup rui-trigger-speed.";
              }
    
              leaf ttl {
                type uint8 {
                  range "0..15";
                }
                default "0";
                description "IP ttl.";
              }
            }  // container peer-backup
    
            container route-cost-auto-advertise {
              description
                "Configure route cost.";
              leaf enable {
                type boolean;
                default "false";
                description
                  "Enable/disable route cost.";
              }
    
              leaf exclude-loopback {
                when "../enable = 'true'";
                type boolean;
                default "false";
                description
                  "Enable/disable the function of automatically advertising the cost value of the loopback interface route.";
              }
            }  // container route-cost-auto-advertise
    
            container slow-reconciliation {
              description
                "Configure slow reconciliation in multi-device backup scenarios.";
              leaf enable {
                type boolean;
                default "true";
                description
                  "Enable/disable slow reconciliation in multi-device backup scenarios.";
              }
            }  // container slow-reconciliation
          }  // container global
    
          container backup-user-infos {
            config false;
            description
              "List of Statistics of Query Rui Backup User Info.";
            list backup-user {
              key "user-id user-name";
              config false;
              description
                "Statistics of Query Rui Backup User Info.";
              leaf user-id {
                type uint32 {
                  range "0..3145727";
                }
                config false;
                description "ID of a rui user.";
              }
    
              leaf user-name {
                type string {
                  length "1..253";
                }
                config false;
                description "Name of a user.";
              }
    
              leaf cid {
                type uint32 {
                  range "0..4294967295";
                }
                config false;
                description "User cid.";
              }
    
              leaf session-id {
                type uint32 {
                  range "0..4294967295";
                }
                config false;
                description "SessionId of user.";
              }
    
              leaf mac {
                type pub-type:mac-address;
                config false;
                description "Mac address.";
              }
    
              leaf pe-vlan {
                type uint16 {
                  range "0..65535";
                }
                config false;
                description "PeVLAN of user.";
              }
    
              leaf ce-vlan {
                type uint16 {
                  range "0..65535";
                }
                config false;
                description "CeVLAN of user.";
              }
    
              leaf vrrp-id {
                type uint8 {
                  range "0..255";
                }
                config false;
                description "VRRP Protocol Id.";
              }
    
              leaf ip {
                type string {
                  length "1..31";
                }
                config false;
                description "Ip address.";
              }
    
              leaf backup-id {
                type uint16 {
                  range "0..65535";
                }
                config false;
                description "Remote backup ID.";
              }
    
              leaf rbp-name {
                type string {
                  length "1..128";
                }
                config false;
                description "Name of an RBP.";
              }
    
              leaf process-id {
                type uint16 {
                  range "0..65535";
                }
                config false;
                description "RBS Index.";
              }
    
              leaf rbs-name {
                type string {
                  length "1..32";
                }
                config false;
                description
                  "Name of the RBS bound to an RBP.";
              }
    
              leaf interface {
                type leafref {
                  path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name";
                }
                config false;
                description "Interface name.";
              }
    
              leaf ipv4-vpn {
                type string {
                  length "1..31";
                }
                config false;
                description "IPv4 vpn name.";
              }
    
              leaf ipv6-vpn {
                type string {
                  length "1..31";
                }
                config false;
                description "IPv6 vpn name.";
              }
    
              leaf online-pos {
                type string {
                  length "1..15";
                }
                config false;
                description
                  "User Online Position (From local server or remote server).";
              }
    
              leaf link-local-address {
                type string {
                  length "1..49";
                }
                config false;
                description "User Lan Address.";
              }
    
              leaf wan-address {
                type string {
                  length "1..49";
                }
                config false;
                description "User Wan Address.";
              }
    
              leaf wan-prefix-len {
                type string {
                  length "1..3";
                }
                config false;
                description
                  "User Wan Address Prefix Length.";
              }
    
              leaf user-mode {
                type string {
                  length "1..15";
                }
                config false;
                description
                  "Rui User Backup Mode.";
              }
            }  // list backup-user
          }  // container backup-user-infos
        }  // container bras-rui
      }  // module huawei-bras-rui
    

© 2023 YumaWorks, Inc. All rights reserved.