mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-12-23 11:02:22 +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:
|
||||
if self.type == 'STATIC':
|
||||
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.netmask,
|
||||
self.gateway)
|
||||
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.netmask,
|
||||
self.gateway)
|
||||
|
|
Loading…
Reference in a new issue