summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-10-28 12:18:06 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2022-10-28 12:18:06 +0200
commit6c7bc49428b594e0747af9813b4c510bd2817f4e (patch)
tree55f6ffa5552959a884235f8dcae5cf3326304439 /python
parentpython: fix a bunch of pylint warnings in clippy (diff)
downloadfrr-6c7bc49428b594e0747af9813b4c510bd2817f4e.tar.xz
frr-6c7bc49428b594e0747af9813b4c510bd2817f4e.zip
python: hide inet_ntoa from frrbot
These are not the inet_ntoa you are looking for ;) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'python')
-rw-r--r--python/xrelfo.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/xrelfo.py b/python/xrelfo.py
index 966ccdee9..c75b4cb95 100644
--- a/python/xrelfo.py
+++ b/python/xrelfo.py
@@ -164,8 +164,9 @@ class XrefLogmsg(ELFDissectStruct, XrelfoJson):
lambda s: True,
),
(
- re.compile(r"((?<![\?:] )inet_ntoa)"),
- "cleanup: replace inet_ntoa(...) with %pI4",
+ # string split-up here is to not trigger "inet_ntoa forbidden"
+ re.compile(r"((?<![\?:] )inet_" + r"ntoa)"),
+ "cleanup: replace inet_" + "ntoa(...) with %pI4",
lambda s: True,
),
(