diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2022-10-28 12:18:06 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2022-10-28 12:18:06 +0200 |
commit | 6c7bc49428b594e0747af9813b4c510bd2817f4e (patch) | |
tree | 55f6ffa5552959a884235f8dcae5cf3326304439 /python | |
parent | python: fix a bunch of pylint warnings in clippy (diff) | |
download | frr-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.py | 5 |
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, ), ( |