Specifying Whether Configuration Groups Are Displayed Separately - Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual

Junos xml management protocol guide
Hide thumbs Also See for JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010:
Table of Contents

Advertisement

Copyright © 2010, Juniper Networks, Inc.
The following sections explain how to specify the output format for configuration elements
that are defined in configuration groups:
Specifying Whether Configuration Groups Are Displayed Separately on page 75
Displaying the Source Group for Inherited Configuration Elements on page 76
Examples: Specifying Output Format for Configuration Groups on page 78

Specifying Whether Configuration Groups Are Displayed Separately

By default, the Junos XML protocol server displays the tag element for each user-defined
configuration group as a child of the
as children of the elements to which they are applied. This display mode parallels the
default behavior of the CLI configuration mode
[edit groups]
hierarchy as a separate hierarchy in the configuration.
To request that the Junos XML protocol server not display the
tag elements separately, but instead enclose tag elements inherited from user-defined
groups within the inheriting tag elements, a client application includes the
attribute in the
<get-configuration/>
the request in an
tag element:
<rpc>
<rpc>
<get-configuration inherit="inherit"/>
<!-- OR -->
<get-configuration inherit="inherit">
<!-- tag elements for the configuration elements to return -->
</get-configuration>
</rpc>
To request that the Junos XML protocol server include tag elements that are inherited
from the
junos-defaults
group as well as user-defined configuration groups, the client
application includes the
inherit="defaults"
opening
<get-configuration>
<rpc>
<get-configuration inherit="defaults"/>
<!-- OR -->
<get-configuration inherit="defaults">
<!-- tag elements for the configuration elements to return -->
</get-configuration>
</rpc>
For information about the tag elements to enclose in the
see "Specifying the Scope of Configuration Information to Return" on page 81.
When the client includes the
information as the output from the following CLI configuration mode command, and
does not include configuration elements inherited from the
user@host# show | display inheritance | except ##
tag element, instead of displaying them
<groups>
command, which displays the
show
tag or opening
<get-configuration>
attribute in the
tag:
attribute, the output includes the same
inherit="inherit"
Chapter 4: Requesting Information
or
<groups>
<apply-groups>
inherit="inherit"
tag. It encloses
<get-configuration/>
tag or
<get-configuration>
tag element,
junos-defaults
group:
75

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents