This section provides a sample of configuring the interval at which the device handshakes with 802.1X users using the merge method.
Operation |
XPATH |
|---|---|
edit-config:merge |
/huawei-nac-dot1x:dot1x-access/configure-mode/unified-mode/dot1x-access-profile/handshake/period-eth-trunk /huawei-nac-dot1x:dot1x-access/configure-mode/unified-mode/dot1x-access-profile/handshake/period-non-eth-trunk /huawei-nac-dot1x:dot1x-access/configure-mode/unified-mode/dot1x-access-profile/handshake/packet-type |
Item |
Data |
Description |
|---|---|---|
name |
test |
Configure the 802.1X access profile named test. |
period-eth-trunk |
51 |
Set the interval at which the device handshakes with an 802.1X client on an Eth-Trunk interface to 51 seconds. |
period-non-eth-trunk |
200 |
Set the interval at which the device handshakes with an 802.1X client on a non-Eth-Trunk interface to 200 seconds. |
packet-type |
srp-sha1-part2 |
Set the type of 802.1X authentication handshake packets to srp-sha1-part2. |
<rpc message-id="0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<hw-nac-dot1x:dot1x-access xmlns:hw-nac-dot1x="urn:huawei:params:xml:ns:yang:huawei-nac-dot1x">
<hw-nac-dot1x:dot1x-access-profile xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">
<hw-nac-dot1x:name>test</hw-nac-dot1x:name>
<hw-nac-dot1x:handshake>
<hw-nac-dot1x:period-eth-trunk>51</hw-nac-dot1x:period-eth-trunk>
<hw-nac-dot1x:period-non-eth-trunk>200</hw-nac-dot1x:period-non-eth-trunk>
<hw-nac-dot1x:packet-type>srp-sha1-part2</hw-nac-dot1x:packet-type>
</hw-nac-dot1x:handshake>
</hw-nac-dot1x:dot1x-access-profile>
</hw-nac-dot1x:dot1x-access>
</config>
</edit-config>
</rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> <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="20">
<rpc-error>
<error-type>application</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>error</error-severity>
<error-path>/huawei-nac-dot1x:dot1x-access/dot1x-access-profile[name='hu']/handshake/period-eth-trunk</error-path>
<error-message>parse rpc config error.(Value "15" does not satisfy the constraint "30..7200" (range, length, or pattern).).</error-message>
</rpc-error>
</rpc-reply>