pierky / arouteserver

A tool to automatically build (and test) feature-rich configurations for BGP route servers.
https://arouteserver.readthedocs.org/
GNU General Public License v3.0
286 stars 46 forks source link

template update not working? #10

Closed job closed 7 years ago

job commented 7 years ago

Release 0.12.0 should contain a simple wrapper around softreconfig in yes to make it apply only to openbsd version 6.1 - but i don't see that installed after running setup-templates.

(arouteserver) $ pip freeze | grep arouteserver
arouteserver==0.12.0

(arouteserver) $ arouteserver setup-templates
Installing templates into /home/job/arouteserver/templates...

Creating /home/job/arouteserver/templates... already exists
Populating /home/job/arouteserver/templates...
Creating /home/job/arouteserver/templates/bird... already exists
Populating /home/job/arouteserver/templates/bird...
- clients.j2... skipped (same content)
- common.j2... skipped (same content)
- header.j2... skipped (same content)
- irrdb.j2... skipped (same content)
- macros.j2... skipped (same content)
- main.j2... skipped (same content)
- rpki.j2... skipped (same content)
Creating /home/job/arouteserver/templates/html... already exists
Populating /home/job/arouteserver/templates/html...
- macros.j2... skipped (same content)
- main.j2... skipped (same content)
Creating /home/job/arouteserver/templates/openbgpd... already exists
Populating /home/job/arouteserver/templates/openbgpd...
- clients.j2... skipped (same content)
- filters.j2... skipped (same content)
- header.j2... skipped (same content)
- irrdb.j2... skipped (same content)
- macros.j2... skipped (same content)
- main.j2... skipped (same content)
Creating /home/job/arouteserver/templates/template-context... already exists
Populating /home/job/arouteserver/templates/template-context...
- main.j2... skipped (same content)

(arouteserver) $ grep -A 1 -B 1 softreconfig /home/job/arouteserver/templates/openbgpd/clients.j2

                softreconfig in yes
{%      if client.description %}
(arouteserver) $
pierky commented 7 years ago

The problem was due to a bug that triggered when the current directory was the same as the setup target directory, that is ./templates is the directory where the templates are going to be installed into. Should be fixed now in v0.12.1.