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

Error "firmware is not supported" en assignar un firmware a un trasto a través de l'API #36

Open
rogerpueyo opened this issue May 11, 2017 · 1 comment
Labels

Comments

@rogerpueyo
Copy link
Contributor

Bon dia,

Estic provant de donar d'alta un device amb l'API de Guifi a un node ja creat.

Resulta que si faig:

http://test.guifi.net/api?command=guifi.device.add&model_id=70&firmware=RouterOSv6.x&nick=testsol2_SXT5&mac=ff%3Abb%3Add%3Aaa%3A00%3A00&node_id=95822&type=radio

Em retorna un error de que el valor de firmware passat no està suportat (firmware is not supported), tot i que la comanda guifi.misc.firmware&model_id=70 em diu que aquest firmware està disponible.

He pro

Curiosament, si poso un altre model amb un altre firmware.

http://test.guifi.net/api?command=guifi.device.add&model_id=15&firmware=DD-guifi&nick=testsol1_SXT5&mac=ff%3Abb%3Add%3Aaa%3A00%3A00&node_id=95822&type=radio

Funciona correctament.

Què estic fent malament?

Moltes gràcies,
Joan

@rogerpueyo
Copy link
Contributor Author

Bones,
Joan, Es un problema de codi amb una funció de validació que comprova les dades on no toca. Si en roger no ho ha arreglat despres ho miro.

Dani, com que no pots triar RoutersV6.x? que en fa d'anys :P

Miquel Martos

@rogerpueyo rogerpueyo added the bug label May 11, 2017
rogerpueyo added a commit to rogerpueyo/drupal-guifi that referenced this issue May 11, 2017
miquelmartos added a commit that referenced this issue May 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant