Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
<get-config>
The <get-config> operation retrieves all or specified configuration data from the <running/>, <candidate/>, and <startup/> configuration databases.
- source: specifies a configuration database from which data is retrieved. The value can be <running/>, <candidate/>, or <startup/>.
- filter: specifies a range to be queried in the configuration database. If this parameter is not specified, the entire configuration is returned.
Query interface configuration of the IFM feature in the <running/> configuration database and return the interface information in an RPC reply message:
RPC request:
<?xml version="1.0" encoding="utf-8"?> <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="827"> <get-config> <source> <running/> </source> <filter type="subtree"> <ifm:ifm xmlns:ifm="urn:huawei:yang:huawei-ifm"> <ifm:interfaces> <ifm:interface/> </ifm:interfaces> </ifm:ifm> </filter> </get-config> </rpc>
RPC reply:
<?xml version="1.0" encoding="utf-8"?> <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <ifm xmlns="urn:huawei:yang:huawei-ifm"> <interfaces> <interface> <name>GigabitEthernet0/0/0</name> <class>main-interface</class> <type>MEth</type> <number>0/0/0</number> <admin-status>up</admin-status> <link-protocol>ethernet</link-protocol> <statistic-enable>true</statistic-enable> <mtu>1500</mtu> <spread-mtu-flag>false</spread-mtu-flag> <vrf-name>_public_</vrf-name> </interface> </interfaces> </ifm> </data>