suquant / wgrest

WireGuard REST API
Apache License 2.0
201 stars 39 forks source link

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

Open alistaitsacle opened 2 years ago

alistaitsacle commented 2 years ago

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

linny006 commented 2 years ago

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

suquant commented 2 years ago

@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.

BitHeaven-Official commented 2 years ago

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

BitHeaven-Official commented 2 years ago

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

suquant commented 2 years ago

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

BitHeaven-Official commented 2 years ago

how soon will you implement this feature under linux?

BitHeaven-Official commented 2 years ago

that very important feature

kolesaev commented 10 months ago

@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

OnlyReFLeX commented 6 months ago

Any solutions for that?