Copilot commented on code in PR #13032:
URL: https://github.com/apache/cloudstack/pull/13032#discussion_r3550157997


##########
ui/src/views/offering/AddNetworkOffering.vue:
##########
@@ -739,6 +739,13 @@ export default {
     isSupportedServiceObject (obj) {
       return (obj !== null && obj !== undefined && Object.keys(obj).length > 0 
&& obj.constructor === Object && 'provider' in obj)
     },
+    isVpcCoreProvider (providerName) {
+      return ['VpcVirtualRouter', 'Netscaler', 'BigSwitchBcf', 
'ConfigDrive'].includes(providerName)
+    },
+    isDynamicExtensionProvider (providerName) {
+      const knownProviders = ['VirtualRouter', 'VpcVirtualRouter', 
'InternalLbVm', 'Netscaler', 'BigSwitchBcf', 'ConfigDrive', 'Nsx', 'Netris']
+      return !knownProviders.includes(providerName)
+    },

Review Comment:
   `isDynamicExtensionProvider` currently identifies extension-backed providers 
by excluding a small set of names. CloudStack’s built-in provider set is much 
larger (e.g. `JuniperContrailVpcRouter`, `NiciraNvp`, `Ovs`, `Tungsten`, etc.; 
see `api/src/main/java/com/cloud/network/Network.java:179-211`), so those 
providers will be misclassified as “dynamic extension providers” and get 
enabled in the VPC path (`updateSupportedServices`).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to