python: hide inet_ntoa from frrbot

These are not the inet_ntoa you are looking for ;)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2022-10-28 11:18:06 +01:00
parent 638fc6d6e0
commit 6c7bc49428
1 changed files with 3 additions and 2 deletions

View File

@ -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,
),
(