Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template update not working? #10

Closed
job opened this issue Oct 12, 2017 · 1 comment
Closed

template update not working? #10

job opened this issue Oct 12, 2017 · 1 comment

Comments

@job
Copy link
Contributor

job commented Oct 12, 2017

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 pierky closed this as completed in 1e028d4 Oct 12, 2017
@pierky
Copy link
Owner

pierky commented Oct 12, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants