Move network stuff to v2 instead of v2_0
Rename network stuff v2 Change-Id: Ia9b8feda20dfd35b0f3712b8e2419d0bf5da0acd
This commit is contained in:
parent
b3736fd9df
commit
b157dc937e
@ -18,11 +18,11 @@ from openstackclient.common import utils
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
DEFAULT_NETWORK_API_VERSION = '2.0'
|
||||
DEFAULT_NETWORK_API_VERSION = '2'
|
||||
API_VERSION_OPTION = 'os_network_api_version'
|
||||
API_NAME = "network"
|
||||
API_VERSIONS = {
|
||||
"2.0": "neutronclient.v2_0.client.Client",
|
||||
"2": "neutronclient.v2_0.client.Client",
|
||||
}
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@ import copy
|
||||
import mock
|
||||
|
||||
from openstackclient.common import exceptions
|
||||
from openstackclient.network.v2_0 import network
|
||||
from openstackclient.network.v2 import network
|
||||
from openstackclient.tests.network import common
|
||||
|
||||
RESOURCE = 'network'
|
@ -39,13 +39,13 @@ DEFAULT_COMPUTE_API_VERSION = "2"
|
||||
DEFAULT_IDENTITY_API_VERSION = "2.0"
|
||||
DEFAULT_IMAGE_API_VERSION = "v2"
|
||||
DEFAULT_VOLUME_API_VERSION = "1"
|
||||
DEFAULT_NETWORK_API_VERSION = "2.0"
|
||||
DEFAULT_NETWORK_API_VERSION = "2"
|
||||
|
||||
LIB_COMPUTE_API_VERSION = "2"
|
||||
LIB_IDENTITY_API_VERSION = "2.0"
|
||||
LIB_IMAGE_API_VERSION = "1"
|
||||
LIB_VOLUME_API_VERSION = "1"
|
||||
LIB_NETWORK_API_VERSION = "2.0"
|
||||
LIB_NETWORK_API_VERSION = "2"
|
||||
|
||||
|
||||
def make_shell():
|
||||
|
12
setup.cfg
12
setup.cfg
@ -258,12 +258,12 @@ openstack.image.v2 =
|
||||
image_save = openstackclient.image.v2.image:SaveImage
|
||||
image_show = openstackclient.image.v2.image:ShowImage
|
||||
|
||||
openstack.network.v2_0 =
|
||||
network_create = openstackclient.network.v2_0.network:CreateNetwork
|
||||
network_delete = openstackclient.network.v2_0.network:DeleteNetwork
|
||||
network_list = openstackclient.network.v2_0.network:ListNetwork
|
||||
network_set = openstackclient.network.v2_0.network:SetNetwork
|
||||
network_show = openstackclient.network.v2_0.network:ShowNetwork
|
||||
openstack.network.v2 =
|
||||
network_create = openstackclient.network.v2.network:CreateNetwork
|
||||
network_delete = openstackclient.network.v2.network:DeleteNetwork
|
||||
network_list = openstackclient.network.v2.network:ListNetwork
|
||||
network_set = openstackclient.network.v2.network:SetNetwork
|
||||
network_show = openstackclient.network.v2.network:ShowNetwork
|
||||
|
||||
openstack.object_store.v1 =
|
||||
container_list = openstackclient.object.v1.container:ListContainer
|
||||
|
Loading…
Reference in New Issue
Block a user