huawei-bras-vpn

Bras vpn.

  • Version: 2020-03-03

    huawei-bras-vpn@2020-03-03


    
      module huawei-bras-vpn {
    
        yang-version 1;
    
        namespace
          'urn:huawei:yang:huawei-bras-vpn';
    
        prefix brasvpn;
    
        import huawei-aaa {
          prefix aaa;
        }
        import huawei-bras-basic-access {
          prefix bras-basic-access;
        }
        import huawei-extension {
          prefix ext;
        }
        import huawei-ifm {
          prefix ifm;
        }
        import huawei-network-instance {
          prefix ni;
        }
        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 "Bras vpn.";
    
        revision "2020-03-03" {
          description "Modify description.";
          reference
            "Huawei private.";
    
        }
    
        revision "2019-03-26" {
          description "Init revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "bras-control";
    
        container bras-vpn {
          description "Bras vpn configurations.";
          container vpn-users {
            config false;
            description "List of vpn users.";
            list vpn-user {
              key "user-type vpn-instance";
              description
                "Statistics of vpn users.";
              leaf user-type {
                type enumeration {
                  enum "pppoe" {
                    value 1;
                    description
                      "PPPoE access users.";
                  }
                  enum "pppoa" {
                    value 2;
                    description
                      "PPPoA access users.";
                  }
                  enum "ipoe" {
                    value 3;
                    description
                      "IPOE access users.";
                  }
                  enum "lns" {
                    value 4;
                    description
                      "Lns access users.";
                  }
                  enum "lac" {
                    value 5;
                    description
                      "Lac access users.";
                  }
                  enum "ipv4" {
                    value 6;
                    description
                      "IPv4 access users.";
                  }
                  enum "ipv6" {
                    value 7;
                    description
                      "IPv6 access users.";
                  }
                  enum "dual" {
                    value 8;
                    description
                      "Dual-stack access users.";
                  }
                  enum "all" {
                    value 9;
                    description
                      "All type access users.";
                  }
                }
                description "User type.";
              }
    
              leaf vpn-instance {
                type leafref {
                  path "/ni:network-instance/ni:instances/ni:instance/ni:name";
                }
                description "Vpn name.";
              }
    
              leaf user-number {
                type int32 {
                  range "0..256000";
                }
                description
                  "The number of vpn access users.";
              }
            }  // list vpn-user
          }  // container vpn-users
        }  // container bras-vpn
      }  // module huawei-bras-vpn
    

© 2023 YumaWorks, Inc. All rights reserved.