From d1cf4a0ffbbee849824fe1d973ea79afaed95e3e Mon Sep 17 00:00:00 2001 From: Retspen Date: Thu, 30 Apr 2015 16:09:13 +0300 Subject: [PATCH] Fixed bad gateway --- vrtManager/network.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/vrtManager/network.py b/vrtManager/network.py index a9e1afb..506f45e 100644 --- a/vrtManager/network.py +++ b/vrtManager/network.py @@ -9,12 +9,8 @@ def network_size(net, dhcp=None): """ mask = IP(net).strNetmask() addr = IP(net) - if addr[0].strNormal()[-1] == '0': - gateway = addr[1].strNormal() - dhcp_pool = [addr[2].strNormal(), addr[addr.len() - 2].strNormal()] - else: - gateway = addr[0].strNormal() - dhcp_pool = [addr[1].strNormal(), addr[addr.len() - 2].strNormal()] + gateway = addr[1].strNormal() + dhcp_pool = [addr[2].strNormal(), addr[addr.len() - 2].strNormal()] if dhcp: return gateway, mask, dhcp_pool else: