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

Mapping CLI Commands to Perl Methods

The sample scripts described in Overview of the JUNOS Module and Sample Scripts invoke only a small number of the predefined JUNOS XML Perl methods available in the current version of the JUNOS software. There is a Perl method for every JUNOS XML request tag element. To derive the Perl method name from the request tag element name, replace each hyphen in the tag element name with an underscore and remove the enclosing angle brackets from the tag element name. For example, the get_bgp_group_information Perl method corresponds to the <get-bgp-group-information> tag element.

For a list of all of the Perl methods available in the current version of the JUNOS software, see the chapter in the JUNOS XML API Operational Reference that maps JUNOS XML request tag elements to CLI commands and Perl methods. For information about optional and required attributes for a particular Perl method, see the entry for the corresponding JUNOS XML request tag element in the chapter titled “ Summary of Operational Request Tags” in the JUNOS XML API Operational Reference.

 


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