From ffe49131a51c85e7bf8c4a6cb641a805beb09a50 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Tue, 12 Nov 2013 17:57:51 -0800 Subject: [PATCH] only filter hostmap for 10.x.x.x addresses --- plugins/hostmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hostmap.py b/plugins/hostmap.py index 8af33cf..8bd1c08 100644 --- a/plugins/hostmap.py +++ b/plugins/hostmap.py @@ -56,7 +56,7 @@ def GetSlivers(data, config=None, plc=None): if len(parts)==2: line = "%s pvt.%s private%d" % (parts[0], parts[1], index) - if not (hostname_filter in parts[1]): + if (parts[0].startswith("10.")) and (hostname_filter not in parts[1]): continue if (index==0): -- 2.43.0