1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2025-03-25 21:44:27 +01:00

Allow dash (-) in protocol names

This commit is contained in:
Julian Labus 2018-09-21 18:29:41 +02:00
parent 58c1b01719
commit 2868c339c9
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A

2
lg.py
View file

@ -223,7 +223,7 @@ def whois():
SUMMARY_UNWANTED_PROTOS = ["Kernel", "Static", "Device"]
SUMMARY_RE_MATCH = r"(?P<name>[\w_]+)\s+(?P<proto>\w+)\s+(?P<table>\w+)\s+(?P<state>\w+)\s+(?P<since>((|\d\d\d\d-\d\d-\d\d\s)|(\d\d:)\d\d:\d\d|\w\w\w\d\d))($|\s+(?P<info>.*))"
SUMMARY_RE_MATCH = r"(?P<name>[\w_-]+)\s+(?P<proto>\w+)\s+(?P<table>\w+)\s+(?P<state>\w+)\s+(?P<since>((|\d\d\d\d-\d\d-\d\d\s)|(\d\d:)\d\d:\d\d|\w\w\w\d\d))($|\s+(?P<info>.*))"
@app.route("/summary/<hosts>")