Skip to content

Commit

Permalink
Merge pull request #319 from saramach/my-netplugin-branch
Browse files Browse the repository at this point in the history
Add aci-opflex option to netctl CLI
  • Loading branch information
shaleman committed Apr 13, 2016
2 parents de2a672 + 3379781 commit 7e5b4cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netctl/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ var Commands = []cli.Command{
Flags: []cli.Flag{
cli.StringFlag{
Name: "fabric-mode, f",
Usage: "Fabric mode (aci or default)",
Usage: "Fabric mode (aci, aci-opflex or default)",
Value: "default",
},
cli.StringFlag{
Expand Down
5 changes: 4 additions & 1 deletion netmaster/master/netmaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ func validateTenantConfig(tenant *intent.ConfigTenant) error {
// CreateGlobal sets the global state
func CreateGlobal(stateDriver core.StateDriver, gc *intent.ConfigGlobal) error {
// check for valid values
if gc.NwInfraType != "default" && gc.NwInfraType != "aci" {
switch gc.NwInfraType {
case "default", "aci", "aci-opflex":
// These values are acceptable.
default:
return errors.New("Invalid fabric mode")
}
_, err := netutils.ParseTagRanges(gc.VLANs, "vlan")
Expand Down

0 comments on commit 7e5b4cf

Please sign in to comment.