< Home

Configuring the Duration in Which Interface Indicators Show Stack IDs of Stack Member Switches

This section describes how to configure the duration in which interface indicators show stack IDs of stack member switches using the rpc method.

Table 1 Configuring the duration in which interface indicators show stack IDs of member switches

Operation

XPATH

rpc

/huawei-stack:led-enable/duration

Data requirement

Table 2 Configuring the duration in which interface indicators show stack IDs of member switches

Item

Data

Description

Duration in which interface indicators show stack IDs of member switches.

50

Indicates that the configured duration in which interface indicators show stack IDs of member switches is 50s.

Request example

<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <hw-stack:led-enable xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack">
    <hw-stack:duration>50</hw-stack:duration>
  </hw-stack:led-enable>
</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="8">
  <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="9">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc error.</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >