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

config file generation issues with router-cli.gen-server-conf #84

Closed
bcix opened this issue Oct 4, 2013 · 3 comments
Closed

config file generation issues with router-cli.gen-server-conf #84

bcix opened this issue Oct 4, 2013 · 3 comments

Comments

@bcix
Copy link
Contributor

bcix commented Oct 4, 2013

Hey,

there are some issues with the config file generation,

a. A config file will not be generated, if no file is already available

./bin/ixptool.php -a router-cli.gen-server-conf -p vlanid=1,target=bird,proto=4 --config=/tmp/bird_v4.conf

ERROR: Cannot open / read specificed configuration file

b. Config file stays empty, output only send to STDOUT

touch /tmp/bird_v4.conf

./bin/ixptool.php -a router-cli.gen-server-conf -p vlanid=1,target=bird,proto=4 --config=/tmp/bird_v4.conf

wc -l  /tmp/bird_v4.conf
0 /tmp/bird_v4.conf

This is on ubuntu 12.04 LTS with PHP 5.4.19-1+debphp.org~precise+3

@barryo
Copy link
Member

barryo commented Oct 4, 2013

there are some issues with the config file generation,

a. A config file will not be generated, if no file is already available

|./bin/ixptool.php -a router-cli.gen-server-conf -p vlanid=1,target=bird,proto=4 --config=/tmp/bird_v4.conf

ERROR: Cannot open / read specificed configuration file

This relates to an issue with /tmp/bird_v4.conf.

b. Config file stays empty, output only send to STDOUT

|touch /tmp/bird_v4.conf

Please re-read the documentation (and particular the
Route-Server-Testing page). The --config=... files are not output
files but input files. See also:

https://github.com/inex/IXP-Manager/blob/master/application/configs/route-server-example.conf

If the documentation could be clearer, please also feel free to improve it.

  • Barry

@bcix
Copy link
Contributor Author

bcix commented Oct 4, 2013

Ah, ok, thanks. I thought the header of the route-server "main" config part will be generated through the header.cfg skin and filled up with the variables from the database.

@barryo
Copy link
Member

barryo commented Oct 4, 2013

On 04/10/13 11:53, bcix wrote:

Ah, ok, thanks. I thought the header of the route-server "main" config
part will be generated through the |header.cfg| skin and filled up with
the variables from the database.

Some of it yes, but you also need a separate config file. In the future
I may look at pulling more of these from the NetInfo table but, for now,
an external config is required.

  • Barry

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

1 participant