access: add support for the FS S5800 switch
This commit is contained in:
parent
9ec6241e4a
commit
343fd0daad
4 changed files with 80 additions and 24 deletions
|
@ -34,7 +34,7 @@
|
|||
ansible_terminal_stderr_re: [] # some errors are not actually errors
|
||||
register: result
|
||||
# These lines are not displayed by 'sho ru' and always reported as different, so ignore them.
|
||||
changed_when: result.commands | reject('match', '^(no shutdown|no switchport access vlan|no switchport trunk native vlan|no voice vlan.*|switchport mode access|switchport mode hybrid|interface .*|no enable service web-server https?|no ip dhcp snooping|no ip dhcp snooping trust|no switchport port-security.*)$')
|
||||
changed_when: result.commands | reject('match', '^(no shutdown|no switchport access vlan|no switchport trunk native vlan|no voice vlan.*|switchport mode access|switchport mode hybrid|interface .*|service http disable|no enable service web-server https?|no ip dhcp snooping|no ip dhcp snooping trust|no switchport port-security.*)$')
|
||||
notify: write config
|
||||
|
||||
- name: Run model-specific tasks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue