feat: review missing prefixes, VRFs and VLANs; enforce tenants
- Review dialog gains "Networks" and "VLANs" tabs: VRF per network (global, tenant VRF or new VRF), missing prefixes and VLANs are only created when ticked; existing tenant VLANs are assigned to ports (802.1Q mode, untagged/tagged) - Read VLAN names from the configuration (Comware now reads the full current-configuration) - Switch IP addresses follow the chosen VRF instead of always global - Tenant required: switches without tenant are refused; IPs, prefixes, VRFs, VLANs and cables get the switch's tenant; client import requires a tenant and client IP addresses now get it too - Fix clipped combo boxes in the review dialog tables Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
7b5dd4bc9b
commit
83787142d3
8 files changed
+386
-25
No files matched your search
@@ -429,6 +429,7 @@ class Actions:
|
||||
needs_review = any(
|
||||
any(entry["method"] not in ("name", "new") or (entry["method"] == "new" and entry["physical"])
|
||||
for entry in item["interfaces"]) or (create_cables and item["neighbors"])
|
||||
or item["networks"] or any(not vlan["netbox_name"] for vlan in item["vlans"])
|
||||
for _switch, item in reviewable)
|
||||
|
||||
def ask():
|
||||
|
||||
Reference in new issue
Block a user