key-networks / ztncui

ZeroTier network controller UI
GNU General Public License v3.0
1.56k stars 230 forks source link

Unable to write ipAssignments #2

Closed hijak closed 6 years ago

hijak commented 6 years ago

Hi

When trying to assign an IP to a node i am blocked by

Editing of ipAssignments has not been implemented

I can do this no problem with zerotiers API the documentation says this field should be writable too

https://github.com/zerotier/ZeroTierOne/tree/master/controller

ps. great product

Thanks

key-networks commented 6 years ago

I will check it out. Are you using IPv4 or IPv6 on the virtual network?

hijak commented 6 years ago

thanks, Im using IPv4

key-networks commented 6 years ago

Jack,

Could you try the "dev" branch and let me know if it's heading in the right direction? There are no guard rails at this stage, so it will let you assign any valid IPv4 or IPv6 address.

Thanks Steve

key-networks commented 6 years ago

P.S. What I mean by no guard rails is that it currently does not check if the IP assignment falls within a managed route. Ideally, this check needs to be added.

key-networks commented 6 years ago

Were you using one of the Linux packages (RPM or DEB), or the Docker image or were you working from source code?

hijak commented 6 years ago

Hi

Thanks for looking into this. I was trying to source somewhere to test as im using the rpm install On Mon, 29 Jan 2018 at 07:12, key-networks notifications@github.com wrote:

Were you using one of the Linux packages (RPM or DEB), or the Docker image or were you working from source code?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/key-networks/ztncui/issues/2#issuecomment-361158178, or mute the thread https://github.com/notifications/unsubscribe-auth/AFMOUM72-7oXS-hq6EO-hbJiSH1t0Yg8ks5tPW97gaJpZM4RpmhJ .

key-networks commented 6 years ago

Ok, I haven't re-built the RPM yet. You can only test the dev branch from source. I'm currently looking at putting guard rails in to prevent assigning IPs that don't have a managed route. Once I've got that right, I'll rebuild the packages and you can test.

Will keep you updated here.

key-networks commented 6 years ago

Jack,

Could you please test as follows: sudo yum --enablerepo=ztncui-testing install ztncui -y

You should end up with ztncui-0.4.0-1.x86_64.

Please give me your feedback. Thanks Steve

key-networks commented 6 years ago

@hijak - have you managed to try it out? Do you need any assistance?

hijak commented 6 years ago

Hi Sorry

I am going to give this ago on the weekend

key-networks commented 6 years ago

Try the latest release with:

sudo yum install ztncui -y

You should end up with ztncui-0.4.1-1.x86_64.

key-networks commented 6 years ago

@hijak did you manage to try out 0.4.1?

hijak commented 6 years ago

hey

yes i have just tried the new release and it does exactly what i need it to do. I will have to test the api function but at the moment it seems perfect

thanks