You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/12/27 08:26:49 UTC
[07/11] libcloud git commit: add to node_state_map
add to node_state_map
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a094ac7b
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a094ac7b
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a094ac7b
Branch: refs/heads/trunk
Commit: a094ac7bf213f77ae991cd731444da7b9f79439e
Parents: 6a4ab59
Author: Samuel Chong <sa...@gmail.com>
Authored: Fri Dec 16 17:07:41 2016 +1100
Committer: Anthony Shaw <an...@apache.org>
Committed: Tue Dec 27 19:22:04 2016 +1100
----------------------------------------------------------------------
libcloud/compute/drivers/dimensiondata.py | 14 ++++++++++++--
libcloud/compute/types.py | 1 +
2 files changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/a094ac7b/libcloud/compute/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py
index 499f569..be471f0 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -62,10 +62,20 @@ from libcloud.compute.types import NodeState, Provider
# These tuples represent:
# (<state_of_node_from_didata>, <is node started?>, <action happening>)
NODE_STATE_MAP = {
- ('NORMAL', 'true', None):
- NodeState.RUNNING,
('NORMAL', 'false', None):
NodeState.STOPPED,
+ ('PENDING_CHANGE', 'false', None):
+ NodeState.PENDING,
+ ('PENDING_CHANGE', 'false', 'CHANGE_NETWORK_ADAPTER'):
+ NodeState.PENDING,
+ ('PENDING_CHANGE', 'true', 'CHANGE_NETWORK_ADAPTER'):
+ NodeState.PENDING,
+ ('PENDING_CHANGE', 'false', 'EXCHANGE_NIC_VLANS'):
+ NodeState.PENDING,
+ ('PENDING_CHANGE', 'true', 'EXCHANGE_NIC_VLANS'):
+ NodeState.PENDING,
+ ('NORMAL', 'true', None):
+ NodeState.RUNNING,
('PENDING_CHANGE', 'true', 'START_SERVER'):
NodeState.STARTING,
('PENDING_ADD', 'true', 'DEPLOY_SERVER'):
http://git-wip-us.apache.org/repos/asf/libcloud/blob/a094ac7b/libcloud/compute/types.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/types.py b/libcloud/compute/types.py
index 658907e..646725d 100644
--- a/libcloud/compute/types.py
+++ b/libcloud/compute/types.py
@@ -280,6 +280,7 @@ class NodeState(Type):
PAUSED = 'paused'
RECONFIGURING = 'reconfiguring'
MIGRATING = 'migrating'
+ NORMAL = 'normal'
class StorageVolumeState(Type):