Skip to content

Commit 603f39f

Browse files
authored
Cleanup clab group_vars for IOS-like devices (ipspace#2689)
* Use the same username/password for all devices, defined in ios.yml * Use 'netlab_check_retries: 50' for most devices, override the value for IOL (IOLL2 inherits from IOL) Closes ipspace#2454
1 parent ce7572d commit 603f39f

File tree

5 files changed

+7
-15
lines changed

5 files changed

+7
-15
lines changed

netsim/devices/csr.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ ifindex_offset: 2
66
virtualbox:
77
image: cisco/csr1000v
88
clab:
9-
group_vars:
10-
ansible_ssh_pass: admin
11-
ansible_user: admin
12-
netlab_check_retries: 50
139
image: vrnetlab/vr-csr:17.03.04
1410
node:
1511
kind: cisco_csr1000v

netsim/devices/iol.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ interface_name: Ethernet{ifindex // 4}/{ifindex % 4}
55

66
clab:
77
group_vars:
8-
ansible_user: admin
9-
ansible_ssh_pass: admin
10-
ansible_become_password: admin
118
netlab_device_type: iol
129
netlab_check_retries: 20
1310
interface.name: Ethernet{ifindex // 4}/{ifindex % 4}

netsim/devices/ios.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ group_vars:
2020
# yamllint disable-line rule:line-length
2121
netlab_ssh_args: "-o KexAlgorithms=+diffie-hellman-group-exchange-sha1 -o PubkeyAcceptedKeyTypes=ssh-rsa -o HostKeyAlgorithms=+ssh-rsa"
2222

23+
clab:
24+
group_vars:
25+
ansible_ssh_pass: admin
26+
ansible_user: admin
27+
ansible_become_password: admin
28+
netlab_check_retries: 50
29+
2330
role: router
2431
routing:
2532
_rm_per_af: True

netsim/devices/iosv.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ features:
1818
min_mtu: 64
1919
max_mtu: 9600
2020
clab:
21-
group_vars:
22-
ansible_ssh_pass: admin
23-
ansible_user: admin
24-
netlab_check_retries: 50
2521
image: vrnetlab/cisco_vios:15.9.3
2622
node:
2723
kind: linux

netsim/devices/iosvl2.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ libvirt:
2727
build: https://netlab.tools/labs/iosvl2/
2828
create_template: iosv.xml.j2
2929
clab:
30-
group_vars:
31-
ansible_ssh_pass: admin
32-
ansible_user: admin
33-
netlab_check_retries: 50
3430
image: vrnetlab/cisco_viosl2:15.2
3531
node:
3632
kind: linux

0 commit comments

Comments
 (0)