< Home

Configuring the Control Point That Directly Forwards User Traffic to Filter User Traffic Based on a User ACL Before Forwarding the Traffic

This section provides a sample of configuring the control point that directly forwards user traffic to filter user traffic based on a user ACL before forwarding the traffic.

Table 1 Configuring the control point that directly forwards user traffic to filter user traffic based on a user ACL before forwarding the traffic.

Operation

XPATH

edit-config:config

/ietf-interfaces:interfaces/interface/huawei-nac:police-gang-control/access-point/ucl-policy-enabled

Data Requirements

Item Data Description
Interface XGigabitEthernet0/0/1 -

Whether the control point that directly forwards user traffic is configured to filter user traffic based on a user ACL before forwarding the traffic.

true -

Request Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <if:interfaces xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces">
        <if:interface>
          <if:name>XGigabitEthernet0/0/1</if:name>
          <if:type xmlns:iana-if-type="urn:ietf:params:xml:ns:yang:iana-if-type">iana-if-type:ethernetCsmacd</if:type>
          <hw-nac:police-gang-control xmlns:hw-nac="urn:huawei:params:xml:ns:yang:huawei-nac">
            <hw-nac:access-point>
              <hw-nac:ucl-policy-enabled>true</hw-nac:ucl-policy-enabled>
            </hw-nac:access-point>
          </hw-nac:police-gang-control>
        </if:interface>
      </if:interfaces>
    </config>
  </edit-config>
</rpc>

Response Example

# Sample of successful response.

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <ok/>
</rpc-reply>

# Sample of failed response.

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-path>/ietf-interfaces:interfaces/interface[name='XGigabitEthernet0/0/1']/huawei-nac:police-gang-control/access-point/ucl-policy-enabled</error-path>
    <error-message>parse rpc config error.(Invalid value in "ucl-policy-enabled" element.).</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic