File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ var Commands = []cli.Command{
269
269
Flags : []cli.Flag {
270
270
cli.StringFlag {
271
271
Name : "fabric-mode, f" ,
272
- Usage : "Fabric mode (aci or default)" ,
272
+ Usage : "Fabric mode (aci, aci-opflex or default)" ,
273
273
Value : "default" ,
274
274
},
275
275
cli.StringFlag {
Original file line number Diff line number Diff line change @@ -111,7 +111,10 @@ func validateTenantConfig(tenant *intent.ConfigTenant) error {
111
111
// CreateGlobal sets the global state
112
112
func CreateGlobal (stateDriver core.StateDriver , gc * intent.ConfigGlobal ) error {
113
113
// check for valid values
114
- if gc .NwInfraType != "default" && gc .NwInfraType != "aci" {
114
+ switch gc .NwInfraType {
115
+ case "default" , "aci" , "aci-opflex" :
116
+ // These values are acceptable.
117
+ default :
115
118
return errors .New ("Invalid fabric mode" )
116
119
}
117
120
_ , err := netutils .ParseTagRanges (gc .VLANs , "vlan" )
You can’t perform that action at this time.
0 commit comments