fix misspelling 'configuration' of functions
Change-Id: I2038d9796c8f63e4fa6577d7bd9360cf97aa05c9
This commit is contained in:
parent
7630ecb8f2
commit
fb3baeac73
@ -67,13 +67,13 @@ class NSXClient(object):
|
||||
verify=False, data=data)
|
||||
return response
|
||||
|
||||
def _get_tuning_configration(self):
|
||||
def _get_tuning_configuration(self):
|
||||
response = self._get("json",
|
||||
"/api/4.0/edgePublish/tuningConfiguration")
|
||||
return jsonutils.loads(response.text)
|
||||
|
||||
def configure_reservations(self):
|
||||
config = self._get_tuning_configration()
|
||||
config = self._get_tuning_configuration()
|
||||
# NSX only receive XML format for the resource allocation update
|
||||
tuning = et.Element('tuningConfiguration')
|
||||
for opt, val in six.iteritems(config):
|
||||
|
@ -995,7 +995,7 @@ class Vcns(object):
|
||||
self._nsx_version = '6.1'
|
||||
return self._nsx_version
|
||||
|
||||
def get_tuning_configration(self):
|
||||
def get_tuning_configuration(self):
|
||||
uri = '/api/4.0/edgePublish/tuningConfiguration'
|
||||
h, c = self.do_request(HTTP_GET, uri, decode=True)
|
||||
return c
|
||||
@ -1003,7 +1003,7 @@ class Vcns(object):
|
||||
def configure_aggregate_publishing(self):
|
||||
uri = "/api/4.0/edgePublish/tuningConfiguration"
|
||||
# Ensure that configured values are not changed
|
||||
config = self.get_tuning_configration()
|
||||
config = self.get_tuning_configuration()
|
||||
LOG.debug("Tuning configuration: %s", config)
|
||||
tuning = et.Element('tuningConfiguration')
|
||||
for opt, val in six.iteritems(config):
|
||||
@ -1018,7 +1018,7 @@ class Vcns(object):
|
||||
|
||||
def configure_reservations(self):
|
||||
uri = "/api/4.0/edgePublish/tuningConfiguration"
|
||||
config = self.get_tuning_configration()
|
||||
config = self.get_tuning_configuration()
|
||||
tuning = et.Element('tuningConfiguration')
|
||||
for opt, val in six.iteritems(config):
|
||||
child = et.Element(opt)
|
||||
|
@ -1217,7 +1217,7 @@ class FakeVcns(object):
|
||||
def get_version(self):
|
||||
return '6.2.3'
|
||||
|
||||
def get_tuning_configration(self):
|
||||
def get_tuning_configuration(self):
|
||||
return {
|
||||
'lockUpdatesOnEdge': True,
|
||||
'edgeVMHealthCheckIntervalInMin': 0,
|
||||
|
Loading…
Reference in New Issue
Block a user