Skip to content

Commit 3379781

Browse files
author
Satish Ramachandran
committed
Add "aci-opflex" infra fabric mode option.
1 parent 51b1d75 commit 3379781

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

netctl/commands.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ var Commands = []cli.Command{
269269
Flags: []cli.Flag{
270270
cli.StringFlag{
271271
Name: "fabric-mode, f",
272-
Usage: "Fabric mode (aci or default)",
272+
Usage: "Fabric mode (aci, aci-opflex or default)",
273273
Value: "default",
274274
},
275275
cli.StringFlag{

netmaster/master/netmaster.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ func validateTenantConfig(tenant *intent.ConfigTenant) error {
111111
// CreateGlobal sets the global state
112112
func CreateGlobal(stateDriver core.StateDriver, gc *intent.ConfigGlobal) error {
113113
// 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:
115118
return errors.New("Invalid fabric mode")
116119
}
117120
_, err := netutils.ParseTagRanges(gc.VLANs, "vlan")

0 commit comments

Comments
 (0)