Commit Graph

14 Commits

Author SHA1 Message Date
Andrey Kurilin 0a60aae852 Rename v1_1 to v2
Module novaclient.v1_1 is used as implementation of V1.1, V2 and V3.
Since future development(microversioning) will be done across V2,
implementation should be done in appropriate module(to prevent misleading).

Despite the fact that implementation for all versions are equal, discover
method for contrib path worked only for v1.1. This patch fixes this bug and
modifies shell tests to check all versions.

Change-Id: Ib6798f4dfe177586302141f522dc593560ce6a5b
2015-02-04 17:40:46 +02:00
Andrey Kurilin 96a124fae6 Remove aliases for `args` and `env` in utils
To remove aliases for `arg` and `env` functions in novaclient.utils,
we should use `arg` and `env` directly from cliutils in novaclients modules.

This patch removes aliases in `novaclient.utils` and starts using
`args` and `env` from novaclient.openstack.common.cliutils directly.

Change-Id: I4585adae62bc66ad6bc9d19be10d4679bb3dc5a1
2014-12-04 17:22:12 +02:00
Eugeniya Kudryashova 75727c2d37 Fix E128 failures in novaclient/v1_1/
E128 continuation line under-indented for visual indent

Change-Id: I93660ef15df87993738c98f8bb1a88cc65f99870
2014-11-18 17:21:30 +02:00
Andrey Kurilin dc09cf27e3 Port to use oslo.i18n
Module gettextutils from oslo-incubator was graduated to separate
library (oslo.i18n) and removed from repository, so we should use
new library.

Change-Id: I15d36ac5a2bb88b332ffa38d29488b75c55a20a9
2014-10-16 01:19:48 +03:00
Andrey Kurilin 8b8aa499e1 Enable check for E123
E123 closing bracket does not match indentation of opening bracket's line

Change-Id: I3f941032efb5ca2ef9a78f865effbf79c8674ebb
2014-09-24 22:44:20 +03:00
Chris Buccella b277dd1c1c Some Help Messages Missing Translation Support
v1_1/contrib/baremetal is missing translation support for some help
messages. Fix this.

Change-Id: Iea354fef1c7f41361b66ed4e143b3f1f5e562d88
2014-05-06 21:37:17 +00:00
Phil Day a4db0feab4 Fix mac address and task_state in baremetal-node-list
Currently nova baremetal-node-list doesn't display the
list of MAC addresses for each node because this is part
of the interfaces object, and not a top level field.

It also doesn't display the task state, which is very useful
when trying to find which nodes have failed to build.

This change fixes both issues

Change-Id: If7a3bcab1220be400519ac811bd727ca8ff85827
Closes-Bug: #1308147
2014-04-15 17:48:26 +00:00
Sergio Cazzolato 6b070c82d4 Fix i18n messages in novaclient, part I
This change make all the text visible by the user i18n. The
messages changes are in prints, logs, exceptions, helps, etc
Pep8 errors about "Multiple positional placeholders" also fixed

Change-Id: I731afea790baddbc34d059b93a35e3d275fc1df8
2014-01-28 14:56:00 -05:00
Dirk Mueller af7ca70e3e Fix and enable gating on H402
End one-line docstrings with punctuation.
Change them to command style where necessary.

Change-Id: I8ff689c3a2f20d489286f80112c6dc95c97f2f31
2013-07-17 15:44:05 +02:00
gtt116 dccdd02e48 Cleanup unused import
Change-Id: Id7d110110f238077630c9b9ee4d643654844dd3e
2013-04-17 13:51:37 +00:00
Arata Notsu 92fef8b291 Remove prov_vlan_id from baremetal
In nova, this parameter is not used
(and will be unacceptable soon)

Change-Id: I072a204bef49940fb2ddc8dc44480b570bc3212c
2013-02-20 08:49:03 +09:00
Chris Jones a926216808 Expand and improve baremetal API.
This adds an additional command to list the interfaces associated with a
baremetal node.

It also fixes some docstrings and renames the existing interface
commands to be more consistent with the node commands.

Change-Id: Ia6ae383d76adb1c9d632bf69ec22438f1412c66f
2013-02-13 09:14:49 +00:00
Arata Notsu 9d239236b9 Show the details of the added bare-metal resource
On subcommand baremetal-node-create or baremetal-add-interface,
the details of the added resource (a node or an interface) are
printed. This is useful in a script (e.g. devstack).

Some refactoring are also included.

Change-Id: I25f019f3dda33de5b49ab2c5442762283be1cf5a
2013-01-31 10:46:34 +09:00
Chris Jones aecd98430a Adds baremetal nova API support
This implements the various REST API calls that BareMetal adds to Nova.
(The nova API is implemented in review 19077)

Change-Id: I187862e9aa5dea41a7edf716aa75cc3d9982fbc8
2013-01-23 16:13:56 +00:00