[ixpmanager] IXP Manager Route Server with Bird2 sync/api reconfigure script error.

Earl Tan earl.tan at aftechph.com
Wed May 17 02:05:25 IST 2023


Good Day to all!

I canceled the previous one and resend this after subscribing with the
correct "email alias".

We keep encountering errors when running this script "
https://github.com/inex/IXP-Manager/blob/master/tools/runtime/route-servers/api-reconfigure-example-birdv2.sh"
in our BIRD Server with this error output "ERROR: non-zero return from
/usr/sbin/bird when parsing
/usr/local/etc/bird/bird-rcbc-rs2-ipv4.conf.281708".

We're confused why it keeps resulting in an error. We also followed a
demonstration(?)/guide in Youtube, stuck due to error ( "Command Used" )IXP
Manager and Route Servers - Tutorial Series (3 of 6)
<https://www.youtube.com/watch?v=heKj-K1eMHM&t=350s>
Command Used:
"./api-reconfigure-example-birdv2.sh -h rcbc-rs2-ipv4"

Output of Command with Debug=1:
"curl --fail -s -H "X-IXP-Manager-API-Key: {our api-key}"
https://{site}/api/v4/router/gen-config/rcbc-rs2-ipv4
>/usr/local/etc/bird/bird-rcbc-rs2-ipv4.conf.281708
/usr/sbin/bird -p -c /usr/local/etc/bird/bird-rcbc-rs2-ipv4.conf.281708
ERROR: non-zero return from /usr/sbin/bird when parsing
/usr/local/etc/bird/bird-rcbc-rs2-ipv4.conf.281708"

Under IXP Manager Router List:
Name: rcbc-rs2-ivp4
Type: RS
ASN: 150786
Software: Bird v2
API Type: Birdseye
Template: api/v4/router/server/bird2/standard
"BGP LC" and "RFC1997 Passthru" are checked.

Server's Versions:
OS: Ubuntu 20.04.6 LTS
PHP: PHP 8.0.28
IXP Version: 6.3.0 ( 2022110200 )
BIRD Version: 2.0.13

Sincerely,
Earl Tan
AF Tech
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20230517/f92c5320/attachment.htm>
-------------- next part --------------
#######################################################################################
#
# IXP Manager V6 configuration.
#
# Initial settings from the installer script on Tue 02 May 2023 02:15:43 PST
#

APP_KEY={base64 key}

# set this to false in production:
APP_DEBUG=false

# Web address - required for sending emails via CLI scripts, etc.
APP_URL={url}
# See http://php.net/manual/en/timezones.php for a list of timezones:
APP_TIMEZONE="Asia/Manila"

# Laravel log format (strorage/log). See config/log.php
APP_LOG="single"

# MySQL Connection Details
DB_HOST="127.0.0.1"
DB_DATABASE="ixpmanager"
DB_USERNAME={user}
DB_PASSWORD={pass}

IDENTITY_DEFAULT_VLAN=1

#########################################################################################
### Member vs. Customer
###
### IXP Manager is an open source project and typically used in member-owned IXPs.
### As such, the language used mostly is 'member'. To change this to 'customer' just
### uncomment the following lines:
#
# IXP_FE_FRONTEND_CUSTOMER_ONE=customer
# IXP_FE_FRONTEND_CUSTOMER_MANY=customers
# IXP_FE_FRONTEND_CUSTOMER_OWNER="customer's"
# IXP_FE_FRONTEND_CUSTOMER_OWNERS="customers'"


#######################################################################################
### Features
#

# See: http://docs.ixpmanager.org/features/reseller/
IXP_RESELLER_ENABLED=false

# See: http://docs.ixpmanager.org/features/as112/
IXP_AS112_UI_ACTIVE=false


#######################################################################################
### Frontend controllers and controller configuration
#
# Some frontend controllers are disabled by default. This is for a variety of reasons
# including: additional configuration may be required, maintain backwards
# compatibility, etc.

# Allow customers / admins to upload logos for members. Set to false to enabled.
# See: http://docs.ixpmanager.org/usage/customers/#customer-logos
IXP_FE_FRONTEND_DISABLED_LOGO=false

# Send email notifications when a customer's billing details are updated.
# See: http://docs.ixpmanager.org/usage/customers/#notification-of-billing-details-changed
# IXP_FE_CUSTOMER_BILLING_UPDATES_NOTIFY="mail at example.com"


# Disable links to the peering matrix if you have not set it up (with sflow):
# IXP_FE_FRONTEND_DISABLED_PEERING_MATRIX=true

#######################################################################################
### Graphing - see https://ixp-manager.readthedocs.org/en/latest/features/grapher.html

