Skip to content

Commit 94a1787

Browse files
committed
Critical fix: FRR daemons not started
The changes in configuration deployment playbook modified the 'module' parameter passed to initial configuration deployment, destroying the logic that enabled FRR daemons on FRR/CL This fix removes the modification of the 'module' variable and replaces it with a hard-coded check for 'initial' module
1 parent f373f0f commit 94a1787

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

legacy/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
sys.path.append('..')
66

7-
version="1.4.3"
7+
version="1.4.3-post1"
88

99
setup(
1010
name="netsim-tools",

netsim/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python3
22

3-
__version__ = "1.4.3"
3+
__version__ = "1.4.3-post1"

netsim/ansible/initial-config.ansible

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
vars:
4949
config_module: initial
5050
paths: [ "../templates" ]
51-
module: [ initial ]
5251
tags: [ always ]
5352
tags: [ initial ]
5453

netsim/ansible/tasks/deploy-module.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@
5353
netsim_action: "{{ config_module }}"
5454
tags: [ always ]
5555

56-
when: config_module in module|default([])
56+
when: config_module in module|default([]) or config_module == 'initial'

netsim/ansible/templates/initial/cumulus.j2

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,8 @@ configure system interface pattern *,!eth0,swp*
6060
CONFIG
6161
service lldpd restart
6262
#
63-
# Enable FRR modules
64-
#
65-
{% set modlist = {'bgp':'bgpd','ospf':['ospfd','ospf6d'],'isis':'isisd','vrf':'bgpd','gateway':'vrrpd'} %}
66-
{% for m in module|default([]) if modlist[m] is defined %}
67-
{% for frr_m in [modlist[m]]|flatten %}
68-
echo "{{ frr_m }}=yes" >>/etc/frr/daemons
69-
{% endfor %}
70-
{% endfor %}
71-
systemctl enable frr.service
72-
systemctl start frr.service
73-
systemctl reload frr.service
74-
#
7563
# Create loopback interface entry
7664
#
77-
7865
{%- macro loopback_interface(name,data,create) %}
7966
auto {{ name }}
8067
{% if create %}
@@ -129,6 +116,18 @@ ifreload -a
129116
sysctl -qw net.ipv6.conf.{{ l.ifname }}.disable_ipv6=0
130117
{% endfor %}
131118
#
119+
# Enable FRR modules for {{ module|default('none') }}
120+
#
121+
systemctl enable frr.service
122+
systemctl start frr.service
123+
{% set modlist = {'bgp':'bgpd','ospf':['ospfd','ospf6d'],'isis':'isisd','vrf':'bgpd','gateway':'vrrpd'} %}
124+
{% for m in module|default([]) if modlist[m] is defined %}
125+
{% for frr_m in [modlist[m]]|flatten %}
126+
echo "{{ frr_m }}=yes" >>/etc/frr/daemons
127+
{% endfor %}
128+
{% endfor %}
129+
systemctl reload frr.service
130+
#
132131
# Rest of initial configuration done through VTYSH
133132
#
134133
cat >/tmp/config <<CONFIG

0 commit comments

Comments
 (0)