Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create untaged network (without VLAN) #405

Closed
evmnaumov opened this issue Feb 10, 2023 · 1 comment · Fixed by #407
Closed

Can't create untaged network (without VLAN) #405

evmnaumov opened this issue Feb 10, 2023 · 1 comment · Fixed by #407
Assignees
Milestone

Comments

@evmnaumov
Copy link

evmnaumov commented Feb 10, 2023

Terraform Provider Version

Latest (1.1.1)

Affected Resource(s)

resource_opennebula_virtual_network

Actual Behavior

Creating network with flag automatic_vlan_id = false or vlan_id = "" (one of them) returns error:

You must specify a 'vlan_id' or set the flag 'automatic_vlan_id'

In web UI I can select parameter "No VLAN network", which creates network with empty VLAN_ID.

My tf file:

resource "opennebula_virtual_network" "public" {
  name            = "public"
  permissions     = "660"
  bridge          = "ovs-br0"
  type            = "ovswitch"
  mtu             = 1500
  network_address = "10.1.0.0"
  network_mask    = "255.255.255.0"
  gateway         = "10.1.0.30"
  dns             = "8.8.8.8"
  security_groups = [0]
  clusters        = [0]
  automatic_vlan_id = false

OR

vlan_id = "" instead of automatic_vlan_id = false

@treywelsh
Copy link
Collaborator

It's an error returned by the provider that may be wrong in this case.

From the doc:

VLAND_ID and AUTOMATIC_VLAN_ID are not mandatory for an Open vSwitch network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants