Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > Bugs > Topic : API IP Pools



Threaded Mode | Print  

 API IP Pools (3 Replies, Read 1570 times)
HOSTFLYTE
Group: NOC
Post Group: Newbie
Posts: 6
Status:
List IP Pools does not return the server id(s) the IP pool is assigned too.

In-fact there seems to be no way to figure out what IP Pools or IP Addresses are assigned to a server (node) unless it is assigned to a VM.
IP: --   

API IP Pools
chirag
Group: Virtualizor Team
Post Group: Elite Member
Posts: 347
Status:
Hi,

Sir you can get the server id from the key value "ipp_serid"

Are you not getting this key in response ?

Let us know.

-----------------------
Virtualizor - VPS Control Panel
Follow us on Facebook
IP: --   

API IP Pools
HOSTFLYTE
Group: NOC
Post Group: Newbie
Posts: 6
Status:
all the ipp_serid fields return a 0.

Code

[1] => Array
                (
                    [ippid] => 1
                    [ipp_serid] => 0
                    [ippool_name] => xxx
                    [gateway] => xxx.xxx.xxx.xxx
                    [netmask] => xxx.xxx.xxx.xxx
                    [ns1] => 8.8.8.8
                    [ns2] => 8.8.4.4
                    [ipv6] => 0
                    [nat] => 0
                    [nat_name] =>
                    [routing] => 0
                    [internal] => 0
                    [bridge] =>
                    [mtu] => 0
                    [vlan] => 0
                    [totalip] => 125
                    [freeip] => 78
                )

            [2] => Array
                (
                    [ippid] => 2
                    [ipp_serid] => 0
                    [ippool_name] => xxx
                    [gateway] => xxx.xxx.xxx.xxx
                    [netmask] => xxx.xxx.xxx.xxx
                    [ns1] => 8.8.8.8
                    [ns2] => 8.8.4.4
                    [ipv6] => 0
                    [nat] => 0
                    [nat_name] =>
                    [routing] => 0
                    [internal] => 0
                    [bridge] =>
                    [mtu] => 0
                    [vlan] => 0
                    [totalip] => 125
                )

            [3] => Array
                (
                    [ippid] => 3
                    [ipp_serid] => 0
                    [ippool_name] => xxx
                    [gateway] => xxx.xxx.xxx.xxx
                    [netmask] => xxx.xxx.xxx.xxx
                    [ns1] => 8.8.8.8
                    [ns2] => 8.8.4.4
                    [ipv6] => 0
                    [nat] => 0
                    [nat_name] =>
                    [routing] => 0
                    [internal] => 0
                    [bridge] =>
                    [mtu] => 0
                    [vlan] => 0
                    [totalip] => 125
                    [freeip] => 2
                )

            [4] => Array
                (
                    [ippid] => 4
                    [ipp_serid] => 0
                    [ippool_name] => xxx
                    [gateway] => xxx.xxx.xxx.xxx
                    [netmask] => xxx.xxx.xxx.xxx
                    [ns1] => 8.8.8.8
                    [ns2] => 8.8.4.4
                    [ipv6] => 0
                    [nat] => 0
                    [nat_name] =>
                    [routing] => 0
                    [internal] => 0
                    [bridge] =>
                    [mtu] => 0
                    [vlan] => 0
                    [totalip] => 125
                    [total_locked_ips] => 1
                    [freeip] => 44
                )
IP: --   

API IP Pools
chirag
Group: Virtualizor Team
Post Group: Elite Member
Posts: 347
Status:
Hi,

Sir I got your point.
And we have modified the code and in coming version we have added ipool_servers array in API output so that you can match the 'ippid' with the keys of 'ippool_servers' array.

Let us know for further information.

-----------------------
Virtualizor - VPS Control Panel
Follow us on Facebook
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is November 11, 2019, 7:24 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.416