Skip to content

Commit 2487302

Browse files
authored
VyOS: ansible check for config failure (#2149)
Fixes #2147
1 parent 7dfe945 commit 2487302

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: netsim/ansible/tasks/deploy-config/vyos.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020

2121
- name: "execute config-{{ netsim_action }}.sh to deploy {{ netsim_action }} config from {{ config_template }}"
2222
command: "/bin/vbash {{ destination_script }}"
23-
become: true
2423
tags: [ print_action, always ]
24+
register: cmdout
25+
failed_when: "' Set failed' in cmdout.stderr_lines"

Diff for: netsim/ansible/templates/initial/vyos.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ set interfaces {{ ns.iface_level }} {{ ns.ifname }} vrf {{ l.vrf }}
8989
{% endfor %}
9090

9191
set service lldp interface all
92-
set service lldp interface {{ mgmt.ifname|default('eth0') }} disable
92+
set service lldp interface {{ mgmt.ifname|default('eth0') }} mode disable
9393

9494
{# IPv6 RA config #}
9595
{% for l in netlab_interfaces if 'ipv6' in l and l.type != 'loopback' %}

0 commit comments

Comments
 (0)