< Home

Querying the Stacking Enablement Status of a Switch

This section describes how to query the stacking enablement status of a switch using the get method.

Table 1 Querying the stacking enablement status of a switch

Operation

XPATH

get

/huawei-stack/stack-state:enable

Request example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="4" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
 <get>
  <filter type="subtree">
   <hw-stack:stack-state xmlns:hw-stack="urn:huawei:params:xml:ns:yang:huawei-stack">
    <hw-stack:enable/>
   </hw-stack:stack-state>
  </filter>
 </get>
</rpc>

Response example

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="4">
 <data>
  <stack-state xmlns="urn:huawei:params:xml:ns:yang:huawei-stack">
   <enable>true</enable>
  </stack-state>
 </data>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >