Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual page 241

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.
get_cos_drop_profile_information => {
profile_name => $STRING,
},
To include a variable value when invoking a method, enclose the value in single quotes
as in the following example:
$jnx->get_cos_drop_profile_information(profile_name => 'user-drop-profile');
An attribute is defined as type
method takes the
load_configuration
load_configuration => {
rollback => $ATTRIBUTE
},
To include a numerical attribute value when invoking a method, set it to the appropriate
value. The following example rolls the candidate configuration back to the previous
configuration that has an index of 2:
$jnx->load_configuration(rollback => 2);
To include a string attribute value when invoking a method, enclose the value in single
quotes as in the following example:
$jnx->get_configuration(format => 'text');
A set of configuration statements or corresponding tag elements is defined as type
. In the following example, the
$DOM
configuration statements (along with two attributes):
get_configuration => {
configuration => $DOM,
format => $ATTRIBUTE,
database => $ATTRIBUTE,
},
To include a set of configuration statements when invoking a method, provide a parsed
set of statements or tag elements. The following example refers to a set of Junos XML
configuration tag elements in the
"Example: Loading Configuration Statements" on page 222.
my $parser = new XML::DOM::Parser;
$jnx->load_configuration(
format => 'xml',
action => 'merge',
configuration => $parser->parsefile(config-input.xml)
);
A method can have a combination of fixed-form options, options with variable values,
attributes, and a set of configuration statements. For example, the
get_forwarding_table_information
with variable values:
## Method : <get-forwarding-table-information>
## Returns: <forwarding-table-information>
## Command: "show route forwarding-table"
get_forwarding_table_information => {
detail => $TOGGLE,
Chapter 9: Writing Junos XML Protocol Perl Client Applications
$ATTRIBUTE
. In the following example, the
attribute:
rollback
method takes a set of
get_configuration
file. For further discussion, see
config-input.xml
method has four fixed-form options and five options
219

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Junos os

Table of Contents