Code Monkey home page Code Monkey logo

napalm-h3c-cmw's Introduction

PyPI PyPI

napalm-huawei-vrp 中文版

NAPALM driver for H3C Device, support the S5560,FW1070 etc.

Instructions

The driver is under development and iteration.

Supported

API Description
load_merge_candidate() Load config
compare_config() A string showing the difference between the running configuration and the candidate configuration
discard_config() Discards the configuration loaded into the candidate
commit_config() Commits the changes requested by the method load_replace_candidate or load_merge_candidate
cli() Send any cli commands
get_facts() Return general device information
get_lldp_neighbors() Fetch LLDP neighbor information
get_config() Read config
is_active() get devices active status
ping() Ping remote ip
get_arp_table() Get device ARP table
get_mac_address_table() Get mac table of connected devices
get_interfaces() Get interface information
get_interfaces_ip() Get interface IP information
get_interfaces_counters() Get interface counters

Plans to develop

  • get_environment()
  • get_lldp_neighbors_detail()
  • get_snmp_information()
  • get_users()

How to Install

You can install napalm-h3c-cmw with pip:

pip install napalm-h3c-cmw

That will install napalm and h3c_cmw driver currently available.

How to upgrade

You can upgrade napalm-h3c-cmw with pip once the new version released:

pip install --upgrade napalm-h3c-cmw

Quick start

from napalm import get_network_driver
driver = get_network_driver('h3c_cmw')
device = driver(hostname='192.168.76.10', username='admin', password='this_is_not_a_secure_password')
device.open()

get_facts = device.get_facts()
print(get_facts)

send_command = device.cli(['dis ver', 'dis cu'])

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.