<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
it seems I wasn't first who asked for this - <a
href="https://wiki.openstack.org/wiki/Neutron/enable-to-set-dhcp-port-attributes">https://wiki.openstack.org/wiki/Neutron/enable-to-set-dhcp-port-attributes</a>
and it seems there was no progress on this?<br>
<br>
Is it possible to at least include DHCP address in output of 'subnet
show' API call?<br>
<br>
The shortest way I've found is:<br>
* openstack port list --project ... --device-owner network:dhcp<br>
and then for **every port** in resulting list<br>
* openstack port show<br>
in order to extract 'Fixed IP Addresses' attribute for analysis<br>
<br>
Too much calls, isn't it?<br>
<br>
<div class="moz-cite-prefix">On 5/25/19 9:22 PM, Volodymyr Litovka
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5f65989d-1616-a5f5-1c90-a5f6e6e364fe@gmx.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Dear colleagues,<br>
<br>
is there way to explicitly assign DHCP address when creating
subnet? The issue is that it isn't always first address from
allocation pool, e.g.<br>
<pre>$ openstack port list
+--------------------------------------+-------+-------------------+------------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+-------+-------------------+------------------------------------------------------------------------------+--------+
| 0897bcc4-6cad-479c-8743-ca7cc5a57271 | | 72:d0:1c:d1:6b:51 | ip_address='172.16.53.3', subnet_id='20329549-124c-484d-8278-edca9829e262' | ACTIVE |
| | | | ip_address='172.16.54.2', subnet_id='07249cd3-11a9-4da7-a4db-bd838aa8c4e7' | |
</pre>
both subnet have similar configuration of allocation pool
(172.16.xx.2-254/24) and there are two different addresses for
DHCP in every subnet.<br>
<br>
This makes a trouble during project generation with pre-assigned
addresses for servers if the pre-assigned address is same as
[surprisigly, non-first] address of DHCP namespace.<br>
<br>
And, may be, there is a way to determine this address in more
simple way than looking into 'openstack port list' output,
searching for port (a) without name and (b) with multiple
addresses from all belonging subnets :) At the moment, 'openstack
subnet show' say nothing about assigned DHCP-address.<br>
<br>
Thank you!<br>
<br>
<pre class="moz-signature" cols="72">--
Volodymyr Litovka
"Vision without Execution is Hallucination." -- Thomas Edison</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Volodymyr Litovka
"Vision without Execution is Hallucination." -- Thomas Edison</pre>
</body>
</html>