reset all implemented
This commit is contained in:
parent
2fc7ce2149
commit
de24b20c68
@ -47,6 +47,13 @@ class MyCmd(cmd.Cmd):
|
|||||||
if len(parts) != 1:
|
if len(parts) != 1:
|
||||||
raise LocalMyCmdException("illegal number of arguments")
|
raise LocalMyCmdException("illegal number of arguments")
|
||||||
x = parts[0]
|
x = parts[0]
|
||||||
|
if x == 'all':
|
||||||
|
for entry in MyCmd.entries.values():
|
||||||
|
entry.address = '0.0.0.0'
|
||||||
|
entry.addressInDns = '0.0.0.0'
|
||||||
|
entry.lastEventTime = int(time.time())
|
||||||
|
self.stdout.write(str(entry) + "\n")
|
||||||
|
else:
|
||||||
if MyCmd.entries.has_key(x):
|
if MyCmd.entries.has_key(x):
|
||||||
MyCmd.entries[x].address = '0.0.0.0'
|
MyCmd.entries[x].address = '0.0.0.0'
|
||||||
MyCmd.entries[x].addressInDns = '0.0.0.0'
|
MyCmd.entries[x].addressInDns = '0.0.0.0'
|
||||||
|
@ -50,7 +50,7 @@ CUSTOMERS_FILE = "/var/db/yadyn/customers"
|
|||||||
ACTIONLOG_DIR = "/var/db/yadyn/actionlog"
|
ACTIONLOG_DIR = "/var/db/yadyn/actionlog"
|
||||||
ADMIN_PWD = 'test123'
|
ADMIN_PWD = 'test123'
|
||||||
DNS_DUMMY = False
|
DNS_DUMMY = False
|
||||||
DEBUG = False
|
DEBUG = True
|
||||||
BACKGROUND = True
|
BACKGROUND = True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user