# Enable the backends you have configured. E.g.:
# GRAPHER_BACKENDS="mrtg|sflow|smokeping"

# On a new installation, we just use placeholders from the dummy backend:
GRAPHER_BACKENDS="mrtg|sflow|smokeping"
#GRAPHER_BACKENDS="dummy"

# With the cache enabled, IXP Manager does not have to regenerate / reload / reprocess
# log / rrd / image files if we have cached them and they are less than 5mins old. This
# is enabled by default which is the recommended setting.
GRAPHER_CACHE_ENABLED=true

#################################################################################
## Grapher - Mrtg - see: https://docs.ixpmanager.org/grapher/mrtg/
##

# For backwards compatibility, the default is 'log' but 'rrd' is more modern:
GRAPHER_BACKEND_MRTG_DBTYPE="rrd"

# The defaults for these are '/tmp' to require you to change them to something
# more sensible such as:
GRAPHER_BACKEND_MRTG_WORKDIR="/srv/mrtg"
GRAPHER_BACKEND_MRTG_LOGDIR="/srv/mrtg"

#################################################################################
## Grapher - sflow - see: https://docs.ixpmanager.org/grapher/sflow/
##

# GRAPHER_BACKEND_SFLOW_ENABLED=false
# GRAPHER_BACKEND_SFLOW_ROOT="http://sflow-server.example.com/grapher-sflow"


#################################################################################
## Grapher - smokeping - see: https://docs.ixpmanager.org/grapher/smokeping/
##

# Mark it as enabled (this just affects whether certain UI elements are shown):
# GRAPHER_BACKEND_SMOKEPING_ENABLED=true

# And set the default location to fetch the Smokeping graphs from:
# GRAPHER_BACKEND_SMOKEPING_URL="http://www.example.com/smokeping"





#################################################################################
## IX-F Member Export - see: https://docs.ixpmanager.org/features/ixf-export/

IXP_API_JSONEXPORTSCHEMA_PUBLIC=true


#######################################################################################
### Skinning
#
# See https://ixp-manager.readthedocs.io/en/latest/features/skinning.html
#
# VIEW_SKIN="myskin"
VIEW_SKIN="ownskin"


#######################################################################################
# See config/cache.php
CACHE_DRIVER=memcached

#######################################################################################
# Session Lifetimes - standard and remember me.
#
# See https://docs.ixpmanager.org/usage/authentication/
#
# SESSION_LIFETIME=120
# AUTH_TOKEN_EXPIRE=43200


#######################################################################################
# PeeringDB Authentication
#
# PeeringDb's API is used, for example, to pre-populate new customer details. If you
# provide a working PeeringDb username/password then these will be used to get more
# complete information.
#
# IXP_API_PEERING_DB_USERNAME=username
# IXP_API_PEERING_DB_PASSWORD=password



#######################################################################################
# Options for updating RIR Objects - see https://docs.ixpmanager.org/features/rir-objects/

# Your RIR password to allow the updating of a RIR object by email:
# IXP_API_RIR_PASSWORD=soopersecret

# Rather than specifying the destination address on the command line, you can set it here
# (useful for cronjobs and required for use with artisan schedule:run in >=v5.0)
# IXP_API_RIR_EMAIL_TO=test-dbm at ripe.net

# Rather than specifying the from address on the command line, you can set it here
# (useful for cronjobs and required for use with artisan schedule:run in >=v5.0)
# IXP_API_RIR_EMAIL_FROM=ixp at example.com


#######################################################################################
# Utility paths

# See: https://docs.ixpmanager.org/features/irrdb/
IXP_IRRDB_BGPQ3_PATH=/usr/bin/bgpq3

# See: https://docs.ixpmanager.org/features/rpki/
# IXP_RPKI_RTR1_HOST=192.0.2.11
# IXP_RPKI_RTR1_PORT=3323
# IXP_RPKI_RTR2_HOST=192.0.2.12
# IXP_RPKI_RTR2_PORT=3323

#########################################################################################
### Development Helpers
###

# Disable HTML5 validation to test PHP code based request validators
# FORMER_LIVE_VALIDATION=false


#########################################################################################
### PeeringDB OAuth
###
### https://docs.ixpmanager.org/features/peeringdb-oauth/
###

# AUTH_PEERINGDB_ENABLED=true

# PEERINGDB_OAUTH_CLIENT_ID="xxx"
# PEERINGDB_OAUTH_CLIENT_SECRET="xxx"
# PEERINGDB_OAUTH_REDIRECT="https://www.example.com/auth/login/peeringdb/callback"


IXP_FE_FRONTEND_DISABLED_LOOKING_GLASS=false


More information about the ixpmanager mailing list