Specify the Scope of Configuration Information to Return in a NETCONF Response
In a NETCONF session with a device running Junos OS, a client
application can request the entire configuration or specific portions
of the configuration by including the appropriate child tag elements
in the <filter>
tag element within the <rpc>
and <get-config>
tag elements.
<rpc> <get-config> <source> ( <candidate/> | <running/> ) </source> <filter type="subtree"> <!-- tag elements representing the configuration elements to return --> </filter> </get-config> </rpc> ]]>]]>
The type="subtree"
attribute in the
opening <filter>
tag indicates that
the client application is using Junos XML tag elements to represent
the configuration elements about which it is requesting information.
For information about requesting different amounts of configuration information, see the following topics:
Request a Configuration Hierarchy Level or Container Object Without an Identifier Using NETCONF
Request All Configuration Objects of a Specified Type Using NETCONF
Request Identifiers for Configuration Objects of a Specified Type Using NETCONF
Request Specific Child Tags for a Configuration Object Using NETCONF
Request Multiple Configuration Elements Simultaneously Using NETCONF