Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ def match(cls, data_model):
# networks = data_model["vxlan"]["overlay_services"]["networks"]

for network in networks:
current_vlan_name = network.get("vlan_name", None)
if current_vlan_name is not None and ' ' in str(current_vlan_name):
results.append(
f"vxlan.overlay.networks.{network['name']}.vlan_name must not contain whitespace."
)

current_network_netflow_status = network.get("netflow_enable", None)
if current_network_netflow_status is not None:
if fabric_netflow_status is False and current_network_netflow_status is True:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ def match(cls, data_model):
if 'networks' in check['keys_found'] and 'networks' in check['keys_data']:
networks = data_model['vxlan']['multisite']['overlay']['networks']
for network in networks:
current_vlan_name = network.get("vlan_name", None)
if current_vlan_name is not None and ' ' in str(current_vlan_name):
results.append(
f"vxlan.multisite.overlay.networks.{network['name']}.vlan_name must not contain whitespace."
)

for attr in network:
if attr in child_fabric_attributes:
results.append(cls.msg.format(network['name'], attr))
Expand Down
Loading