Skip to content

UI: Shared network, when no IP ranges are defined user needs to specify a VLAN, but there's no such option in the UI #10460

Open
@borisstoyanov

Description

@borisstoyanov

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

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions