Browse Source

fix misspelling 'configuration' of functions

Change-Id: I2038d9796c8f63e4fa6577d7bd9360cf97aa05c9
changes/54/591954/1
inspurericzhang 3 years ago
parent
commit
fb3baeac73
  1. 4
      devstack/tools/nsxv_edge_resources.py
  2. 6
      vmware_nsx/plugins/nsx_v/vshield/vcns.py
  3. 2
      vmware_nsx/tests/unit/nsx_v/vshield/fake_vcns.py

4
devstack/tools/nsxv_edge_resources.py

@ -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):

6
vmware_nsx/plugins/nsx_v/vshield/vcns.py

@ -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)

2
vmware_nsx/tests/unit/nsx_v/vshield/fake_vcns.py

@ -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…
Cancel
Save