diff --git a/networking_ccloud/ml2/agent/common/messages.py b/networking_ccloud/ml2/agent/common/messages.py index 799d395..883280f 100644 --- a/networking_ccloud/ml2/agent/common/messages.py +++ b/networking_ccloud/ml2/agent/common/messages.py @@ -97,6 +97,8 @@ def __lt__(self, other): class VXLANMapping(pydantic.BaseModel): + # FIXME: medidate over if we really need this as a separate config object + # could the VNI just be part of the vlan and that's that? vni: pydantic.conint(gt=0, lt=2**24) vlan: pydantic.conint(gt=0, lt=4094) enable_multisite: bool = False diff --git a/networking_ccloud/ml2/agent/nxos/switch.py b/networking_ccloud/ml2/agent/nxos/switch.py index 3f37ba7..8e6abf3 100644 --- a/networking_ccloud/ml2/agent/nxos/switch.py +++ b/networking_ccloud/ml2/agent/nxos/switch.py @@ -481,6 +481,8 @@ def _apply_config_update(self, config): config_req = self._make_config_from_update(config) try: + LOG.info("Applying config update %s", + dict(delete=config_req.delete, replace=config_req.replace, update=config_req.update)) self.api.set(delete=config_req.delete, replace=config_req.replace, update=config_req.update) self.metric_apply_config_update_success.labels(**self._def_labels).inc() except Exception as e: