Compare commits

..

2 commits

2 changed files with 4 additions and 5 deletions

View file

@ -78,17 +78,16 @@ Associate one or more IPv4 and IPv6 prefixes to each VLAN. Assign the role `dhcp
### Devices ### Devices
For most devices a management interface must be defined to run Ansible scripts, with at least the IP address and default gateway set: For most devices a management interface must be defined to run Ansible scripts, with the IP address set:
{ {
"name": "eth0", "type": { "value": "1000base-t" }, "name": "eth0", "type": { "value": "1000base-t" },
"mgmt_only": true, "mgmt_only": true,
"mac_address": "98:03:9B:9C:2D:10", "mac_address": "98:03:9B:9C:2D:10",
"ip_addresses": [ { "address": "10.20.30.40/24" } ], "ip_addresses": [ { "address": "10.20.30.40/24" } ]
"custom_fields": { "gateway": { "address": "10.20.30.1/24" } }
} }
The MAC address is only used in some playbooks to set the interface name. This IP address must be set as the primary address for the device. The MAC address is only used in some playbooks to set the interface name.
#### L1 setup #### L1 setup

View file

@ -30,7 +30,7 @@
ansible.netcommon.cli_config: ansible.netcommon.cli_config:
config: '{{ lookup("template", "config-"~manufacturer~"-"~device_type~".j2") }}' config: '{{ lookup("template", "config-"~manufacturer~"-"~device_type~".j2") }}'
vars: vars:
ansible_command_timeout: 240 ansible_command_timeout: 600
ansible_terminal_stderr_re: [] # some errors are not actually errors ansible_terminal_stderr_re: [] # some errors are not actually errors
register: result register: result
# These lines are not displayed by 'sho ru' and always reported as different, so ignore them. # These lines are not displayed by 'sho ru' and always reported as different, so ignore them.