nxos_logging message fix author:mikewiebe commit 374ca78

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2018-12-11 18:32:52 +05:30 committed by Toshio Kuratomi
parent 003a4556df
commit cb173f7f1d
2 changed files with 22 additions and 3 deletions

View file

@ -1,3 +1,13 @@
---
# 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

View file

@ -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 }}"