yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #59751
[Bug 1526587] Re: Neutron doesn't have a command to show the available IP addresses for one subnet
I did an analysis on the change. The changes will have to be made on
neutron-server and neutronclient(CLI). Here are the list of changes that
will be done
Neutronclient side-
1. A new command to be added.
2. A new resource to be created
3. The resource will take subnet-id and return available IP's in the allocation range.
Neutron-server side-
1. A new api will be created.
2. The api will accept subnet-id and return list of available IP's in the allocation range.
** Also affects: python-neutronclient
Importance: Undecided
Status: New
** Changed in: python-neutronclient
Assignee: (unassigned) => Prateek khushalani (prateek-khushalani)
** Changed in: python-neutronclient
Status: New => In Progress
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1526587
Title:
Neutron doesn't have a command to show the available IP addresses for
one subnet
Status in neutron:
In Progress
Status in python-neutronclient:
In Progress
Bug description:
Neutron doesn't have a command to show the allocated ip addresses for
one subnet.
We can get the allocated ip list with command:
[root@cts-orch ~]# neutron port-list | grep `neutron subnet-show 110-OAM2 | awk '/ id / {print $4}'` | cut -d"|" -f5 | cut -d":" -f3 | sort
"135.111.122.97"}
"135.111.122.98"}
But we don't have a command to show the available ips for one subnet.
I write a shell script to show the available ports as below, but it
will be helpful if we can provide such a neutron command.
[root@cts-orch ~]# ./show_available_ip.sh 110-OAM2
135.111.122.99
135.111.122.100
135.111.122.101
135.111.122.102
135.111.122.103
135.111.122.104
135.111.122.105
135.111.122.106
135.111.122.107
135.111.122.108
135.111.122.109
135.111.122.110
135.111.122.111
135.111.122.112
135.111.122.113
135.111.122.114
135.111.122.115
135.111.122.116
135.111.122.117
135.111.122.118
135.111.122.119
135.111.122.120
135.111.122.121
135.111.122.122
135.111.122.123
135.111.122.124
Total Count: 26
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1526587/+subscriptions
References