Hanarion commented on issue #12116: URL: https://github.com/apache/cloudstack/issues/12116#issuecomment-3570339750
@DaanHoogland , i mean the Network Offering that is selected by default when creating a network <img width="987" height="1707" alt="Image" src="https://github.com/user-attachments/assets/cd982111-907a-440f-9557-5e243c243cfe" /> <img width="901" height="218" alt="Image" src="https://github.com/user-attachments/assets/c5aea8ec-835b-4ea7-a9d9-54364c60ae47" /> ```json (cloud) 🐱 > list networkofferings filter=name,availability name=DefaultNetworkOfferingforKubernetesService { "count": 1, "networkoffering": [ { "availability": "Optional", "name": "DefaultNetworkOfferingforKubernetesService" } ] } (cloud) 🐱 > list networkofferings filter=name,availability name=DefaultIsolatedNetworkOfferingWithSourceNatServiceV2 { "count": 1, "networkoffering": [ { "availability": "Required", "name": "DefaultIsolatedNetworkOfferingWithSourceNatServiceV2" } ] } ``` I don't have a dev environement setup for cloudstack yet, but i can try to work on a fix yes, but it should go like that : ```ts if (this.arrayHasItems(this.networkOfferings)) { this.form.networkofferingid = 0; const requiredOffering = this.networkOfferings.find(offering => offering.availability === 'Required'); if (requiredOffering) { this.handleNetworkOfferingChange(requiredOffering); } else { // Fallback to the first one if no 'Required' offering exists this.handleNetworkOfferingChange(this.networkOfferings[0]); } } ``` -- 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]
