Skip to content

Commit

Permalink
Added lag-access type
Browse files Browse the repository at this point in the history
  • Loading branch information
johannwagner committed Dec 10, 2024
1 parent 160a820 commit 9844cb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cosmo/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,9 @@ def serialize(self):
case _:
warnings.warn(f"FEC mode {fec} on interface {interface['name']} is not known, ignoring")

if interface.get("type", '').lower() == "lag":
if interface.get("type", '').lower() == "lag" and tags.has_key("access"):
interface_stub["type"] = "lag-access"
elif interface.get("type", '').lower() == "lag":
interface_stub["type"] = "lag"
elif interface.get("type", '').lower() == "loopback":
interface_stub["type"] = "loopback"
Expand Down

0 comments on commit 9844cb0

Please sign in to comment.