??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
àUdac @` s” d d l m Z m Z m Z e Z d Z d d l Z d d l m Z d d l
m Z d d l m
Z
d d l m Z m Z d e f d „ ƒ YZ d S(
i ( t absolute_importt divisiont print_functions
---
cliconf: onyx
short_description: Use onyx cliconf to run command on Mellanox ONYX platform
description:
- This onyx plugin provides low level abstraction apis for
sending and receiving CLI commands from Mellanox ONYX network devices.
version_added: "2.5"
N( t chain( t to_text( t to_list( t CliconfBaset enable_modet Cliconfc B` sY e Z d „ Z e d d d d „ ƒ Z e d „ ƒ Z d d e e e d „ Z d „ Z
RS( c C` s° i } | j d ƒ } t j | ƒ } | d | d <| d | d <| d | d <| d | d <| j d
ƒ } t | d d ƒj ƒ } | j d
ƒ d } | j ƒ } | | d <| S( Ns show version | json-prints Product namet
network_oss Product releaset network_os_versions Version summaryt network_os_version_summarys
Product modelt network_os_models show hosts | include Hostnamet errorst surrogate_or_strictt :i t network_os_hostname( t gett jsont loadsR t stript split( t selft device_infot replyt datat hostname( ( s@ /usr/lib/python2.7/site-packages/ansible/plugins/cliconf/onyx.pyt get_device_info+ s
t runningt textc C` s0 | d k r | j d | ƒ Sd } | j | ƒ S( NR s/ fetching configuration from %s is not supporteds show running-config( R ( t invalid_paramst send_command( R t sourcet formatt flagst cmd( ( s@ /usr/lib/python2.7/site-packages/ansible/plugins/cliconf/onyx.pyt
get_config= s c C` s: x3 t d g t | ƒ d g ƒ D] } | j | ƒ q Wd S( Ns configure terminalt exit( R R R ( R t commandR# ( ( s@ /usr/lib/python2.7/site-packages/ansible/plugins/cliconf/onyx.pyt edit_configD s %c
C` s. | j d | d | d | d | d | d | ƒ S( NR&