feat: offline mode with JSON export/import
Collect VMs and switch data without NetBox, export them to a credential-free .nbsync.json file and import it later where NetBox is reachable. Toggled by a global sidebar checkbox. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c3b5fb547e
commit
52f1e4b5f1
14 files changed
+437
-33
No files matched your search
@@ -190,6 +190,10 @@ class AppState(QObject):
|
||||
def switches(self):
|
||||
return self.profile["switches"] if self.profile else []
|
||||
|
||||
@property
|
||||
def offline(self):
|
||||
return bool(self.settings.get("offline_mode"))
|
||||
|
||||
def netbox_configured(self):
|
||||
profile = self.profile
|
||||
return bool(profile and profile.get("netbox_url") and profile.get("netbox_token"))
|
||||
Reference in new issue
Block a user