Chapter 7
Examples
<rpc message-id="2" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter type="subtree">
<interfaces xmlns="http://ruggedcom.com/ns/rmf_ifs">
<ip>
<name>fe-4-1</name>
<ipv4>
<address>
<local></local>
</address>
</ipv4>
</ip>
</interfaces>
</filter>
</get>
</rpc>]]>]]>
Section 7.39
Retreiving All Data From Running Database
Including Default Values
In this example, a single <rpc> request retrieves information (including default values) from a specified
configuration on a running database.
The following is the recommended procedure for querying data from a running database.
•
Request data from the running databse:
<rpc message-id="1"
<get-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<source>
<running/>
</source>
</get-config>
</rpc>
Section 7.40
Retreiving All Data From Running Database
Including Default Tags and Values
In this example, a single <rpc> request retrieves information (including default tags and values) from a specified
configuration on a running database.
The following is the recommended procedure for querying data from a running database:
•
Request data from the running databse:
<rpc message-id="1"
<get-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<source>
<running/>
</source>
<with-defaults xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults">report-all-tagged</
with-defaults>
116
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" with-defaults="true">
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
Retreiving All Data From Running Database Including
RUGGEDCOM NETCONF
Reference Guide
Default Values