git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
213b967
)
only filter hostmap for 10.x.x.x addresses
author
Scott Baker
<smbaker@gmail.com>
Wed, 13 Nov 2013 01:57:51 +0000
(17:57 -0800)
committer
Scott Baker
<smbaker@gmail.com>
Wed, 13 Nov 2013 01:57:51 +0000
(17:57 -0800)
plugins/hostmap.py
patch
|
blob
|
history
diff --git
a/plugins/hostmap.py
b/plugins/hostmap.py
index
8af33cf
..
8bd1c08
100644
(file)
--- 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 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):
continue
if (index==0):