Skip to content

Commit

Permalink
Added a warning for configuring a core interface without an MTU
Browse files Browse the repository at this point in the history
  • Loading branch information
johannwagner committed Dec 10, 2024
1 parent 160a820 commit 7bf4c7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cosmo/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ def _get_unit(self, iface):
families["inet6"]["ipv6_ra"] = True

if tags.has("core"):
if not iface["mtu"]:
warnings.warn(f"Interface {iface['name']} on device {self.device['name']} has a core tag, but no MTU set.")

families["iso"] = {}
families["mpls"] = {}

Expand Down

0 comments on commit 7bf4c7b

Please sign in to comment.