<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hey Sean,<div class="">Please remind, that transition is in progress. You can verify how far we are here [1].</div><div class="">But, according to OSC documentation [2] and release notes [3], you should be able to create subnet. It was released with OSC 2.4 version.</div><div class=""><br class=""></div><div class="">Could you verify, if you have correct version?</div><div class=""><br class=""></div><div class="">Darek</div><div class=""><br class=""></div><div class="">[1] <a href="https://etherpad.openstack.org/p/osc-neutron-support" class="">https://etherpad.openstack.org/p/osc-neutron-support</a></div><div class="">[2] <a href="https://github.com/openstack/python-openstackclient/blob/master/doc/source/command-objects/subnet.rst#subnet-create" class="">https://github.com/openstack/python-openstackclient/blob/master/doc/source/command-objects/subnet.rst#subnet-create</a></div><div class="">[3] <a href="http://docs.openstack.org/releasenotes/python-openstackclient/unreleased.html#id77" class="">http://docs.openstack.org/releasenotes/python-openstackclient/unreleased.html#id77</a></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 17, 2016, at 10:10 AM, <a href="mailto:Sean.Boran@swisscom.com" class="">Sean.Boran@swisscom.com</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">A bit of help with scripting CLIs for managing network objects would be appreciated…<br class=""><br class="">Networks can be created:<br class="">openstack network create --project my-project1 my_net1<br class=""><br class=""> -- but how does one create a subnet? Neutron can do it:<br class="">neutron subnet-create --tenant-id my-project1 --name my_subnet1 my_net1 10.7.98.0/24<br class=""><br class="">Likewise, one can create a router:<br class="">openstack router create --project my-project1 my-router1<br class=""><br class="">-- but how to add a subnet (“openstack router add subnet” does not exist), nor attach admin_floating_net.<br class=""><br class=""><br class="">If it is essential to use the neutron CLI, operations can be done with the default “admin” user, <br class="">-- but not with a user from ldap. (Domains are also in use).<br class=""><br class="">neutron subnet-list<br class="">The request you have made requires authentication. (HTTP 401) (Request-ID: req-6e9131e7-bb27-462a-bd38-ddf8ca90bfe0)<br class="">(I expect it to prompt for a password)<br class="">(Note: “openstack router create” works fine with the ldap user, i.e. is has rights on the project).<br class=""><br class="">Aside from the environment for the normal admin user, I also set<br class="">export OS_USERNAME=myldapuser<br class="">export OS_PROJECT_NAME=my-project1'<br class="">export OS_DOMAIN_NAME=<a href="http://my.net" class="">my.net</a>'<br class="">export OS_IDENTITY_API_VERSION=3<br class="">export OS_USER_NAME=$OS_USERNAME<br class="">export OS_USER_DOMAIN_NAME=$OS_DOMAIN_NAME<br class="">export OS_PROJECT_DOMAIN_NAME=$OS_PROJECT_NAME<br class=""><br class="">Also tried:<br class="">export OS_IDENTITY_API_VERSION=2<br class=""><br class="">Is the problem that neutron only works with v2, but v2 doesn’t not support domains?<br class=""><br class="">Thanks in advance,<br class="">Sean<br class=""><br class=""><br class=""><br class="">_______________________________________________<br class="">Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br class="">Post to : <a href="mailto:openstack@lists.openstack.org" class="">openstack@lists.openstack.org</a><br class="">Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br class=""></div></div></blockquote></div><br class=""></div></body></html>