Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sebageek committed Aug 2, 2024
1 parent 265e92d commit 1478efb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions networking_ccloud/ml2/agent/common/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 2 additions & 0 deletions networking_ccloud/ml2/agent/nxos/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,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:
Expand Down

0 comments on commit 1478efb

Please sign in to comment.