st2-netops-vlan Integration Pack
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
actions
aliases
playbooks
rules
sensors
README.md
config.yaml
pack.yaml
requirements.txt

README.md

StackStorm

st2-netops-vlan Integration Pack

With this pack you get the possibility to add or delete vlans on Cisco IOS-Switches. This works with the defined aliases and the called ansible-playbooks behind the scene. The pack could be extended to support different vendors and os-types.

Configuration

To get Ansible work with the IOS-modules you have to install it on the StackStorm-server. The devel-branch includes all needed modules.

$ git clone http://github.com/ansible/ansible.git
$ cd ansible
$ git checkout devel
$ git submodule init
$ git submodule update
$ pip uninstall ansible
$ python setup.py install
$ ansible --version
ansible 2.0.1.0 (stable-2.0-network 49f7e6a12c) last updated 2016/03/01 20:57:24 (GMT +200)
  lib/ansible/modules/core: (detached HEAD 72540d1f0c) last updated 2016/03/01 20:57:27 (GMT +200)
  lib/ansible/modules/extras: (detached HEAD 51cddf2b35) last updated 2016/03/01 20:57:28 (GMT +200)

Sensors

/

Actions

This pack adds:

  • action add_vlan
  • action delete_vlan
  • alias netops.add_vlan
  • alias netops.delete_vlan
  • ansible-playbook add_vlan
  • ansible-playbook delete_vlan
  • ansible-role network_facts
  • ansible-role vlan
  • ansible-role write_cfg

Install

$ st2 run packs.install packs=st2-netops-vlan repo_url=https://github.com/smnmtzgr/st2-netops-vlan