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

A switch can't override switch group values using default switch group values #5998

Closed
nqb opened this issue Nov 24, 2020 · 0 comments
Closed

Comments

@nqb
Copy link
Contributor

nqb commented Nov 24, 2020

Describe the bug
When a switch is member of a switch group, it's not possible to override switch group values using values defined in default switch group.

To Reproduce
Steps to reproduce the behavior:

  1. Create a switch group with two settings different than default switch group:
[group swgroup]
description=swgroup desc
always_trigger=1
type=Hostapd
registrationVlan=50
  1. Create a switch member of this group:
[10.10.10.1]
description=sw
group=swgroup
  1. Override registrationVlan setting on switch with value of 5

=> switches.conf is updated with registrationVlan=5

  1. Set registrationVlan setting to 2 (default value in default switch group)

=> switches.conf is updated but registrationVlan setting is not present in [10.10.10.1] section

  1. Refresh your web page

=> change is gone

Expected behavior
registrationVlan=2 should be present in [10.10.10.1] section because it's a setting different from the switch group.

Additional context
Has been noticed on 10.1.0

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

No branches or pull requests

2 participants