OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
exabgp
/
configuration
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
__init__.py
0 bytes
03/13/2021 04:30:48 PM
rw-r--r--
📁
__pycache__
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📁
announce
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
capability.py
3.08 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
check.py
10.11 KB
03/13/2021 04:30:48 PM
rw-r--r--
📄
configuration.py
21.04 KB
03/13/2021 04:30:48 PM
rw-r--r--
📁
core
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
environment.py
11.85 KB
03/13/2021 04:30:48 PM
rw-r--r--
📁
flow
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📁
l2vpn
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📁
neighbor
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📁
operational
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
parser.py
2.92 KB
03/13/2021 04:30:48 PM
rw-r--r--
📁
process
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
setup.py
10.63 KB
03/13/2021 04:30:48 PM
rw-r--r--
📁
static
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📁
template
-
03/16/2023 12:55:54 PM
rwxr-xr-x
📄
usage.py
4.12 KB
03/13/2021 04:30:48 PM
rw-r--r--
Editing: setup.py
Close
# encoding: utf-8 """ setup.py Created by Thomas Mangin on 2014-12-23. Copyright (c) 2014-2017 Exa Networks. All rights reserved. License: 3-clause BSD. (See the COPYRIGHT file) """ from exabgp.configuration.environment import environment _SPACE = {'space': ' ' * 33} HELP_STDOUT = ( """\ where logging should log %(space)s syslog (or no setting) sends the data to the local syslog syslog %(space)s host:<location> sends the data to a remote syslog server %(space)s stdout sends the data to stdout %(space)s stderr sends the data to stderr %(space)s <filename> send the data to a file""" % _SPACE ) environment.application = 'exabgp' environment.configuration = { 'profile': { 'enable': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'toggle profiling of the code', }, 'file': { 'read': environment.unquote, 'write': environment.quote, 'value': '', 'help': 'profiling result file, none means stdout, no overwriting', }, }, 'pdb': { 'enable': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'on program fault, start pdb the python interactive debugger', } }, 'daemon': { 'pid': { 'read': environment.unquote, 'write': environment.quote, 'value': '', 'help': 'where to save the pid if we manage it', }, 'user': {'read': environment.user, 'write': environment.quote, 'value': 'nobody', 'help': 'user to run as',}, 'daemonize': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'should we run in the background', }, 'drop': { 'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'drop privileges before forking processes', }, 'umask': { 'read': environment.umask_read, 'write': environment.umask_write, 'value': '0137', 'help': 'run daemon with this umask, governs perms of logfiles etc.', }, }, 'log': { 'enable': {'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'enable logging',}, 'level': { 'read': environment.syslog_value, 'write': environment.syslog_name, 'value': 'INFO', 'help': 'log message with at least the priority SYSLOG.<level>', }, 'destination': { 'read': environment.unquote, 'write': environment.quote, 'value': 'stdout', 'help': HELP_STDOUT, }, 'all': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'report debug information for everything', }, 'configuration': { 'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'report command parsing', }, 'reactor': { 'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'report signal received, command reload', }, 'daemon': { 'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'report pid change, forking, ...', }, 'processes': { 'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'report handling of forked processes', }, 'network': { 'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'report networking information (TCP/IP, network state,...)', }, 'packets': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'report BGP packets sent and received', }, 'rib': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'report change in locally configured routes', }, 'message': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'report changes in route announcement on config reload', }, 'timers': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'report keepalives timers', }, 'routes': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'report received routes', }, 'parser': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'report BGP message parsing details', }, 'short': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'use short log format (not prepended with time,level,pid and source)', }, }, 'tcp': { 'once': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'only one tcp connection attempt per peer (for debuging scripts)', }, 'delay': { 'read': environment.integer, 'write': environment.nop, 'value': '0', 'help': 'start to announce route when the minutes in the hours is a modulo of this number', }, 'bind': { 'read': environment.ip_list, 'write': environment.quote_list, 'value': '', 'help': 'Space separated list of IPs to bind on when listening (no ip to disable)', }, 'port': { 'read': environment.integer, 'write': environment.nop, 'value': '179', 'help': 'port to bind on when listening', }, 'acl': { 'read': environment.boolean, 'write': environment.lower, 'value': '', 'help': '(experimental) unimplemented', }, }, 'bgp': { 'openwait': { 'read': environment.integer, 'write': environment.nop, 'value': '60', 'help': 'how many seconds we wait for an open once the TCP session is established', }, }, 'cache': { 'attributes': { 'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'cache all attributes (configuration and wire) for faster parsing', }, 'nexthops': { 'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'cache routes next-hops (deprecated: next-hops are always cached)', }, }, 'api': { 'ack': { 'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'acknowledge api command(s) and report issues', }, 'chunk': { 'read': environment.integer, 'write': environment.nop, 'value': '1', 'help': 'maximum lines to print before yielding in show routes api', }, 'encoder': { 'read': environment.api, 'write': environment.lower, 'value': 'json', 'help': '(experimental) default encoder to use with with external API (text or json)', }, 'compact': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'shorter JSON encoding for IPv4/IPv6 Unicast NLRI', }, 'respawn': { 'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'should we try to respawn helper processes if they dies', }, 'terminate': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'should we terminate ExaBGP if any helper process dies', }, 'cli': { 'read': environment.boolean, 'write': environment.lower, 'value': 'true', 'help': 'should we create a named pipe for the cli', }, 'pipename': { 'read': environment.unquote, 'write': environment.quote, 'value': 'exabgp', 'help': 'name to be used for the exabgp pipe', }, }, 'reactor': { 'speed': { 'read': environment.real, 'write': environment.nop, 'value': '1.0', 'help': 'reactor loop time\n%(space)s use only if you understand the code.' % _SPACE, }, }, # Here for internal use 'debug': { 'pdb': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'enable python debugger on errors', }, 'memory': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'command line option --memory', }, 'configuration': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'undocumented option: raise when parsing configuration errors', }, 'selfcheck': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'does a self check on the configuration file', }, 'route': { 'read': environment.unquote, 'write': environment.quote, 'value': '', 'help': 'decode the route using the configuration', }, 'defensive': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'generate random fault in the code in purpose', }, 'rotate': { 'read': environment.boolean, 'write': environment.lower, 'value': 'false', 'help': 'rotate configurations file on reload (signal)', }, }, }