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 a new device of type 8021q (vlan) #73

Open
apolovov opened this issue Sep 11, 2024 · 1 comment
Open

can't create a new device of type 8021q (vlan) #73

apolovov opened this issue Sep 11, 2024 · 1 comment

Comments

@apolovov
Copy link

Trying to add a vlan device:

  - name: configure vlan 100
    uci:
      command: section
      config: network
      type: device
      find_by:
        name: wan.100
      values:
        name: wan.100
        type: 8021q
        ifname: wan
        vid: '100'

But on the owrt i see unconfigured network with only a name:

config device
	option name 'wan.100'

OpenWRT version: 23.05.4
ansible version: 2.17.3

@apolovov
Copy link
Author

apolovov commented Sep 12, 2024

Found a workaround:

  - name: create device wan_100
    uci:
      command: add
      config: network
      type: device
      section: wan_100
  - name: configure wan_100 device
    uci:
      command: set
      config: network
      type: device
      section: wan_100
      value:
        name: wan.100
        type: 8021q
        ifname: wan
        vid: '100'

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

No branches or pull requests

1 participant