[Contents] [Prev] [Next] [Index] [Report an Error]

Displaying the Source Group for Inherited Configuration Elements

To request that the JUNOScript server indicate the configuration group from which configuration elements are inherited, a client application combines the groups="groups" attribute with the inherit attribute in the <get-configuration/> tag or opening <get-configuration> tag. It encloses the request in an <rpc> tag element:

<rpc>
<get-configuration inherit="(defaults | inherit)" groups="groups"/>

<!- - OR - ->

<get-configuration inherit="(defaults | inherit)" groups="groups">
<!- - tag elements for the configuration elements to return - ->
</get-configuration>
</rpc>

For information about the tag elements to enclose in the <get-configuration> tag element, see Specifying the Scope of Configuration Information to Return.

When the groups="groups" attribute is combined with the inherit="inherit" attribute, the output includes the same information as the output from the following CLI configuration mode command, and does not include configuration elements inherited from the junos-defaults group:

user@host# show | display inheritance

When the groups="groups" attribute is combined with the inherit="defaults" attribute, the output includes the same information as the output from the following CLI configuration mode command:

user@host# show | display inheritance defaults

The inherit and groups attributes can be combined with one or more of the following other attributes in the <get-configuration/> tag or opening <get-configuration> tag:

The application can also include the inherit and groups attributes after requesting an indicator for identifiers (as described in Requesting an Indicator for Identifiers).


[Contents] [Prev] [Next] [Index] [Report an Error]