From 06bb0866ed6c082fc39ae8dbe1e824d185d50f0c Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Sat, 15 Aug 2020 16:23:30 +0100 Subject: [PATCH] remove doctopt --- lib/exabgp/application/pipe.py | 2 +- .../bgp/message/open/capability/capability.py | 1 - lib/exabgp/configuration/usage.py | 103 ---- lib/exabgp/vendoring/docopt.py | 559 ------------------ tox.ini | 22 - 5 files changed, 1 insertion(+), 686 deletions(-) delete mode 100644 lib/exabgp/configuration/usage.py delete mode 100644 lib/exabgp/vendoring/docopt.py delete mode 100644 tox.ini diff --git a/lib/exabgp/application/pipe.py b/lib/exabgp/application/pipe.py index 673901a2c..220bec66c 100644 --- a/lib/exabgp/application/pipe.py +++ b/lib/exabgp/application/pipe.py @@ -283,7 +283,7 @@ def main(location=''): location = os.environ.get('exabgp_cli_pipe', '') if not location: sys.stderr.write("usage %s %s\n" % (sys.executable, ' '.join(sys.argv))) - sys.stderr.write("run with 'env exabgp_cli_pipe=' if you are trying to mess with ExaBGP's intenals") + sys.stderr.write("run with 'env exabgp_cli_pipe=' if you are trying to mess with ExaBGP's internals") sys.stderr.flush() sys.exit(1) Control(location).run() diff --git a/lib/exabgp/bgp/message/open/capability/capability.py b/lib/exabgp/bgp/message/open/capability/capability.py index 078cbb827..00b6dcf54 100644 --- a/lib/exabgp/bgp/message/open/capability/capability.py +++ b/lib/exabgp/bgp/message/open/capability/capability.py @@ -61,7 +61,6 @@ class _CapabilityCode(int): MULTISESSION_CISCO: 'cisco-multi-sesion', AIGP: 'aigp', HOSTNAME: 'exabgp-experimental-hostname', - OPERATIONAL: 'exabgp-experimental-operational', } def __new__(cls, value): diff --git a/lib/exabgp/configuration/usage.py b/lib/exabgp/configuration/usage.py deleted file mode 100644 index e45ed1695..000000000 --- a/lib/exabgp/configuration/usage.py +++ /dev/null @@ -1,103 +0,0 @@ -# encoding: utf-8 -""" -usage.py - -Created by Thomas Mangin on 2014-12-19. -Copyright (c) 2009-2017 Exa Networks. All rights reserved. -License: 3-clause BSD. (See the COPYRIGHT file) -""" - -usage = """\ -The BGP swiss army knife of networking - -usage: exabgp [--help] [--version] - [--root ROOT] [--env ENV] - [[--full-ini | --diff-ini | --full-env | --diff-env] | - [--fi | --di | --fe | --de]] - [--debug] [--pdb] [--test] - [--once] [--signal TIME] - [--memory] [--profile PROFILE] - [--validate] - [--run HELPER] - [--decode HEX_MESSAGE]... - [...] - -positional arguments: - configuration peer and route configuration file - -optional arguments: - --help, -h ExaBGP manual page - --version, -v shows ExaBGP version - --root ROOT, -f ROOT - root folder where etc,bin,sbin are located - --env ENV, -e ENV environment configuration file - --full-ini display the configuration using the ini format - --fi (shorthand for above) - --diff-ini display non-default configurations values using the ini - format - --di (shorthand for above) - --full-env display the configuration using the env format - --fe (shorthand for above) - --diff-env display non-default configurations values using the env - format - --de (shorthand for above) - --run HELPER Do not run ExaBGP but one of its helper program - (options are: healthcheck and cli) - -debugging: - --debug, -d start the python debugger on serious logging and on - SIGTERM (shortcut for exabgp.log.all=true - exabgp.log.level=DEBUG) - --validate validate the configuration file format only - --signal TIME issue a SIGUSR1 to reload the configuration after -