Skip to content

Commit

Permalink
Fix mac prof acc test with wrong NSX version
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn Wang <[email protected]>
  • Loading branch information
wsquan171 committed May 21, 2024
1 parent a467e74 commit fe820f1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions nsxt/resource_nsxt_policy_mac_discovery_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ var macDiscoveryProfileSchema = map[string]*metadata.ExtendedSchema{
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice(macDiscoveryProfileMacLimitPolicyValues, false),
Optional: true,
Default: "ALLOW",
Default: model.MacDiscoveryProfile_MAC_LIMIT_POLICY_ALLOW,
},
Metadata: metadata.Metadata{
SchemaType: "string",
SdkFieldName: "MacLimitPolicy",
TestData: metadata.Testdata{
CreateValue: "ALLOW",
UpdateValue: "DROP",
CreateValue: model.MacDiscoveryProfile_MAC_LIMIT_POLICY_ALLOW,
UpdateValue: model.MacDiscoveryProfile_MAC_LIMIT_POLICY_DROP,
},
},
},
Expand All @@ -114,9 +114,8 @@ var macDiscoveryProfileSchema = map[string]*metadata.ExtendedSchema{
Optional: true,
},
Metadata: metadata.Metadata{
SchemaType: "bool",
SdkFieldName: "UnknownUnicastFloodingEnabled",
IntroducedInVersion: "4.0.0",
SchemaType: "bool",
SdkFieldName: "UnknownUnicastFloodingEnabled",
TestData: metadata.Testdata{
CreateValue: "true",
UpdateValue: "false",
Expand Down

0 comments on commit fe820f1

Please sign in to comment.