borisstoyanov opened a new issue, #10460:
URL: https://github.com/apache/cloudstack/issues/10460

   ### problem
   
   When there's no IP ranges defined for shared network, API requires to 
specify VLAN when adding a range, of course if offering is with 
specifyVlan=true: 
   ```
   (localcloud) 🐱 > create vlaniprange endip=10.10.1.100 startip=10.10.1.10 
gateway=10.10.1.1 netmask=255.255.255.0 
networkid=a3974030-6015-44de-bd7f-fd266015b8e7 forvirtualnetwork=false
   🙈 Error: (HTTP 431, error code 4350) The IP range already has IPs that 
overlap with the new range. Please specify a different start IP/end IP.
   (localcloud) 🐱 > create vlaniprange endip=10.10.1.100 startip=10.10.1.10 
gateway=10.10.1.1 netmask=255.255.255.0 
networkid=a3974030-6015-44de-bd7f-fd266015b8e7 vlan=101 forvirtualnetwork=false
   {
     "vlan": {
       "account": "system",
       "cidr": "10.10.1.0/24",
       "domain": "ROOT",
       "domainid": "9d5d9bb6-ed25-11ef-9840-1e005d000106",
       "domainpath": "/",
       "endip": "10.10.1.100",
       "fornsx": false,
       "forsystemvms": false,
       "forvirtualnetwork": false,
       "gateway": "10.10.1.1",
       "id": "65b4cc9c-28b3-42c9-ac17-28d517c82dda",
       "netmask": "255.255.255.0",
       "networkid": "a3974030-6015-44de-bd7f-fd266015b8e7",
       "physicalnetworkid": "04d77c2b-a2ee-494d-bc62-556ebd93953e",
       "startip": "10.10.1.10",
       "vlan": "vlan://101",
       "zoneid": "bd32fa49-d9a3-497c-83f9-d14bedc954ae"
     }
   }
   ```
   While you can add this in CMK, there is no such option in UI: 
   
    
   
![Image](https://github.com/user-attachments/assets/b46ea732-245d-49ce-bd62-a214f11a5a60)
   
   
   ### versions
   
   4.21
   
   ### The steps to reproduce the bug
   
   1. Create a shared network with the default offering
   2. Remove the IP range
   3. Add new IP range in UI 
   
   Observe that it's not possible and VLAN is required
   
   
   ### What to do about it?
   
   Please add the parameter in the UI as well, as optional, since there are 
offerings that can exclude this. 


-- 
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