From 9844cb02316ce418a93b7a8a388be9559a167198 Mon Sep 17 00:00:00 2001 From: Johann Wagner Date: Tue, 10 Dec 2024 14:15:36 +0100 Subject: [PATCH] Added lag-access type --- cosmo/serializer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cosmo/serializer.py b/cosmo/serializer.py index 7a8221c..871feeb 100644 --- a/cosmo/serializer.py +++ b/cosmo/serializer.py @@ -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"