diff options
author | Dave Kasberg <dkasberg@lenovo.com> | 2017-03-02 08:08:49 -0800 |
---|---|---|
committer | John R Barker <john@johnrbarker.com> | 2017-03-02 16:08:49 +0000 |
commit | e5ceb3a99c373481e58a47210f14780a672f8b22 (patch) | |
tree | 08c2cd46f615bcf3f3638df1d5af53be34ba7ec0 /test/integration/roles | |
parent | 709b03d1c87a41d0f421af31d852171e47ff5d88 (diff) | |
download | ansible-e5ceb3a99c373481e58a47210f14780a672f8b22.tar.gz |
Fix for cnos.py utility file for Python3.5 (#21750)
* fix in cnos.py utility file
* fix compile errors in cnos.py, update module short description in cnos_vlan.py, move vlan roles under integration/roles
* corrections in readme
* Change module directory name to Lenovo
* change import cnos statement
Diffstat (limited to 'test/integration/roles')
-rw-r--r-- | test/integration/roles/cnos_vlan/README.md | 2 | ||||
-rw-r--r-- | test/integration/roles/cnos_vlan/tasks/main.yml | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/test/integration/roles/cnos_vlan/README.md b/test/integration/roles/cnos_vlan/README.md index 35e89792ca..7deb238783 100644 --- a/test/integration/roles/cnos_vlan/README.md +++ b/test/integration/roles/cnos_vlan/README.md @@ -67,7 +67,7 @@ Variable | Description Ansible keeps track of all network elements that it manages through a hosts file. Before the execution of a playbook, the hosts file must be set up. -Open the */etc/ansible/hosts* file with root privileges. Most of the file is commented out by using **#**. You can also comment out the entries you will be adding by using **#**. You need to copy the content of the hosts file for the role into the */etc/ansible/hosts* file. The hosts file for the role is located in the main directory of the multiple layer vLAG configuration solution. +Open the */etc/ansible/hosts* file with root privileges. Most of the file is commented out by using **#**. You can also comment out the entries you will be adding by using **#**. You need to copy the content of the hosts file for the role into the */etc/ansible/hosts* file. The sample hosts file for the role is located in the main directory. ``` [cnos_vlan_sample] diff --git a/test/integration/roles/cnos_vlan/tasks/main.yml b/test/integration/roles/cnos_vlan/tasks/main.yml index 0d19e68555..6409f8196c 100644 --- a/test/integration/roles/cnos_vlan/tasks/main.yml +++ b/test/integration/roles/cnos_vlan/tasks/main.yml @@ -3,27 +3,35 @@ - name: Test Vlan - Create a vlan, name it cnos_vlan: host={{ inventory_hostname }} username={{ hostvars[inventory_hostname]['username']}} password={{ hostvars[inventory_hostname]['password']}} deviceType={{ hostvars[inventory_hostname]['deviceType']}} outputfile=./results/cnos_vlan_{{ inventory_hostname }}_output.txt vlanArg1='{{item.vlanArg1}}' vlanArg2='{{item.vlanArg2}}' vlanArg3='{{item.vlanArg3}}' with_items: "{{cnos_vlan_data1}}" + - name: Test Vlan - Create a vlan, Flood configuration cnos_vlan: host={{ inventory_hostname }} username={{ hostvars[inventory_hostname]['username']}} password={{ hostvars[inventory_hostname]['password']}} deviceType={{ hostvars[inventory_hostname]['deviceType']}} outputfile=./results/cnos_vlan_{{ inventory_hostname }}_output.txt vlanArg1='{{item.vlanArg1}}' vlanArg2='{{item.vlanArg2}}' vlanArg3='{{item.vlanArg3}}' with_items: "{{cnos_vlan_data2}}" + - name: Test Vlan - Create a vlan, State configuration cnos_vlan: host={{ inventory_hostname }} username={{ hostvars[inventory_hostname]['username']}} password={{ hostvars[inventory_hostname]['password']}} deviceType={{ hostvars[inventory_hostname]['deviceType']}} outputfile=./results/cnos_vlan_{{ inventory_hostname }}_output.txt vlanArg1='{{item.vlanArg1}}' vlanArg2='{{item.vlanArg2}}' vlanArg3='{{item.vlanArg3}}' with_items: "{{cnos_vlan_data3}}" + - name: Test Vlan - VLAN Access map1 cnos_vlan: host={{ inventory_hostname }} username={{ hostvars[inventory_hostname]['username']}} password={{ hostvars[inventory_hostname]['password']}} deviceType={{ hostvars[inventory_hostname]['deviceType']}} outputfile=./results/cnos_vlan_{{ inventory_hostname }}_output.txt vlanArg1='{{item.vlanArg1}}' vlanArg2='{{item.vlanArg2}}' vlanArg3='{{item.vlanArg3}}' with_items: "{{cnos_vlan_data4}}" + - name: Test Vlan - VLAN Accep Map2 cnos_vlan: host={{ inventory_hostname }} username={{ hostvars[inventory_hostname]['username']}} password={{ hostvars[inventory_hostname]['password']}} deviceType={{ hostvars[inventory_hostname]['deviceType']}} outputfile=./results/cnos_vlan_{{ inventory_hostname }}_output.txt vlanArg1='{{item.vlanArg1}}' vlanArg2='{{item.vlanArg2}}' vlanArg3='{{item.vlanArg3}}' vlanArg4='{{item.vlanArg4}}' with_items: "{{cnos_vlan_data5}}" + - name: Test Vlan - ip igmp snooping query interval cnos_vlan: host={{ inventory_hostname }} username={{ hostvars[inventory_hostname]['username']}} password={{ hostvars[inventory_hostname]['password']}} deviceType={{ hostvars[inventory_hostname]['deviceType']}} outputfile=./results/cnos_vlan_{{ inventory_hostname }}_output.txt vlanArg1='{{item.vlanArg1}}' vlanArg2='{{item.vlanArg2}}' vlanArg3='{{item.vlanArg3}}' vlanArg4='{{item.vlanArg4}}' with_items: "{{cnos_vlan_data6}}" + - name: Test Vlan - ip igmp snooping last member query interval cnos_vlan: host={{ inventory_hostname }} username={{ hostvars[inventory_hostname]['username']}} password={{ hostvars[inventory_hostname]['password']}} deviceType={{ hostvars[inventory_hostname]['deviceType']}} outputfile=./results/cnos_vlan_{{ inventory_hostname }}_output.txt vlanArg1='{{item.vlanArg1}}' vlanArg2='{{item.vlanArg2}}' vlanArg3='{{item.vlanArg3}}' vlanArg4='{{item.vlanArg4}}' with_items: "{{cnos_vlan_data7}}" + - name: Test Vlan - ip igmp snooping mrouter interface port-aggregation cnos_vlan: host={{ inventory_hostname }} username={{ hostvars[inventory_hostname]['username']}} password={{ hostvars[inventory_hostname]['password']}} deviceType={{ hostvars[inventory_hostname]['deviceType']}} outputfile=./results/cnos_vlan_{{ inventory_hostname }}_output.txt vlanArg1='{{item.vlanArg1}}' vlanArg2='{{item.vlanArg2}}' vlanArg3='{{item.vlanArg3}}' vlanArg4='{{item.vlanArg4}}' vlanArg5='{{item.vlanArg5}}' with_items: "{{cnos_vlan_data8}}" + - name: Idempotent Command cnos_command: host={{ inventory_hostname }} username={{ hostvars[inventory_hostname]['username']}} password={{ hostvars[inventory_hostname]['password']}} deviceType={{ hostvars[inventory_hostname]['deviceType']}} clicommand='{{item.clicommand}}' outputfile=./results/cnos_command_{{ inventory_hostname }}_output.txt with_items: "{{cnos_vlan_data9}}" |