only filter hostmap for 10.x.x.x addresses
authorScott Baker <smbaker@gmail.com>
Wed, 13 Nov 2013 01:57:51 +0000 (17:57 -0800)
committerScott Baker <smbaker@gmail.com>
Wed, 13 Nov 2013 01:57:51 +0000 (17:57 -0800)
plugins/hostmap.py

index 8af33cf..8bd1c08 100644 (file)
@@ -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):