nxos_logging message fix author:mikewiebe commit 374ca78

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/50616/head
Trishna Guha 7 years ago committed by Toshio Kuratomi
parent 003a4556df
commit cb173f7f1d

@ -1,3 +1,13 @@
---
- { include: cli.yaml, tags: ['cli'] }
- { include: nxapi.yaml, tags: ['nxapi'] }
# Use block to ensure that the baude rate gets set
# back to 9600 even if there are failures or errors.
- block:
- { include: cli.yaml, tags: ['cli'] }
- { include: nxapi.yaml, tags: ['nxapi'] }
always:
- name: Set Baud Rate Back to 9600 so our tests don't break
nxos_config:
lines:
- speed 9600
parents: line console
connection: network_cli

@ -3,6 +3,15 @@
- debug: msg="Using provider={{ connection.transport }}"
when: ansible_connection == "local"
# This task is needed to clear out any previous logfile
# size settings.
- name: Workaround to clear logging logfile size
nxos_config:
lines:
- logging logfile test 1 size 4194304
provider: "{{ connection }}"
ignore_errors: yes
- name: Set up console logging
nxos_logging: &clog
dest: console
@ -46,7 +55,7 @@
- name: Set Baud Rate to less than 38400
nxos_config:
lines:
- speed 9600
- speed 19200
parents: line console
provider: "{{ connection }}"

Loading…
Cancel
Save