Commit Graph

17 Commits (master)

Author SHA1 Message Date
Zhenguo Niu 511be25834 Show respect to original authors
We copied some codes/frameworks from Nova, but frogot to add
the original file informations, this tries to add them back.

Change-Id: I310d94fc334b6e72dc5eafa316f1b4842066ccbe
2017-09-20 11:16:19 +08:00
Xinran 817748c6b0 support specifying port_id when attaching interface
Change-Id: I5d3f18a32c357096f5a6090abed1d8d480a93c6f
2017-08-30 15:01:06 +08:00
Zhenguo Niu 7bf7a776fd Return addresses with server API object
Replace server.nics with server.addresses to only return basic
addresses info with server API object, and we also provide an
API to get networks infomation.

Change-Id: If684252f8112e3879f096403d5b9daed2bd5951a
2017-08-26 10:17:12 +08:00
ZhongLuyao f9affb75f2 Update ironic.driver.plug_vif implementation
port.update is replaced by node.vif_attach

Co-Authored-By: Xinran <xin-ran.wang@intel.com>

Closes-Bug: #1694942
Change-Id: Ie0f9043a93da2b3b8dfbc660f7575c3235f751b9
2017-07-03 03:51:47 +00:00
wanghao 99abbe590a Specify neutron port when creating servers
Now Mogan can support network_ids in request of creation servers.

This feature introduces the support for specifying the port_ids
in request body too.

Change-Id: I7f25a97da6e45f06f9ef2def68eeaf294659a932
Implements: bp specify-neutron-port-when-creating-instances
2017-06-20 09:21:19 +08:00
wanghao 6ebf88b6ba Remove unused parameters in network/api
There is some unused parameters in network/api, just remove them.

Change-Id: Ief48a531950c99350d7539c4c64d8c156e29a54d
2017-06-15 09:54:42 +08:00
liusheng 7d0f8ab360 Rename instance to server and instance type to flavor
Change-Id: I35a7fb0b4f3fa9e09f2fc2c739c0a9b39a8576ab
2017-04-28 14:23:22 +08:00
Zhenguo Niu a85289aa0f Ignore 404 exception when deleting port
If port is not found when trying to delete it, we should not
reraise the exception, just leave a warning log.

Change-Id: I6dec499fc7de4fbea9600d60eeedba698596075d
2017-04-12 13:33:22 +08:00
wanghao 32d9bf7a11 Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Co-Authored-By: lcsong <lcsong@fiberhome.com>

Change-Id: Ic95b5c1c451ce6aced0f44165d2191be1eab3e40
Closes-Bug: 1674560
2017-03-24 14:21:47 +08:00
Zhenguo Niu 9bdfa26f2f Following up patch of multi instance creating
Change-Id: I47026b52d13652dcd6bad29d56b8766e7b7b6c2b
2017-02-16 20:21:29 +08:00
Jenkins 715194d18b Merge "Support multi-instance creating (part 1)" 2017-02-15 15:47:41 +00:00
Zhenguo Niu 974540e456 Update associate fip API
1. Change to return 204 (No Content), as the POST method doesn't
result in a resource that can be identified by a URL
2. Add API docs for associate fip API.

Change-Id: I8b384dcd10c9c5f5f06ee55c3fa0a846ba7d3526
2017-02-15 13:15:07 +08:00
Tao Li 62a0f6d86a Support multi-instance creating (part 1)
Support to create multi-instance in one request of mogan.
This commit finish the main flows and leave some network check
for another commit.

Implements: bp support-multiple-creation

Change-Id: I24fcc94c8acfb8b351579a5a96eb129c7a59efbe
2017-02-15 09:32:01 +08:00
Zhenguo Niu 84fbc7413f Add disassociate floating ip support
Change-Id: I0c00d555ea4d7b4df67fa13be8a9679bbb406374
2017-02-14 15:34:03 +08:00
Zhenguo Niu 267ce83318 Set device_id to neutron port
Bind instance uuid to port device_id, then we can search ports
by instances.

Change-Id: I3f19091f82ec6e7f2cc58fdd534219c9ca649965
2017-02-08 19:53:01 +08:00
Zhenguo Niu 6440dcc4d0 Add support for floating IPs association
We should add floating ips realted methods, so users can associate
or dissociate fips to their instances.

Change-Id: I284caf6ab0b8297024983db79f5b6ecaea8f4f40
Implements: bp associate-dissociate-fip
2017-01-25 17:47:04 +08:00
sxmatch 4fd1aab5b3 Rename nimble to mogan(part three)
This part includes codes folder renaming.

Co-Authored-By: Zhenguo Niu <Niu.ZGlinux@gmail.com>

Change-Id: I919f17a769baee44ce19f65bab900f9d6bd8b982
2017-01-04 22:53:39 +08:00