Git Product home page Git Product logo

ocnos-ansible-collection's Introduction

IP Infusion OcNOS Ansible Collection

Ansible collection for automating IP Infusion OcNOS.

OcNOS is a network OS for White Box switch. Refer https://www.ipinfusion.com/products/ocnos/ for the detail.

OcNOS Ansible Collection can be installed via https://galaxy.ansible.com/ipinfusion/ocnos.

Requirements

Ansible 2.9 or newer.

Using OcNOS collection Modules

Install

You can install OcNOS collection modules as either way.

To install from Galaxy,

$ ansible-galaxy collection install ipinfusion.ocnos

Also, it's possible to install it from downloaded tarball. Once downloaded the OcNOS collection package, run ansible-galaxy command as follows

$ ansible-galaxy collection install ipinfusion-ocnos-1.x.x.tar.gz       
Process install dependency map
Starting collection install process
Installing 'ipinfusion.ocnos:1.x.x' to '/home/<someones home>/.ansible/collections/ansible_collections/ipinfusion/ocnos'

During installing the modules, it installs other collections like ansible.netcommon and ansible.utils by its dependencies. If you are installing on somewhere the internet unreachable, you may need to install the dependent collections by manual.

Using with ansible playbook

The module name is used as ipinfusion.ocnos..

And you need some ansible vars properly. The following shows an example of group_vars/ocnos.yml

ansible_connection: network_cli
ansible_network_os: ipinfusion.ocnos.ocnos
ansible_become: yes
ansible_become_method: enable
ansible_ssh_user: ocnos
ansible_ssh_pass: ocnos

Examble of a playbook

---
- hosts: ocnos

  tasks:
  - name: Test OcNOS Facts
    ipinfusion.ocnos.ocnos_facts:
      gather_subset: all
    register: result

  - name: Show Facts
    debug:
      msg: The version is {{ ansible_net_version }}. HW model is {{ ansible_net_model }}, Neighbor info is {{ ansible_net_neighbors }}

Supported Modules

ocnos_facts

ocnos_facts collects information of the switch.

ocnos_commands

ocnos_commands sends commands to the switch. 'show xxx' commands are typicall used, but it is also usable for other commands which are available on enabled mode on the switch.

ocnos_config

ocnos_config sends commands for configuration which are available on configure mode.

ocnos_ping

ocnos_ping does ping from the target node to another node. This module will fail when the ping was not suceeded.

ocnos_bgp_facts

ocnos_bgp_facts collects information about BGP. Currently, this modules supports only bgp neighbor.

ocnos_isis_facts

ocnos_isis_facts collects information about ISIS. Currently, this modules supports only ISIS neighbor.

Please refer the IPI provided documents for the detail.

ocnos-ansible-collection's People

Contributors

ipinfusion avatar

Watchers

James Cloos 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.