Parameters, Examples – Brocade Multi-Service IronWare Administration Guide (Supporting R05.6.00) User Manual
Page 305

Multi-Service IronWare Administration Guide
287
53-1003028-02
Basic NETCONF operations
8
Parameters
The parameters used for
<get-config>
are as follows:
•
source
: Name of the configuration data store being queried, such as
<running/>
. Only
running configuration data store is supported.
•
filter
: Specifies the portions of the device configuration to retrieve. If this parameter is not
present, no configuration is returned. The
filter
parameter must contain a
type
attribute.
This attribute indicates the type of filtering syntax used within the
filter
parameter. The
subtree filtering is the default filtering mechanism used in NETCONF.
NOTE
xpath filtering is not supported.
Examples
The following is an example of a
<get-config>
operation for MPLS configuration.
<nc:rpc xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns:brcd="http://brocade.com/ns/netconf/config/netiron-config/"
message-id="1">
<nc:get-config>
<nc:source>
<nc:running/>
</nc:source>
<nc:filter nc:type="subtree">
<brcd:netiron-config>
<brcd:mpls-config/>
</brcd:netiron-config>
</nc:filter>
</nc:get-config>
</nc:rpc>
]]>]]>
<nc:rpc-reply xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns:brcd="http://brocade.com/ns/netconf/config/netiron-config/"
message-id="1">
<nc:data>
<brcd:netiron-config>
<brcd:mpls-config>
<brcd:path>
<brcd:name>example</brcd:name>
<brcd:strict>10.99.161.1</brcd:strict>
</brcd:path>
<brcd:path>
<brcd:name>example2</brcd:name>
<brcd:strict>10.99.145.1</brcd:strict>
</brcd:path>
<brcd:lsp>
<brcd:name>examplelsp1</brcd:name>
<brcd:adaptive></brcd:adaptive>
<brcd:from>10.99.10.1</brcd:from>
<brcd:to>10.99.161.1</brcd:to>
<brcd:enable></brcd:enable>
<brcd:hop-limit>10</brcd:hop-limit>
<brcd:ipmtu>1526</brcd:ipmtu>
<brcd:ldp-tunneling></brcd:ldp-tunneling>
<brcd:metric>600</brcd:metric>
<brcd:primary-path>example</brcd:primary-path>