Implement more automated provisioning of aliases and relays, and remove networks cleanly

This commit is contained in:
2019-10-02 20:26:05 +01:00
parent 0f31d7f5e2
commit a3b81f8849
6 changed files with 77 additions and 9 deletions

View File

@@ -38,6 +38,7 @@ class NetworkCommand:
elif length == 3:
if spl[1] == "del":
if spl[2] in main.network.keys():
main.network[spl[2]].seppuku() # ;(
del main.network[spl[2]]
success("Successfully removed network: %s" % spl[2])
main.saveConf("network")