Skip to content

Commit c721b58

Browse files
Update 204_global_bootstrap.py (#622)
1 parent 0ff7b63 commit c721b58

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

roles/validate/files/rules/common/204_global_bootstrap.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def match(cls, data_model):
1212
fabric_type_map = {
1313
"VXLAN_EVPN": "ibgp",
1414
"eBGP_VXLAN": "ebgp",
15+
"External": "external"
1516
}
1617

1718
fabric_type = fabric_type_map.get(data_model['vxlan']['fabric']['type'])
@@ -61,9 +62,10 @@ def match(cls, data_model):
6162
)
6263
return results
6364

64-
if 'domain_name' in check['keys_found']:
65+
if 'domain_name' in check['keys_found'] and fabric_type in ("ibgp", "ebgp"):
6566
results.append(f"vxlan.global.bootstrap.{dhcp}.domain_name is not supported for bootstrap in a VXLAN type fabric.")
66-
67+
elif 'domain_name' in check['keys_not_found'] and fabric_type == "external":
68+
results.append(f"vxlan.global.bootstrap.{dhcp}.domain_name is required for bootstrap in an External type fabric.")
6769
return results
6870

6971
@classmethod

0 commit comments

Comments
 (0)