stuff
This commit is contained in:
10
models.py
10
models.py
@@ -72,6 +72,16 @@ class Location:
|
||||
active: bool = False
|
||||
vpn_config: str = "" # Path to VPN config or connection details
|
||||
hosts: List[Host] = field(default_factory=list)
|
||||
|
||||
# VPN connection management fields
|
||||
nmcli_connection_name: Optional[str] = None # NetworkManager connection name
|
||||
auto_import: bool = True # Auto-import .ovpn file if not in NetworkManager
|
||||
|
||||
# Credential storage - can be:
|
||||
# - Passbolt UUID string (for future use)
|
||||
# - Dict with 'username' and 'password' keys
|
||||
# - None if no credentials needed
|
||||
vpn_credentials: Optional[dict | str] = None
|
||||
|
||||
def get_host_by_name(self, host_name: str) -> Optional[Host]:
|
||||
"""Get a host by its name (searches recursively in sub-hosts)."""
|
||||
|
||||
Reference in New Issue
Block a user