Skip to content
Snippets Groups Projects

Feature/update lan interconnect

Merged Karel van Klink requested to merge feature/update-lan-interconnect into develop
2 files
+ 50
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -27,7 +27,7 @@ def validate_ipam(subscription: LanSwitchInterconnect) -> None:
host_record = find_host_by_fqdn(fqdn)
if not host_record or str(subscription.subscription_id) not in host_record.comment:
msg = "DNS record is incorrectly configured in IPAM, please investigate this manually!"
raise ProcessFailureError(msg)
raise ProcessFailureError(msg, details=host_record)
lan_interconnect_network = generate_lan_switch_interconnect_subnet(
subscription.lan_switch_interconnect.router_side.node.router_site.site_internal_id
@@ -35,7 +35,7 @@ def validate_ipam(subscription: LanSwitchInterconnect) -> None:
network_record = find_network_by_cidr(lan_interconnect_network)
if not network_record or str(subscription.subscription_id) not in network_record.comment:
msg = "LAN Switch Interconnect network is incorrectly configured in IPAM, please investigate this manually!"
raise ProcessFailureError(msg)
raise ProcessFailureError(msg, details=network_record)
@step("Check config for drift")
Loading