andrijapanicsb opened a new pull request, #13128: URL: https://github.com/apache/cloudstack/pull/13128
### Description This change adds an explicit import option to preserve duplicate NIC MAC addresses during VM import workflows. The existing `forced` option continues to mean importing despite a MAC conflict by generating a new MAC address. A new `allowduplicatemacaddresses` API parameter allows the opposite behavior: preserve the imported MAC address even if it already exists on the target network. The two options are mutually exclusive. This is useful for migration cutover workflows where a VMware-sourced VM is imported to KVM while the original VM still exists in CloudStack, but the operator wants the imported instance to keep the same MAC address for guest/network continuity. The UI import form now labels `forced` as "Generate new MAC if required" and exposes a separate "Allow duplicate MAC addresses" switch when the API parameter is available. ### Types of changes - [x] New feature - [x] UI change - [x] API change ### Testing - `mvn -pl api -am -DskipTests install` - `mvn -pl server -am -DskipTests compile` - `npm run lint -- --no-fix src/views/tools/ImportUnmanagedInstance.vue` - Parsed `ui/public/locales/en.json` - `git diff --check` -- 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]
