wgrest icon indicating copy to clipboard operation
wgrest copied to clipboard

Create new Device This api returns a 501 error (501 Not Implemented )

Open alistaitsacle opened this issue 3 years ago • 9 comments
trafficstars

Create new Device This api returns a 501 error (501 Not Implemented),other api tests are correct

alistaitsacle avatar Feb 05 '22 04:02 alistaitsacle

The test reports the same error, I don't see useful log information.

linny006 avatar Feb 05 '22 09:02 linny006

@alistaitsacle @linny006 Hey Guys,

Unfortunately, at this time the only unimplemented thing in wgrest is to create a device API endpoint. There is one reason why is that the IP addresses management part (attach/detach) to the interface should be implemented in a cross-platform way. Meanwhile, I am happy to see PR if you have an idea how to do so.

suquant avatar Feb 05 '22 09:02 suquant

@suquant implement it on Linux, and when you figure it out, write cross-platform code

BitHeaven-Official avatar Mar 16 '22 11:03 BitHeaven-Official

or you can try to write different code for each system like in C++ (don't know how golang works)

BitHeaven-Official avatar Mar 16 '22 11:03 BitHeaven-Official

@BitHeaven-Official Yes, it's one of the ways. I think it will fix the issue at least for Linux through the NetLink module.

suquant avatar Mar 16 '22 16:03 suquant

how soon will you implement this feature under linux?

BitHeaven-Official avatar Mar 21 '22 13:03 BitHeaven-Official

that very important feature

BitHeaven-Official avatar Apr 13 '22 15:04 BitHeaven-Official

@alistaitsacle @linny006 Hey Guys,

Unfortunately, at this time the only unimplemented thing in wgrest is to create a device API endpoint. There is one reason why is that the IP addresses management part (attach/detach) to the interface should be implemented in a cross-platform way. Meanwhile, I am happy to see PR if you have an idea how to do so.

Is it possible that you could find an answer in this repo? https://github.com/freifunkMUC/wg-embed/tree/master/pkg/wgembed

kolesaev avatar Dec 20 '23 15:12 kolesaev

Any solutions for that?

OnlyReFLeX avatar May 05 '24 21:05 OnlyReFLeX