Move network stuff to v2 instead of v2_0

Rename network stuff v2

Change-Id: Ia9b8feda20dfd35b0f3712b8e2419d0bf5da0acd
This commit is contained in:
Terry Howe 2014-07-07 05:51:25 -06:00
parent b3736fd9df
commit b157dc937e
7 changed files with 11 additions and 11 deletions

View File

@ -18,11 +18,11 @@ from openstackclient.common import utils
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)
DEFAULT_NETWORK_API_VERSION = '2.0' DEFAULT_NETWORK_API_VERSION = '2'
API_VERSION_OPTION = 'os_network_api_version' API_VERSION_OPTION = 'os_network_api_version'
API_NAME = "network" API_NAME = "network"
API_VERSIONS = { API_VERSIONS = {
"2.0": "neutronclient.v2_0.client.Client", "2": "neutronclient.v2_0.client.Client",
} }

View File

@ -15,7 +15,7 @@ import copy
import mock import mock
from openstackclient.common import exceptions from openstackclient.common import exceptions
from openstackclient.network.v2_0 import network from openstackclient.network.v2 import network
from openstackclient.tests.network import common from openstackclient.tests.network import common
RESOURCE = 'network' RESOURCE = 'network'

View File

@ -39,13 +39,13 @@ DEFAULT_COMPUTE_API_VERSION = "2"
DEFAULT_IDENTITY_API_VERSION = "2.0" DEFAULT_IDENTITY_API_VERSION = "2.0"
DEFAULT_IMAGE_API_VERSION = "v2" DEFAULT_IMAGE_API_VERSION = "v2"
DEFAULT_VOLUME_API_VERSION = "1" DEFAULT_VOLUME_API_VERSION = "1"
DEFAULT_NETWORK_API_VERSION = "2.0" DEFAULT_NETWORK_API_VERSION = "2"
LIB_COMPUTE_API_VERSION = "2" LIB_COMPUTE_API_VERSION = "2"
LIB_IDENTITY_API_VERSION = "2.0" LIB_IDENTITY_API_VERSION = "2.0"
LIB_IMAGE_API_VERSION = "1" LIB_IMAGE_API_VERSION = "1"
LIB_VOLUME_API_VERSION = "1" LIB_VOLUME_API_VERSION = "1"
LIB_NETWORK_API_VERSION = "2.0" LIB_NETWORK_API_VERSION = "2"
def make_shell(): def make_shell():

View File

@ -258,12 +258,12 @@ openstack.image.v2 =
image_save = openstackclient.image.v2.image:SaveImage image_save = openstackclient.image.v2.image:SaveImage
image_show = openstackclient.image.v2.image:ShowImage image_show = openstackclient.image.v2.image:ShowImage
openstack.network.v2_0 = openstack.network.v2 =
network_create = openstackclient.network.v2_0.network:CreateNetwork network_create = openstackclient.network.v2.network:CreateNetwork
network_delete = openstackclient.network.v2_0.network:DeleteNetwork network_delete = openstackclient.network.v2.network:DeleteNetwork
network_list = openstackclient.network.v2_0.network:ListNetwork network_list = openstackclient.network.v2.network:ListNetwork
network_set = openstackclient.network.v2_0.network:SetNetwork network_set = openstackclient.network.v2.network:SetNetwork
network_show = openstackclient.network.v2_0.network:ShowNetwork network_show = openstackclient.network.v2.network:ShowNetwork
openstack.object_store.v1 = openstack.object_store.v1 =
container_list = openstackclient.object.v1.container:ListContainer container_list = openstackclient.object.v1.container:ListContainer