huawei-bras-pppox-access

PPPoX Access.

  • Version: 2019-04-20

    huawei-bras-pppox-access@2019-04-20


    
      module huawei-bras-pppox-access {
    
        yang-version 1;
    
        namespace
          "urn:huawei:yang:huawei-bras-pppox-access";
    
        prefix bras-pppox-access;
    
        import huawei-ifm {
          prefix ifm;
        }
        import huawei-pub-type {
          prefix pub-type;
        }
        import ietf-inet-types {
          prefix inet;
        }
        import huawei-extension {
          prefix ext;
        }
        import huawei-bras-basic-access {
          prefix bras-basic-access;
        }
        import huawei-acl {
          prefix acl;
        }
        import huawei-devm {
          prefix devm;
        }
        import huawei-aaa {
          prefix aaa;
        }
        import huawei-bras-cu-controller {
          prefix bras-cu-controller;
        }
        import huawei-ethernet {
          prefix ethernet;
        }
        import huawei-fim-ifm {
          prefix fim-ifm;
        }
    
        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 "PPPoX Access.";
    
        revision "2019-04-20" {
          description "Initial revision.";
          reference
            "Huawei private.";
    
        }
    
        ext:task-name "bras-control";
    
        typedef auth-mode-type {
          type enumeration {
            enum "pap" {
              value 1;
              description
                "PAP authentication mode.";
            }
            enum "chap" {
              value 2;
              description
                "CHAP authentication mode.";
            }
            enum "mschapv1" {
              value 3;
              description
                "MSCHAPv1 authentication mode.";
            }
            enum "mschapv2" {
              value 4;
              description
                "MSCHAPv2 authentication mode.";
            }
          }
          description
            "Authentication mode type.";
        }
    
        typedef padx-send-type {
          type enumeration {
            enum "ipcp" {
              value 1;
              description "Ipcp send mode.";
            }
            enum "ipv6cp" {
              value 2;
              description "IPv6cp send mode.";
            }
            enum "firstncp" {
              value 3;
              description "Firstncp send mode.";
            }
            enum "lastncp" {
              value 4;
              description "Lastncp send mode.";
            }
            enum "allncp" {
              value 5;
              description "Allncp send mode.";
            }
          }
          description "Padx send type.";
        }
    
        typedef urpf-ip-type {
          type enumeration {
            enum "ipv4" {
              value 1;
              description
                "PPPoX user source IPv4 address type.";
            }
            enum "ipv6" {
              value 2;
              description
                "PPPoX user source IPv6 address type.";
            }
          }
          description "IP type.";
        }
    
        typedef authentication-type {
          type enumeration {
            enum "chap" {
              value 0;
              description
                "Indicates the CHAP mode.";
            }
            enum "pap" {
              value 1;
              description
                "Indicates the PAP mode.";
            }
            enum "mschap-v1" {
              value 2;
              description
                "Indicates the MSCHAPv1 mode.";
            }
            enum "mschap-v2" {
              value 3;
              description
                "Indicates the MSCHAPv2 mode.";
            }
            enum "none" {
              value 4;
              description "None.";
            }
          }
          description
            "Indicate the mode of PPP authentication for a PPPoE user in a domain.";
        }
    
        container bras-pppox-access {
          description "PPPoX Access.";
          container ppp-chastens {
            description
              "List of restricts the number of connection requests from a PPP user.";
            list ppp-chasten {
              ext:generated-by "system" {
                ext:filter "quick-offline='false'";
                ext:can-be-deleted;
                description "The ppp connection chasten whose request-sessions is 6 and request-period is 60 seconds and block-period is 300 seconds, is generated by system automatically.";
              }
              key "quick-offline";
              description
                "Configure the number of connection requests from a PPP user.";
              leaf quick-offline {
                type boolean;
                description
                  "Enable/disable specifies the maximum number of times that a PPP user can go offline immediately after going online during a specific time period. If a large number of users go offline immediately after going online on a live network, the CPU is overloaded or the RADIUS server may go Down. After you specify quickoffline, PPP user accounts are frozen for blocking-period seconds if the PPP users go offline immediately after going online for request-sessions times during request-period seconds.";
              }
    
              choice chasten-type {
                default "chasten";
                description "Chasten type.";
                case chasten {
                  description "Chasten.";
                  leaf chasten {
                    type empty;
                    description
                      "Restricts the number of connection requests from a PPP user is restricted based on MAC addresses.";
                  }
                }  // case chasten
    
                case option105 {
                  description
                    "Option105 chasten.";
                  leaf option105 {
                    type empty;
                    must
                      "../multi-sessions-per-mac = 'false'";
                    description
                      "Restricts the number of connection requests from a PPP user based on the Option 105 information, it can not support with one-to-many mappings between one MAC address and multiple PPP sessions at the same time.";
                  }
                }  // case option105
              }  // choice chasten-type
    
              leaf padi-discard {
                type boolean;
                default "false";
                description
                  "Enable/disable specifies that the packets of the users whose accounts are frozen are discarded in the PPPoE active discovery initiation (PADI) phase. By default, the packets of the users whose accounts are frozen are discarded in the PPPoE active discovery request (PADR) phase.";
              }
    
              leaf multi-sessions-per-mac {
                type boolean;
                must
                  "not(../multi-sessions-per-mac = 'true' and ../option105)";
                default "false";
                description
                  "Enable/disable restricts the number of PPP connection requests based on the MAC address in scenarios in which one-to-many mappings between one MAC address and multiple PPP sessions are configured.";
              }
    
              leaf request-sessions {
                type uint32 {
                  range "1..10000";
                }
                mandatory true;
                description
                  "Specifies the number of PPP connection requests.";
              }
    
              leaf request-period {
                type uint32 {
                  range "1..3600";
                }
                units "s";
                mandatory true;
                description
                  "Specifies the period for sending PPP connection requests in seconds.";
              }
    
              leaf block-period {
                type uint32 {
                  range "0..3600";
                }
                units "s";
                mandatory true;
                description
                  "Specifies the period when a PPP connection request is blocked in seconds.";
              }
            }  // list ppp-chasten
          }  // container ppp-chastens
    
          container ppp-echo-slow-acl {
            description
              "Configure PPP slow reply for PPP echo packets with a specified MAC address.";
            leaf acl-number {
              type leafref {
                path "/acl:acl/acl:groups/acl:group/acl:identity";
              }
              must
                "/acl:acl/acl:groups/acl:group[acl:identity=current()]/acl:type='link'";
              description
                "Specifies an ACL number.";
            }
          }  // container ppp-echo-slow-acl
    
          container user-threshold {
            description
              "Configure PPPoE user warning threshold.";
            leaf slot-warning-value {
              type uint8 {
                range "1..100";
              }
              default "100";
              description
                "Sets an alarm threshold for PPP users allowed to access an interface board. By default, the alarm threshold for PPP users allowed to access an interface board is 100.";
            }
    
            leaf entire-warning-value {
              type uint8 {
                range "1..100";
              }
              default "100";
              description
                "Sets an alarm threshold for PPP users allowed to access the entire. By default, the alarm threshold for PPP users allowed to access the entire is 100.";
            }
          }  // container user-threshold
    
          container bgp-over-pppoe-enable {
            description
              "Configure BGP route forwarding between a CPE and BRAS.";
            leaf over-pppoe-enable {
              type boolean;
              default "false";
              description
                "Enable/disable BGP route forwarding between a CPE and BRAS.";
            }
          }  // container bgp-over-pppoe-enable
    
          container pppoe-user-aaa {
            description "Configure PPPoE user.";
            leaf name-check {
              type boolean;
              default "false";
              description
                "Enable/disable the device to check whether a login request from a PPPopE user contains a user name and to deny the request if it does not contain a user name.";
            }
    
            leaf gateway-loopback {
              type boolean;
              default "false";
              description
                "Enable/disable a loopback address as the preferentially used gateway address for PPPoE users who receive IP addresses from the RADIUS server.";
            }
    
            leaf offline-standardize {
              type boolean;
              default "false";
              description
                "Enable/disable the conversion of the PPPoE user offline reason.";
            }
          }  // container pppoe-user-aaa
    
          container pppoe-rui-session-segment {
            description
              "Configure PPPoE RUI remote-mac session-id segment.";
            leaf start-session-id {
              type uint16 {
                range "1..65534";
              }
              default "1";
              description "Start session ID.";
            }
    
            leaf end-session-id {
              type uint16 {
                range "1..65534";
              }
              must
                "../end-session-id >= ../start-session-id";
              default "65534";
              description "End session ID.";
            }
          }  // container pppoe-rui-session-segment
    
          container ppp-vlan-subinterface {
            description
              "Configure the Statistics of PPP qinq Sub Interface.";
            leaf statistic-enable {
              type boolean;
              default "false";
              description
                "Enable/disable statistics.";
            }
          }  // container ppp-vlan-subinterface
    
          container pppoe-option82-sub-option {
            description
              "Configure enable a device to encapsulate sub-options into the Option 82 field of DHCP Discover messages to be sent to the DHCP server in scenarios where IP addresses are assigned to PPPoE users from a remote address pool.";
            leaf option82-sub-option-enable {
              type boolean;
              default "false";
              description
                "Enable/disable whether a device is enabled to encapsulate sub-options into the Option 82 field of DHCP Discover messages to be sent to the DHCP server in scenarios where IP addresses are assigned to PPPoE users from a remote address pool.";
            }
          }  // container pppoe-option82-sub-option
    
          container pppoe-server {
            description
              "Configure information about the PPPoE server.";
            leaf ncp-limit-enable {
              type boolean;
              default "false";
              description
                "Enable/disable whether the function to limit the number of times for interface boards to receive IPCP negotiation packets is enabled. 0: The function is not enabled. 1: The function is enabled.";
            }
    
            leaf same-user-forbid-flag {
              type boolean;
              default "false";
              description
                "Enable/disable allow access of users with same MAC address or not.";
            }
    
            leaf padt-delay-flag {
              type boolean;
              default "false";
              description
                "Enable/disable whether PADT packets of PPPoE users are delayed to be sent.";
            }
    
            leaf remote-mac-max-session-number {
              type uint32 {
                range "1..16384";
              }
              default "1";
              description
                "Maximum number of sessions that can be negotiated by the remote MAC address.";
            }
    
            leaf check-location {
              type boolean;
              default "false";
              description
                "Enable/disable users with the same location information are not allowed to go online after the check-location is configured. When a new user goes online at the same location, the old user is forced to go offline.";
            }
    
            leaf padi-mac-check {
              when "../check-location='true'";
              type boolean;
              default "false";
              description
                "Enable/disable a device to check MAC address conflicts when it processes PADI packets.";
            }
    
            leaf max-pay-load-flag {
              type boolean;
              default "false";
              description
                "Enable/disable whether the MRU is negotiated.";
            }
          }  // container pppoe-server
    
          container ppp-user-infos {
            config false;
            description
              "List of the specify PPP protocol informations.";
            list ppp-user-info {
              key "user-id";
              config false;
              description
                "Statistics of the specify PPP protocol information.";
              leaf user-id {
                type uint32;
                config false;
                description
                  "The Id of the online user.";
              }
    
              leaf user-name {
                ext:support-filter "true";
                type string {
                  length "1..253";
                }
                config false;
                description
                  "The name of the online user.";
              }
    
              leaf circuit-id {
                ext:support-filter "true";
                type string {
                  length "1..200";
                }
                config false;
                description
                  "The circuit id of the online user.";
              }
    
              leaf remote-id {
                ext:support-filter "true";
                type string {
                  length "1..200";
                }
                config false;
                description
                  "The remote id of the online user.";
              }
    
              leaf ipv4-address {
                ext:support-filter "true";
                type inet:ipv4-address-no-zone;
                config false;
                description
                  "IPv4 address of the online user.";
              }
    
              leaf ipv6-address {
                ext:support-filter "true";
                type inet:ipv6-address-no-zone;
                config false;
                description
                  "IPv6 address of the online user.";
              }
    
              leaf vpn-instance-name {
                ext:support-filter "true";
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The vpn instance name of the online user.";
              }
    
              leaf session-id {
                type uint32;
                config false;
                description "The session id.";
              }
    
              leaf mac {
                type pub-type:mac-address {
                  length "0..255";
                }
                config false;
                description
                  "The Mac address of online user.";
              }
    
              leaf interface-name {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Display of specified interface.";
              }
    
              leaf pe-vlan {
                type string {
                  length "1..31";
                }
                config false;
                description "The pe VLAN.";
              }
    
              leaf ce-vlan {
                type string {
                  length "1..31";
                }
                config false;
                description "The ce VLAN.";
              }
    
              leaf ip {
                type string {
                  length "1..31";
                }
                config false;
                description "IP address.";
              }
    
              leaf gateway {
                type string {
                  length "1..31";
                }
                config false;
                description "The gate way.";
              }
    
              leaf user-ip-netmask-client {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The user IP netmask of client.";
              }
    
              leaf user-ip-netmask-radius {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The user IP netmask of radius.";
              }
    
              leaf user-ip-netmask-result {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The user IP netmask of result.";
              }
    
              leaf primary-dns {
                type string {
                  length "1..31";
                }
                config false;
                description "The primary dns.";
              }
    
              leaf second-dns {
                type string {
                  length "1..31";
                }
                config false;
                description "The second dns.";
              }
    
              leaf ipv6-interfaceid-type {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The IPv6 interface ID type.";
              }
    
              leaf ipv6-local-interfaceid {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The IPv6 local interface ID.";
              }
    
              leaf ipv6-peer-interfaceid {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The IPv6 peer interface ID.";
              }
    
              leaf user-ip-type {
                type string {
                  length "1..31";
                }
                config false;
                description "The user iptype.";
              }
    
              leaf authentication {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The authentication mode.";
              }
    
              leaf mtu {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The max transmitation number of the mtu.";
              }
    
              leaf mru {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The max receive number of the mru.";
              }
    
              leaf magic-number {
                type string {
                  length "1..31";
                }
                config false;
                description "The magic number.";
              }
    
              leaf called-number {
                type string {
                  length "1..31";
                }
                config false;
                description "The called number.";
              }
    
              leaf calling-number {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The calling number.";
              }
    
              leaf keep-alive-time {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The keep alive time.";
              }
    
              leaf retransmit-times {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The retransmit times.";
              }
    
              leaf datacheck {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The data is check or not.";
              }
    
              leaf negotiation-timer {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The negotiation timer.";
              }
    
              leaf request-timeout {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The request timeout.";
              }
    
              leaf host-name {
                type string {
                  length "1..31";
                }
                config false;
                description "The host name.";
              }
    
              leaf challenge-retry-times {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The challenge retry times.";
              }
    
              leaf challenge-timeout {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The challenge timeout.";
              }
    
              leaf min-challenge-length {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The min challenge length.";
              }
    
              leaf max-challenge-length {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The max challenge length.";
              }
    
              leaf challenge-retry-times-msv1 {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The challenge retry times of MSV1.";
              }
    
              leaf challenge-timeout-msv1 {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The challenge timeout of MSV1.";
              }
    
              leaf min-challenge-length-msv1 {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The min challenge length of MSV1.";
              }
    
              leaf max-challenge-length-msv1 {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The max challenge length of MSV1.";
              }
    
              leaf challenge-retry-times-msv2 {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The challenge retry times of MSV2.";
              }
    
              leaf challenge-timeout-msv2 {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The challenge timeout of MSV2.";
              }
    
              leaf min-challenge-length-msv2 {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The min challenge length of MSV2.";
              }
    
              leaf max-challenge-length-msv2 {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The max challenge length of MSV2.";
              }
    
              leaf lac-peer-ip {
                type string {
                  length "1..31";
                }
                config false;
                description "The lac peer IP.";
              }
    
              leaf lac-peer-tunnel-id {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lac peer tunnel id.";
              }
    
              leaf lac-peer-session-id {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lac peer session id.";
              }
    
              leaf lac-local-ip {
                type string {
                  length "1..31";
                }
                config false;
                description "The lac local IP.";
              }
    
              leaf lac-local-tunnel-id {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lac local tunnel id.";
              }
    
              leaf lac-local-session-id {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lac local session id.";
              }
    
              leaf lac-source-udp-port {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lac source udp port.";
              }
    
              leaf lac-destination-udp-port {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lac destination udpport.";
              }
    
              leaf lns-peer-ip {
                type string {
                  length "1..31";
                }
                config false;
                description "The lns peer IP.";
              }
    
              leaf lns-peer-tunnel-id {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lns peer tunnel id.";
              }
    
              leaf lns-peer-session-id {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lns peer session id.";
              }
    
              leaf lns-local-ip {
                type string {
                  length "1..31";
                }
                config false;
                description "The lns local IP.";
              }
    
              leaf lns-local-tunnel-id {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lns local tunnel id.";
              }
    
              leaf lns-local-session-id {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lns local session id.";
              }
    
              leaf lns-source-udp-port {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lns source udp port.";
              }
    
              leaf lns-destination-udp-port {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "The lns destination udp port.";
              }
            }  // list ppp-user-info
          }  // container ppp-user-infos
    
          container bras-pppoe-user-delays {
            config false;
            description
              "List of PPPoE User Detecting Delay Informations.";
            list bras-pppoe-user-delay {
              key "user-mac";
              config false;
              description
                "Statistics of PPPoE User Detecting Delay Informations.";
              leaf user-mac {
                type pub-type:mac-address;
                config false;
                description "User Mac address.";
              }
    
              leaf detecting-delay-time {
                type uint32;
                config false;
                description
                  "User Detecting Delay Time.";
              }
    
              leaf time-stamp {
                type uint32;
                config false;
                description "Acquisition Time.";
              }
            }  // list bras-pppoe-user-delay
          }  // container bras-pppoe-user-delays
    
          container ppp-chasten-infos {
            config false;
            description
              "List of chastens information.";
            list ppp-chasten-info {
              key "slot-id";
              config false;
              description
                "Statistics of chasten information.";
              leaf slot-id {
                type string {
                  length "1..15";
                }
                config false;
                description
                  "Slot number information.";
              }
    
              leaf mac-address {
                ext:support-filter "true";
                type pub-type:mac-address {
                  length "0..255";
                }
                config false;
                description
                  "Mac address information.";
              }
    
              leaf circuit-id {
                ext:support-filter "true";
                type string {
                  length "1..200";
                }
                config false;
                description "Circuit ID.";
              }
    
              leaf remote-id {
                ext:support-filter "true";
                type string {
                  length "1..200";
                }
                config false;
                description "Remote ID.";
              }
    
              leaf vlan-mac-fail {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN mac fail number.";
              }
    
              leaf vlan-mac-qucik-offline {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN mac quick offline.";
              }
    
              leaf vlan-option-fail {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN option105 fail number.";
              }
    
              leaf vlan-option-quick {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN option105 quick number.";
              }
    
              leaf global-mac-fail {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global mac fail number.";
              }
    
              leaf global-mac-quick-offline {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global mac quick offline number.";
              }
    
              leaf global-option-fail {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global option105 fail number.";
              }
    
              leaf global-option-quick {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global option105 quick number.";
              }
    
              leaf global-online-fail {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global online fail number.";
              }
    
              leaf global-quick-offline {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global quick offline number.";
              }
    
              leaf vlan-online-fail {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN online fail number.";
              }
    
              leaf vlan-quick-offline {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN quick offline number.";
              }
    
              leaf global-online-fail-number {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global online fail number.";
              }
    
              leaf global-quick-offline-number {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global quick offline number.";
              }
    
              leaf vlan-online-fail-number {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN online fail number.";
              }
    
              leaf vlan-quick-offline-number {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN quick offline number.";
              }
    
              leaf index {
                type string {
                  length "1..200";
                }
                config false;
                description
                  "Display index information.";
              }
    
              leaf interface-name {
                type string {
                  length "1..49";
                }
                config false;
                description
                  "Interface name information.";
              }
    
              leaf pe-vlan {
                type string {
                  length "1..200";
                }
                config false;
                description "Pe VLAN ID.";
              }
    
              leaf ce-vlan {
                type string {
                  length "1..200";
                }
                config false;
                description "Ce VLAN ID.";
              }
    
              leaf free-time {
                type string {
                  length "1..200";
                }
                config false;
                description
                  "Free time information.";
              }
    
              leaf chasten-type {
                type string {
                  length "1..200";
                }
                config false;
                description
                  "Chasten type information.";
              }
            }  // list ppp-chasten-info
          }  // container ppp-chasten-infos
    
          container ppp-option105-chasten-statistics {
            config false;
            description
              "List of option105 chastens information.";
            list ppp-option105-chasten-statistic {
              key "slot-id";
              config false;
              description
                "Statistics of option105 chasten information.";
              leaf slot-id {
                type string {
                  length "1..15";
                }
                config false;
                description
                  "Slot number information.";
              }
    
              leaf circuit-id {
                type string {
                  length "1..200";
                }
                config false;
                description "Circuit ID.";
              }
    
              leaf remote-id {
                type string {
                  length "1..200";
                }
                config false;
                description "Remote ID.";
              }
    
              leaf mac-address {
                type string {
                  length "1..200";
                }
                config false;
                description
                  "Mac address information.";
              }
    
              leaf global-online-fail {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global online fail number.";
              }
    
              leaf global-quick-offline {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global quick offline number.";
              }
    
              leaf vlan-online-fail {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN online fail number.";
              }
    
              leaf vlan-quick-offline {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN quick offline number.";
              }
    
              leaf global-online-fail-number {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global online fail number.";
              }
    
              leaf global-quick-offline-number {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "Global quick offline number.";
              }
    
              leaf vlan-online-fail-number {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN online fail number.";
              }
    
              leaf vlan-quick-offline-number {
                type string {
                  length "1..31";
                }
                config false;
                description
                  "VLAN quick offline number.";
              }
    
              leaf index {
                type string {
                  length "1..200";
                }
                config false;
                description
                  "Display index information.";
              }
    
              leaf interface-name {
                type string {
                  length "1..49";
                }
                config false;
                description
                  "Interface name information.";
              }
    
              leaf pe-vlan {
                type string {
                  length "1..200";
                }
                config false;
                description "Pe VLAN ID.";
              }
    
              leaf ce-vlan {
                type string {
                  length "1..200";
                }
                config false;
                description "Ce VLAN ID.";
              }
    
              leaf free-time {
                type string {
                  length "1..200";
                }
                config false;
                description
                  "Free time information.";
              }
    
              leaf chasten-type {
                type string {
                  length "1..200";
                }
                config false;
                description
                  "Chasten type information.";
              }
            }  // list ppp-option105-chasten-statistic
          }  // container ppp-option105-chasten-statistics
        }  // container bras-pppox-access
    
        rpc reset-pppoe-user-login-failure-number {
          ext:node-ref "/devm:devm/devm:mpu-boards/devm:mpu-board/bras-pppox-access:bras-pppox/bras-pppox-access:access-ip-limit";
          ext:node-ref "/devm:devm/devm:lpu-boards/devm:lpu-board/bras-pppox-access:bras-pppox/bras-pppox-access:access-ip-limit";
          description
            "Reset statistics about login failures because the number of PPPOE users on a board exceeds the upper limit.";
          input {
            leaf board-position {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Board position.";
            }
          }
        }  // rpc reset-pppoe-user-login-failure-number
    
        rpc reset-ppp-slot-statistic {
          ext:node-ref "/devm:devm/devm:lpu-boards/devm:lpu-board/bras-pppox-access:bras-pppox/bras-pppox-access:ppp-slot-statistic";
          ext:node-ref "/devm:devm/devm:mpu-boards/devm:mpu-board/bras-pppox-access:bras-pppox/bras-pppox-access:ppp-slot-statistic";
          ext:node-ref "/bras-cu-controller:bras-cu-controller/bras-cu-controller:resource-upboards/bras-cu-controller:resource-upboard/bras-pppox-access:pppox/bras-pppox-access:ppp-slot-statistic";
          description
            "Reset PPP statistics of slot.";
          input {
            leaf board-position {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Board position.";
            }
          }
        }  // rpc reset-ppp-slot-statistic
    
        rpc reset-pppoe-slot-statistic {
          ext:node-ref "/devm:devm/devm:lpu-boards/devm:lpu-board/bras-pppox-access:bras-pppox/bras-pppox-access:pppoe-slot-statistic";
          ext:node-ref "/devm:devm/devm:mpu-boards/devm:mpu-board/bras-pppox-access:bras-pppox/bras-pppox-access:pppoe-slot-statistic";
          ext:node-ref "/bras-cu-controller:bras-cu-controller/bras-cu-controller:resource-upboards/bras-cu-controller:resource-upboard/bras-pppox-access:pppox/bras-pppox-access:pppoe-slot-statistic";
          description
            "Reset PPPoE statistics of slot.";
          input {
            leaf board-position {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Board position.";
            }
          }
        }  // rpc reset-pppoe-slot-statistic
    
        rpc reset-ppp-interface-statistic {
          ext:node-ref "/ifm:ifm/ifm:interfaces/ifm:interface/bras-basic-access:bas/bras-pppox-access:ppp-bas-statistics";
          description
            "Reset PPP statistics of interface.";
          input {
            leaf interface-name {
              type string {
                length "1..49";
              }
              mandatory true;
              description "Interface name.";
            }
          }
        }  // rpc reset-ppp-interface-statistic
    
        rpc reset-pppoe-interface-statistic {
          ext:node-ref "/ifm:ifm/ifm:interfaces/ifm:interface/bras-basic-access:bas/bras-pppox-access:pppoe-bas-statics";
          description
            "Reset PPPoE statistics of specified interface.";
          input {
            leaf interface-name {
              type string {
                length "1..49";
              }
              mandatory true;
              description "Interface name.";
            }
          }
        }  // rpc reset-pppoe-interface-statistic
    
        rpc reset-chasten-ppp-user-by-mac {
          ext:node-ref "/bras-pppox-access:bras-pppox-access/bras-pppox-access:ppp-chasten-infos";
          description
            "Reset PPP user's chasten information by Mac address.";
          input {
            leaf board-position {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Board position.";
            }
    
            leaf mac {
              type pub-type:mac-address {
                length "0..255";
              }
              mandatory true;
              description "Mac address.";
            }
          }
        }  // rpc reset-chasten-ppp-user-by-mac
    
        rpc reset-chasten-ppp-user-by-option105 {
          ext:node-ref "/bras-pppox-access:bras-pppox-access/bras-pppox-access:ppp-option105-chasten-statistics";
          description
            "Reset PPP user's chasten information of option105 by circuit id or remote id.";
          input {
            leaf board-position {
              type string {
                length "1..32";
              }
              mandatory true;
              description "Board position.";
            }
    
            choice id-type {
              mandatory true;
              description "ID type.";
              case circuit-id {
                description "Circuit ID.";
                leaf circuit-id {
                  type string {
                    length "1..200";
                  }
                  mandatory true;
                  description
                    "Reset PPP user's chasten information by Circuit ID.";
                }
              }  // case circuit-id
    
              case remote-id {
                description "Remote ID.";
                leaf remote-id {
                  type string {
                    length "1..200";
                  }
                  mandatory true;
                  description
                    "Reset PPP user's chasten information by Remote ID.";
                }
              }  // case remote-id
            }  // choice id-type
          }
        }  // rpc reset-chasten-ppp-user-by-option105
    
        rpc reset-urpf-discard-statistic {
          ext:node-ref "/devm:devm/devm:mpu-boards/devm:mpu-board/bras-pppox-access:bras-pppox/bras-pppox-access:urpf-discard-statistics";
          ext:node-ref "/devm:devm/devm:lpu-boards/devm:lpu-board/bras-pppox-access:bras-pppox/bras-pppox-access:urpf-discard-statistics";
          description
            "Reset the count of all ppp-user urpf discard packet statistics.";
          input {
            leaf reset-flag {
              type empty;
              description "Clear all flag.";
            }
          }
        }  // rpc reset-urpf-discard-statistic
    
        rpc reset-specified-urpf-statistic {
          ext:node-ref "/devm:devm/devm:mpu-boards/devm:mpu-board/bras-pppox-access:bras-pppox/bras-pppox-access:urpf-discard-statistics";
          ext:node-ref "/devm:devm/devm:lpu-boards/devm:lpu-board/bras-pppox-access:bras-pppox/bras-pppox-access:urpf-discard-statistics";
          description
            "Reset the count of specified ppp-user urpf discard packet statistics.";
          input {
            leaf ip-type {
              type urpf-ip-type;
              mandatory true;
              description
                "PPPoX user source address type.";
            }
    
            leaf board-position {
              type string {
                length "1..32";
              }
              mandatory true;
              description "The available slot.";
            }
          }
        }  // rpc reset-specified-urpf-statistic
      }  // module huawei-bras-pppox-access
    

© 2023 YumaWorks, Inc. All rights reserved.