17 Commits

Author SHA1 Message Date
Hironori Shiina
1a5a04102e Add Ironic CLI commands for volume target
This patch adds the following commands for volume target.
 - ironic volume-target-list
 - ironic volume-target-show
 - ironic volume-target-create
 - ironic volume-target-update
 - ironic volume-target-delete

Co-Authored-By: Satoru Moriya <satoru.moriya.br@hitachi.com>
Co-Authored-By: Stephane Miller <stephane@alum.mit.edu>

Change-Id: I156e634fbfb9b782fdcbc51cb8c167a38ffe2bfa
Partial-Bug: 1526231
2017-07-14 13:58:48 +09:00
Hironori Shiina
911b8cc0bb Add Ironic CLI commands for volume connector
This patch adds the following commands for volume connector.
 - ironic volume-connector-list
 - ironic volume-connector-show
 - ironic volume-connector-create
 - ironic volume-connector-update
 - ironic volume-connector-delete

Co-Authored-By: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
Co-Authored-By: Satoru Moriya <satoru.moriya.br@hitachi.com>
Co-Authored-By: Stephane Miller <stephane@alum.mit.edu>

Change-Id: I9ebbb4bc82afa001d2cf53c834e8efd320b7ba16
Partial-Bug: 1526231
2017-07-12 11:41:31 +09:00
William Stevenson
13fe7cc5bc Add python API and CLI for port groups
This patch adds commands that allows to work with ironic portgroups.
The following ironic CLI commands are introduced:

 * ironic portgroup-list
 * ironic portgroup-show
 * ironic portgroup-port-list
 * ironic portgroup-create
 * ironic portgroup-delete
 * ironic portgroup-update

Also extends ironic port-create with --portgroup.
Portgroup support was added in Ironic API version 1.24.

Change-Id: Id8afa902026ce4466e96cc7bfb7fb97447d65809
Co-Authored-By: Vasyl Saienko (vsaienko@mirantis.com)
Co-Authored-By: William Stevenson (will.stevenson@sap.com)
Partial-bug: #1618754
2016-12-15 10:29:23 +02:00
Kyrylo Romanenko
11eae85a31 Fix import of ironicclient and reformat docstring
Fix import of ironicclient to ironicclient/shell.py.
Reformat docstring in ironicclient/v1/shell.py.

Change-Id: Iad717d139ef423bb9f93050c6ba0c20fe1912a82
2016-10-10 13:15:36 +00:00
Vladyslav Drok
91c4539bf3 Add create command to ironic client
This patch adds "ironic create" and "openstack create" commands
understanding JSON and YAML files, documentation for it will be
added in a subsequent patch.

Partial-bug: #1588339
Co-Authored-By: Lucas Alvares Gomes <lucasagomes@gmail.com>
Change-Id: I9b6a6d41fabd240ace65e7ac8b965af81c1b3272
2016-08-08 19:41:36 +03:00
John L. Villalovos
2df670cf30 Remove unneeded 'utf-8' coding lines
This is basically a revert of commit:
  af741ec2236619880fa902d68aef4a6ae6cef534

It was decided that only files that need to have the line:
  # -*- coding: utf-8 -*-
Should have the line[1] as a general principle

This patch removes the 'utf-8' coding line from files that consist
entirely of ASCII characters.

[1]
http://eavesdrop.openstack.org/meetings/ironic/2015/ironic.2015-04-20-17.00.html

Partial-bug: #1325193
Change-Id: I88c1c37f7b580aa805eae9d4a1e66d33302a325f
2015-04-21 16:44:47 +00:00
Ghe Rivero
47236e2cf1 Bump hacking version
Current hacking version is incompatible with the one in the
global requirements. Match the hacking module version and made the
necessary changes to pass the tests.

Change-Id: Ie6b13a4ea112084d4c50dc27f97329dfad5777a1
2014-10-02 11:12:53 +00:00
Martin Geisler
af741ec223 Add UTF-8 coding lines to all Python files
While not strictly necessary for files containing only ASCII
characters, adding a line with "coding: utf-8" can guard against
future SyntaxError's in case someone inserts a Unicode literal.

This commit adds such lines to all .py files. The syntax used by this
commit works with Python (of course). It also works with Emacs, which
will recognize the special "-*-" marker and use the "coding" variable
to correctly decode the file, even in an environment where UTF-8 is
not the default file encoding.

Existing coding lines were normalized to match the new lines added.

Partial-bug: #1325193
Change-Id: I58bf93fea711fd25890356a397e594bd820c99e3
2014-05-31 13:22:44 +02:00
Lucas Alvares Gomes
29f806698f Add driver-list
The driver-list command returns a list of drivers supported by the
ironic conductors.

Change-Id: I24adbde087396fb5c01226ef7a2b602ff8732227
2013-11-12 09:03:00 +00:00
Lucas Alvares Gomes
3b901b0134 Split v1/shell.py into different files
Splitting v1/shell.py into one file per resource makes the code more
organized and in the long run helps to improve code readability.

Change-Id: Ia57019548158ffe33a1eca444405107caa327936
2013-09-26 11:24:26 +01:00
Devananda van der Veen
c5deb28ea1 Implement Node commands
Implement show, list, create, and delete for Nodes,
and add unit tests.

Change-Id: I77f95e9ad4d27d21682d202a5a410ab7f974a78d
2013-09-25 19:16:20 -07:00
Lucas Alvares Gomes
c6b9ccf5ac Add port-create and port-delete
Change-Id: I0c91b2142e5b73d0acf7c6741dfe10ba13919306
2013-09-25 19:16:15 -07:00
Lucas Alvares Gomes
2547342ab1 Add chassis-create and chassis-delete
Change-Id: I404c513fc39a18967d96f67fc1a7cc68329adb75
2013-09-25 17:55:40 -07:00
Lucas Alvares Gomes
92903077b2 Add port-show and port-list
Change-Id: I36fa0f5d4322603a90fd8ebe8ef833b60a6f73e5
2013-09-25 12:41:07 +01:00
Lucas Alvares Gomes
080ad7a56f Implement chassis-list + more tests
Added chassis-list command for v1 + more tests.

Change-Id: If86e8600d22d00b6100c17922e9b8bac08029d19
2013-09-25 12:39:04 +01:00
Lucas Alvares Gomes
fa1253eb92 Implement chassis-show
Added chassis-show command for v1.

Partially implements: bp simple-crud

Change-Id: If04b5a76bd385da3c01682ef6137d710b2143641
2013-09-19 11:48:35 -07:00
Lucas Alvares Gomes
ba073c0707 Basic project structure
Mostly taken from other OpenStack client projects and adapted for Ironic.

Change-Id: I1ef9613b9e24bbb6caac9657dc1da3add899478e
2013-09-19 00:21:14 +01:00