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

DSA/swconfig info in gluon-info #2908

Open
AiyionPrime opened this issue May 25, 2023 · 3 comments
Open

DSA/swconfig info in gluon-info #2908

AiyionPrime opened this issue May 25, 2023 · 3 comments
Labels
0. type: enhancement The changeset is an enhancement

Comments

@AiyionPrime
Copy link
Member

AiyionPrime commented May 25, 2023

I'd like gluon to have some sort of tracking how a devices ports are currently managed.
And therefore what capabilities are expected to work.

Any idea what to assess beyond whether swconfig is on the device?

@AiyionPrime AiyionPrime added the 0. type: enhancement The changeset is an enhancement label May 25, 2023
@AiyionPrime
Copy link
Member Author

Maybe we can use a common endpoint for this and #2907.

@mkg20001
Copy link
Member

mkg20001 commented Jun 10, 2023

platform.lua already provides a bunch of is_* functions which could be used

I added a is_swconfig() function in my PR

a767421 (#2907)

Edit: Now it's in ethernet module (as switch type detection is a bit more complicated). There is a PR #2915 which the VLAN ui depends on

@mkg20001
Copy link
Member

mkg20001 commented Aug 8, 2023

gluon-info now contains a switch type entry, same for webinterface

root@ssg3-hap-ac2:~# gluon-info 
Hostname:               	ssg3-hap-ac2
MAC address:            	18:fd:74:77:27:65
Hardware model:         	MikroTik hAP ac2
Gluon version / Site version:	v2021.1-1101-gbfd13b0 / 015b00d
Firmware release:       	0.3+exp20230725
Site:                   	Funkfeuer Graz
Domain:                 	n/a
Public VPN key:         	n/a
Switch type:            	dsa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. type: enhancement The changeset is an enhancement
Projects
None yet
Development

No branches or pull requests

2 participants