From 0beebd101fd40597149e43dfefe00c35e414b913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B0=D0=BC=D0=BE=D1=83=D0=BA=D0=B8=D0=BD=20=D0=90?= =?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?= Date: Thu, 17 Sep 2009 15:35:43 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20=D0=B7=D0=B0=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9=20=D0=BF=D1=80=D0=BE=D1=84=D0=B8?= =?UTF-8?q?=D0=BB=D1=8F=20os=5Fnet=5Fallow=20-=20=D0=B4=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=83=D0=BF=D0=BD=D1=8B=D0=B5=20=D1=81=D0=B5=D1=82=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/cl_fill.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pym/cl_fill.py b/pym/cl_fill.py index bf6969e..1782199 100644 --- a/pym/cl_fill.py +++ b/pym/cl_fill.py @@ -128,7 +128,8 @@ class fillVars(object, cl_base.glob_attr): # Разрешенные сети (в данном случае все сети) def get_os_net_allow(self): """Разрешенные сети разделитель запятая""" - net={'255.255.0.0':'/16', + net={'255.0.0.0':'/8', + '255.255.0.0':'/16', '255.255.255.0':'/24', '255.255.255.128':'/25', '255.255.255.252':'/30', @@ -162,6 +163,9 @@ class fillVars(object, cl_base.glob_attr): net[netmask]) elif netmask=='255.255.0.0': networks.append(ip[0]+"."+ip[1]+".0.0"+net[netmask]) + elif netmask=='255.0.0.0': + networks.append(ip[0]+".0.0.0"+net[netmask]) + if flagError: return "" return ",".join(networks)