Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias TryExcept body ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore ListLoad Str FunctionDef arguments args defaults body Expr Str If BoolOpAnd NameLoad CompareIn Str NameLoad body Return NameLoad orelse Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad vararg kwarg body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad If BoolOpAnd CompareIn Str NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Num orelse Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str TryExcept body If CompareIn NameLoad ListLoad Str Str body Assign NameStore NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str Call Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad keyword NameLoad orelse Assign SubscriptStore NameLoad Index Str Call Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str If NameLoad body Return Call NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Num If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Str orelse Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Num body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Dict Str NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Str handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign SubscriptStore NameLoad Index Str Str handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpAnd CompareIn Str NameLoad CompareIs SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body With Call NameLoad NameLoad keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list
N/A N/A 
Module for interfacing to Junos devices.
 __future__ absolute_import N/A logging N/A json lxml etree N/A N/A jnpr.junos Device jnpr.junos.utils.sw SW jnpr.junos.utils.scp SCP N/A jnpr.junos.utils N/A jnpr.junos.cfg N/A HAS_JUNOS True N/A N/A N/A ImportError N/A N/A HAS_JUNOS False N/A log N/A N/A logging getLogger __name__ N/A __virtualname__ junos N/A __proxyenabled__ N/A junos __virtual__ N/A N/A N/A N/A N/A 
    We need the Junos adapter libraries for this
    module to work.  We also need a proxymodule entry in __opts__
    in the opts dictionary
     N/A N/A HAS_JUNOS N/A proxy __opts__ N/A N/A __virtualname__ N/A N/A N/A False The junos module could not be                 loaded: junos-eznc or proxy could not be loaded. N/A facts_refresh N/A N/A N/A N/A N/A 
    Reload the facts dictionary from the device.  Usually only needed
    if the device configuration is changed by some other actor.

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.facts_refresh

     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A N/A ret N/A out True N/A N/A N/A N/A ret N/A message N/A N/A conn facts_refresh N/A N/A N/A Exception N/A exception N/A N/A N/A ret N/A message N/A N/A Execution failed due to "{0}" format exception N/A N/A ret N/A out False N/A ret N/A facts N/A N/A N/A N/A N/A 
    Displays the facts gathered during the connection.

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.facts

     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A N/A ret N/A message N/A N/A json dumps N/A conn facts N/A N/A ret N/A out True N/A ret N/A call_rpc N/A N/A cmd N/A None args kwargs N/A N/A 
    This function executes the rpc provided as arguments on the junos device.
    The returned data can be stored in a file whose destination can be
    specified with 'dest' keyword in the arguments.

    Usage:

    .. code-block:: bash

        salt 'device' junos.call_rpc 'get_config' '<configuration><system/></configuration>' terse=True

        salt 'device' junos.call_rpc 'get-chassis-inventory' dest=/home/user/rpc_information.txt


    Options:
      * cmd: the rpc to be executed
      * args: other arguments as taken by rpc call of PyEZ
      * kwargs: keyworded arguments taken by rpc call of PyEZ
     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A N/A ret N/A out True N/A op N/A dict N/A N/A N/A __pub_arg kwargs N/A isinstance N/A N/A kwargs N/A __pub_arg N/A -1 dict N/A N/A N/A N/A op update N/A N/A kwargs N/A __pub_arg N/A -1 N/A N/A N/A N/A op update kwargs N/A N/A k v N/A N/A op iteritems N/A N/A N/A op N/A k N/A str v N/A N/A op N/A format json N/A N/A N/A N/A cmd N/A get-config get_config N/A N/A filter_reply None N/A N/A N/A len args 0 N/A N/A filter_reply N/A N/A etree XML N/A args N/A 0 N/A N/A ret N/A message N/A N/A getattr N/A conn rpc N/A N/A cmd replace - _ filter_reply options op N/A N/A N/A ret N/A message N/A N/A getattr N/A conn rpc N/A N/A cmd replace - _ op N/A N/A N/A Exception N/A exception N/A N/A N/A ret N/A message N/A N/A Execution failed due to "{0}" format exception N/A N/A ret N/A out False N/A N/A dest op N/A N/A f N/A open N/A op N/A dest w N/A N/A N/A f write N/A ret N/A message N/A N/A N/A f close N/A ret N/A set_hostname N/A N/A hostname commit_change N/A None True N/A N/A 
    To set the name of the device.

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.set_hostname hostname=salt-device


    Options:
      * hostname: The name to be set.
      * commit_change: Whether to commit the changes.(default=True)
     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A N/A hostname None N/A N/A N/A ret N/A out False N/A ret N/A set_string N/A N/A set system host-name {0} format hostname N/A N/A N/A N/A conn cu load set_string format set N/A commit_change N/A N/A N/A commit N/A N/A N/A ret N/A out True N/A N/A ret N/A msg N/A N/A set system host-name {0} is queued format hostname N/A ret N/A commit N/A N/A N/A N/A N/A 
    To commit the changes loaded in the candidate configuration.

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.commit

     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A N/A commit_ok N/A N/A N/A conn cu commit_check N/A commit_ok N/A N/A N/A N/A N/A N/A N/A conn cu commit confirm True N/A N/A ret N/A out True N/A N/A ret N/A message Commit Successful. N/A N/A N/A Exception N/A exception N/A N/A N/A ret N/A out False N/A N/A ret N/A message N/A N/A Pre-commit check succeeded but actual commit failed with "{0}" format exception N/A N/A N/A ret N/A out False N/A N/A ret N/A message Pre-commit check failed. N/A ret N/A rollback N/A N/A N/A N/A N/A 
    To rollback the last committed configuration changes

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.rollback

     N/A ret N/A dict N/A conn N/A N/A __proxy__ N/A junos.conn N/A N/A ret N/A out N/A N/A N/A conn cu rollback 0 N/A N/A ret N/A out N/A N/A N/A ret N/A message Rollback successful N/A N/A N/A ret N/A message Rollback failed N/A ret N/A diff N/A N/A N/A N/A N/A 
    Gives the difference between the candidate and the current configuration.

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.diff

     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A N/A ret N/A out True N/A N/A ret N/A message N/A N/A N/A conn cu diff N/A ret N/A ping N/A N/A N/A N/A N/A 
    To check the connection with the device

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.ping

     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A N/A ret N/A message N/A N/A conn probe N/A N/A ret N/A message N/A N/A N/A ret N/A out True N/A N/A N/A ret N/A out False N/A ret N/A cli N/A N/A command N/A None N/A N/A 
    Executes the CLI commands and reuturns the text output.

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.cli 'show version'


    Options:
      * command: The command that need to be executed on Junos CLI.
     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A N/A ret N/A message N/A N/A conn cli command N/A N/A ret N/A out True N/A ret N/A shutdown N/A N/A time N/A 0 N/A N/A 
    Shuts down the device after the given time.

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.shutdown 10


    Options:
      * time: Time in seconds after which the device should shutdown (default=0)
     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A sw N/A SW conn N/A N/A N/A shut N/A N/A sw poweroff N/A N/A shut time N/A N/A ret N/A message Successfully powered off. N/A N/A ret N/A out False N/A N/A N/A Exception N/A exception N/A N/A N/A ret N/A message Could not poweroff N/A N/A ret N/A out False N/A ret N/A install_config N/A N/A path N/A None kwargs N/A N/A 
    Installs the given configuration file into the candidate configuration.
    Commits the changes if the commit checks or throws an error.

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.install_config '/home/user/config.set' timeout=300


    Options:
      * path: Path where the configuration file is present.
      * kwargs: keyworded arguments taken by load fucntion of PyEZ
     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A N/A ret N/A out True N/A N/A timeout kwargs N/A N/A N/A conn timeout N/A kwargs N/A timeout N/A options N/A path path N/A N/A N/A N/A N/A N/A conn cu load options N/A N/A N/A N/A conn cu pdiff N/A N/A N/A Exception N/A exception N/A N/A N/A ret N/A message N/A N/A Could not load configuration due to : "{0}" format exception N/A N/A ret N/A out False N/A N/A N/A N/A conn cu commit_check N/A N/A N/A ret N/A message Successfully loaded and committed! N/A N/A N/A N/A conn cu commit N/A N/A N/A ret N/A message Commit check failed. N/A N/A ret N/A out False N/A N/A N/A N/A conn cu rollback N/A ret N/A zeroize N/A N/A N/A N/A N/A 
    Resets the device to default factory settings

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.zeroize

     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A N/A ret N/A out True N/A N/A N/A N/A N/A conn cli request system zeroize N/A N/A ret N/A message Completed zeroize and rebooted N/A N/A N/A Exception N/A exception N/A N/A N/A ret N/A message N/A N/A Could not zeroize due to : "{0}" format exception N/A N/A ret N/A out False N/A ret N/A install_os N/A N/A path N/A None kwargs N/A N/A 
    Installs the given image on the device. After the installation is complete the device is rebooted,
    if reboot=True is given as a keyworded argument.

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.install_os '/home/user/junos_image.tgz' reboot=True


    Options
      * path: Path where the image file is present.
      * kwargs: keyworded arguments to be given such as timeout, reboot etc

     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A N/A ret N/A out True N/A N/A timeout kwargs N/A N/A N/A conn timeout N/A kwargs N/A timeout N/A N/A N/A install N/A N/A N/A conn sw install path progress True N/A N/A ret N/A message Installed the os. N/A N/A N/A Exception N/A exception N/A N/A N/A ret N/A message N/A N/A Installation failed due to : "{0}" format exception N/A N/A ret N/A out False N/A N/A N/A reboot kwargs N/A N/A kwargs N/A reboot True N/A N/A rbt N/A N/A N/A conn sw reboot N/A N/A ret N/A message Successfully installed and rebooted! N/A ret N/A file_copy N/A N/A src dest N/A None None N/A N/A 
    Copies the file from the local device to the junos device.

    Usage:

    .. code-block:: bash

        salt 'device_name' junos.file_copy /home/m2/info.txt info_copy.txt


    Options
      * src: The sorce path where the file is kept.
      * dest: The destination path where the file will be copied.
     N/A conn N/A N/A __proxy__ N/A junos.conn N/A ret N/A dict N/A N/A ret N/A out True N/A N/A N/A N/A SCP conn progress True scp N/A N/A N/A N/A scp put src dest N/A N/A ret N/A message N/A N/A Successfully copied file from {0} to {1} format src dest N/A N/A N/A Exception N/A exception N/A N/A N/A ret N/A message N/A N/A Could not copy file : "{0}" format exception N/A N/A ret N/A out False N/A ret N/A