diff --git a/contrib/buildah.sh b/contrib/buildah.sh new file mode 100755 index 0000000..621b027 --- /dev/null +++ b/contrib/buildah.sh @@ -0,0 +1,65 @@ +#!/bin/bash +########################################################################## +echo "Building bird-lg container" + +IMAGE='bird-lg' + +# find the REPO directory +SCRIPTPATH="$(cd "$(dirname "$0")" ; pwd -P)" +REPOPATH="$(cd "${SCRIPTPATH}/../"; pwd -P)" +echo "Repo is in: ${REPOPATH}" + +########################################################################## + +DEPS=( + 'python3' + 'python3-flask' + 'python3-dnspython' + 'python3-pydot' + 'python3-memcache' + 'graphviz' + 'whois' + 'traceroute' +) +B=$(which buildah) + +# initialise container +c=$($B from --name ${IMAGE}-working docker.io/debian:buster) + +########################################################################## + +# install dependencies and initialise directories +$B run $c -- bash < name mapping -ASN_ZONE = "asn.cymru.com" +#ASN_ZONE = "asn.dn42" SESSION_KEY = '\xd77\xf9\xfa\xc2\xb5\xcd\x85)`+H\x9d\xeeW\\%\xbe/\xbaT\x89\xe8\xa7' diff --git a/lg.py b/lg.py index d798f94..50dc7d8 100644 --- a/lg.py +++ b/lg.py @@ -232,7 +232,7 @@ def whois(): return jsonify(output=output, title=query) # Array of protocols that will be filtered from the summary listing -SUMMARY_UNWANTED_PROTOS = ["Kernel", "Static", "Device", "BFD", "Direct", "RPKI"] +SUMMARY_UNWANTED_PROTOS = ["Kernel", "Static", "Device", "BFD", "Direct", "RPKI","RAdv", "OSPF"] # Array of regular expressions to match against protocol names, # and filter them from the summary view SUMMARY_UNWANTED_NAMES = [] diff --git a/static/css/local.css b/static/css/local.css index f8700f1..1557045 100644 --- a/static/css/local.css +++ b/static/css/local.css @@ -3,3 +3,15 @@ * */ +body { + font-size: 0.85rem; +} + +.table td, .table th { + padding: .4rem; +} + +.nav-link { + padding: 0.1rem 0.3rem; +} + diff --git a/templates/layout.html b/templates/layout.html index 3d08280..ae8ac94 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -87,7 +87,7 @@