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

Providing Method Options or Attributes

Many Perl methods have one or more options or attributes. The following list describes the notation used to define a method’s options in the lib/JUNOS/Methods.pm and lib/JUNOS/release/package_methods.pl files, and the notation that an application uses when invoking the method:

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_route_forwarding_table method has four fixed-form options and five options with variable values:

    ## Method : <get-forwarding-table-information>
     ## Returns: <forwarding-table-information>
     ## Command: "show route forwarding-table"
     get_forwarding_table_information => {
         detail => $TOGGLE,
         extensive => $TOGGLE,
         multicast => $TOGGLE,
         family => $STRING,
         vpn => $STRING,
         summary => $TOGGLE,
         matching => $STRING,
         destination => $STRING,
         label => $STRING,
     },

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