DAA
Data Model
The data model file matching Destination Address Accounting (DAA) is huawei-aaa.yang.
Object |
Description |
Value | Remarks |
---|---|---|---|
/huawei-aaa:aaa/global/traffic-group/traffic-group-item/name |
Indicates the name of a traffic group. |
The value is a string of 1 to 31 case-sensitive characters. It cannot be - or -- and cannot contain spaces or the following special characters: / \ : < > | @ ' % * " ?. |
N/A |
/huawei-aaa:aaa/global/traffic-group/traffic-group-enable |
Applies a traffic group globally. |
The value must be the name of an existing traffic group. |
N/A |
/huawei-aaa:aaa/global/traffic-group/traffic-group-item/acl-tariff-level/acl-id |
Indicates an IPv4 ACL for matching traffic. |
The value is an integer in the range from 3000 to 3999. |
N/A |
/huawei-aaa:aaa/global/traffic-group/traffic-group-item/acl-tariff-level/traffic-level |
Indicates the tariff level for traffic matching an IPv4 ACL. |
The value is an integer in the range from 1 to 6. |
N/A |
/huawei-aaa:aaa/global/traffic-group/traffic-group-item/acl-tariff-level-ipv6/acl-id |
Indicates an IPv6 ACL for matching traffic. |
The value is an integer in the range from 3000 to 3999. |
N/A |
/huawei-aaa:aaa/global/traffic-group/traffic-group-item/acl-tariff-level-ipv6/traffic-level |
Indicates the tariff level for traffic matching an IPv6 ACL. |
The value is an integer that ranges from 1 to 6. |
N/A |
Configuring a Tariff Level for IPv4 Traffic
This section provides a sample of configuring a tariff level for IPv4 traffic using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-nac-dot1x:dot1x-access/configure-mode/unified-mode/dot1x-access-profile/name |
Data Requirements
Item |
Data |
Description |
---|---|---|
traffic-group-enable |
huawei |
Set the tariff level of traffic matching IPv4 ACL 3002 to 1 in the traffic group named huawei, and apply the traffic group globally. |
name |
huawei |
|
acl-id |
3002 |
|
traffic-level |
1 |
Request Example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-aaa:aaa xmlns:hw-aaa="urn:huawei:params:xml:ns:yang:huawei-aaa"> <hw-aaa:global> <hw-aaa:traffic-group> <hw-aaa:traffic-group-enable>huawei</hw-aaa:traffic-group-enable> <hw-aaa:traffic-group-item> <hw-aaa:name>huawei</hw-aaa:name> <hw-aaa:acl-tariff-level> <hw-aaa:acl-id>3002</hw-aaa:acl-id> <hw-aaa:traffic-level>1</hw-aaa:traffic-level> </hw-aaa:acl-tariff-level> </hw-aaa:traffic-group-item> </hw-aaa:traffic-group> </hw-aaa:global> </hw-aaa:aaa> </config> </edit-config> </rpc>
Response Example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> <ok/> </rpc-reply>