Skip to content

Commit

Permalink
WIP: scratchspace
Browse files Browse the repository at this point in the history
  • Loading branch information
sebageek committed Aug 20, 2024
1 parent f001aa9 commit ccf2d21
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)
enable_multisite: bool = False
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 @@ -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:
Expand Down

0 comments on commit ccf2d21

Please sign in to comment.