-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Updating Fabric Service Profile resource mapping functions #582
fix: Updating Fabric Service Profile resource mapping functions #582
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes requested. Let me know if you have questions.
…-Resource-Update' into CXF-86927-Fabric-Service-Profile-Resource-Update
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #582 +/- ##
==========================================
+ Coverage 42.08% 43.81% +1.72%
==========================================
Files 98 98
Lines 18401 18397 -4
==========================================
+ Hits 7744 8060 +316
+ Misses 10453 10102 -351
- Partials 204 235 +31 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got a lot of changes requested. They need to be fulfilled exactly otherwise I will ask for them again. Let me know if you have any questions or if you need a call to go over it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending live code review.
@@ -1044,44 +1039,44 @@ func accessPointTypeConfigToTerra(spAccessPointTypes []v4.ServiceProfileAccessPo | |||
return mappedSpAccessPointTypes | |||
} | |||
|
|||
func apiConfigToFabric(apiConfigl []interface{}) v4.ApiConfig { | |||
if apiConfigl == nil { | |||
func apiConfigToFabric(apiConfigs []interface{}) v4.ApiConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking this method for live code review.
} | ||
return ports | ||
return schemaPortRes | ||
} | ||
|
||
func virtualDevicesToFabric(schemaVirtualDevices []interface{}) []v4.ServiceProfileAccessPointVd { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking method for live code review.
@@ -1208,14 +1203,14 @@ func metrosToFabric(schemaMetros []interface{}) []v4.ServiceMetro { | |||
return []v4.ServiceMetro{} | |||
} | |||
var metros []v4.ServiceMetro |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking method for live code review.
} | ||
|
||
func authenticationKeyToFabric(authenticationKeyl []interface{}) v4.AuthenticationKey { | ||
if authenticationKeyl == nil { | ||
func authenticationKeyToFabric(authenticationKeys []interface{}) v4.AuthenticationKey { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking method for live code review.
psTitle := processStep.(map[string]interface{})["title"].(interface{}).(string) | ||
psSubTitle := processStep.(map[string]interface{})["sub_title"].(interface{}).(string) | ||
psDescription := processStep.(map[string]interface{})["description"].(interface{}).(string) | ||
processSteps = append(processSteps, v4.ProcessStep{ | ||
processStepRes[index] = v4.ProcessStep{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking variable naming for live code review.
…-Resource-Update' into CXF-86927-Fabric-Service-Profile-Resource-Update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're good here. Shipping it.
fixed mapping functions in resource_fabric_service_profile.go and fabric_common_mapping_helpers.go