mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 20:12:20 +03:00
static IP bug fixed
This commit is contained in:
parent
34886462f8
commit
e6cf0015ae
1 changed files with 2 additions and 2 deletions
|
@ -32,12 +32,12 @@ class AddNetwork(AbstractPlugin):
|
||||||
try:
|
try:
|
||||||
if self.type == 'STATIC':
|
if self.type == 'STATIC':
|
||||||
if self.is_active is True:
|
if self.is_active is True:
|
||||||
self.content = 'iface {0} inet static\n address {1}\n netmask {2}\n gateway {3}\n'.format(self.name,
|
self.content = 'auto {0}\n iface {0} inet static\n address {1}\n netmask {2}\n gateway {3}\n'.format(self.name,
|
||||||
self.ip,
|
self.ip,
|
||||||
self.netmask,
|
self.netmask,
|
||||||
self.gateway)
|
self.gateway)
|
||||||
else:
|
else:
|
||||||
self.content = 'iface {0} inet static\n#address {1}\n#netmask {2}\n#gateway {3}\n'.format(self.name,
|
self.content = 'auto {0}\n iface {0} inet static\n#address {1}\n#netmask {2}\n#gateway {3}\n'.format(self.name,
|
||||||
self.ip,
|
self.ip,
|
||||||
self.netmask,
|
self.netmask,
|
||||||
self.gateway)
|
self.gateway)
|
||||||
|
|
Loading…
Reference in a new issue