Coder Social home page Coder Social logo

moon-dev / ansible-role-huawei-sw-interfaces_telnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ssunlau/ansible-role-huawei-sw-interfaces_telnet

0.0 2.0 0.0 19 KB

Ansible Role for Huawei Switches interface gathered via telnet

Python 100.00%

ansible-role-huawei-sw-interfaces_telnet's Introduction

huawei-sw-interfaces_telnet

This ansible role gathering Huawei Switches interfaces information via telnet, the project is aiming to provide the same facts(ansible_net_interfaces) as cisco-ios.

Requirements

Ansible, git, python2

ansible version = 2.6.2
git version = 1.8.3.1-14
python2 version = 2.7.5
python2-pip version = 8.1.2-6
    re (python build-in) 
    sys (python build-in)
    json (python build-in)

Role Variables

{{ inventory_hostname }} auto defined according to your playbook yml file

Inside default/main.yml, you will find the variable to make this role useful:

{{ usr }} username of telnet credential
{{ pwd }} password of telnet credential

Change the variable in format "var: value", example as follows:

usr: username
pwd: password

Tree

├── defaults
│   └── main.yml
├── files
│   ├── facts
│   └── interfaces.py
├── handlers
│   └── main.yml
├── meta
│   └── main.yml
├── README.md
├── tasks
│   └── main.yml
├── temp
├── templates
├── tests
│   ├── inventory
│   └── test.yml
└── vars
    └── main.yml

Directories Hightlights

├── files
│   ├── facts
│   └── interfaces.py

/files: python scripts

/files/facts: information gathered storage

├── temp 

/temp: temporary storage for scripts

Installing

Refer to ansible glaxy installation guide(https://galaxy.ansible.com/)

Example Playbook

 - hosts: CN2_EU_Huawei_telnet
   gather_facts: false
   connection: local
   roles:
   - role: huawei-sw-interface_telnet                    

License

This project is licensed under the MIT License

Author Information

Chun Lau (https://github.com/ssunlau)

ansible-role-huawei-sw-interfaces_telnet's People

Contributors

ssunlau avatar

Watchers

James Cloos avatar  avatar

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.