File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
roles/validate/files/rules/common Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments