[Trivial Fix] Correct spelling error of "bandwidth"
Small modification to correct spelling mistake. Change-Id: Ic66736418de460c6e71b764322276019296aefe7
This commit is contained in:
parent
75e4f1e0f3
commit
54900fd866
@ -2611,7 +2611,7 @@ port_speed!N/A
|
||||
|
||||
if 'linkbandwidthmbits' not in kwargs:
|
||||
return self._errors['CMMVC5707E']
|
||||
bandwith = kwargs['linkbandwidthmbits'].strip('\'\"')
|
||||
bandwidth = kwargs['linkbandwidthmbits'].strip('\'\"')
|
||||
|
||||
if 'backgroundcopyrate' not in kwargs:
|
||||
return self._errors['CMMVC5707E']
|
||||
@ -2632,7 +2632,7 @@ port_speed!N/A
|
||||
partner_info['cluster_ip'] = clusterip
|
||||
partner_info['event_log_sequence'] = ''
|
||||
partner_info['chap_secret'] = ''
|
||||
partner_info['linkbandwidthmbits'] = bandwith
|
||||
partner_info['linkbandwidthmbits'] = bandwidth
|
||||
partner_info['backgroundcopyrate'] = copyrate
|
||||
partner_info['partnership'] = 'fully_configured'
|
||||
|
||||
@ -2646,7 +2646,7 @@ port_speed!N/A
|
||||
|
||||
if 'linkbandwidthmbits' not in kwargs:
|
||||
return self._errors['CMMVC5707E']
|
||||
bandwith = kwargs['linkbandwidthmbits'].strip('\'\"')
|
||||
bandwidth = kwargs['linkbandwidthmbits'].strip('\'\"')
|
||||
|
||||
if 'backgroundcopyrate' not in kwargs:
|
||||
return self._errors['CMMVC5707E']
|
||||
@ -2660,7 +2660,7 @@ port_speed!N/A
|
||||
partner_info['cluster_ip'] = ''
|
||||
partner_info['event_log_sequence'] = ''
|
||||
partner_info['chap_secret'] = ''
|
||||
partner_info['linkbandwidthmbits'] = bandwith
|
||||
partner_info['linkbandwidthmbits'] = bandwidth
|
||||
partner_info['backgroundcopyrate'] = copyrate
|
||||
partner_info['partnership'] = 'fully_configured'
|
||||
self._partnership_list[partner_info['id']] = partner_info
|
||||
|
@ -2109,7 +2109,7 @@ port_speed!N/A
|
||||
|
||||
if 'linkbandwidthmbits' not in kwargs:
|
||||
return self._errors['CMMVC5707E']
|
||||
bandwith = kwargs['linkbandwidthmbits'].strip('\'\"')
|
||||
bandwidth = kwargs['linkbandwidthmbits'].strip('\'\"')
|
||||
|
||||
if 'backgroundcopyrate' not in kwargs:
|
||||
return self._errors['CMMVC5707E']
|
||||
@ -2130,7 +2130,7 @@ port_speed!N/A
|
||||
partner_info['cluster_ip'] = clusterip
|
||||
partner_info['event_log_sequence'] = ''
|
||||
partner_info['chap_secret'] = ''
|
||||
partner_info['linkbandwidthmbits'] = bandwith
|
||||
partner_info['linkbandwidthmbits'] = bandwidth
|
||||
partner_info['backgroundcopyrate'] = copyrate
|
||||
partner_info['partnership'] = 'fully_configured'
|
||||
|
||||
@ -2144,7 +2144,7 @@ port_speed!N/A
|
||||
|
||||
if 'linkbandwidthmbits' not in kwargs:
|
||||
return self._errors['CMMVC5707E']
|
||||
bandwith = kwargs['linkbandwidthmbits'].strip('\'\"')
|
||||
bandwidth = kwargs['linkbandwidthmbits'].strip('\'\"')
|
||||
|
||||
if 'backgroundcopyrate' not in kwargs:
|
||||
return self._errors['CMMVC5707E']
|
||||
@ -2158,7 +2158,7 @@ port_speed!N/A
|
||||
partner_info['cluster_ip'] = ''
|
||||
partner_info['event_log_sequence'] = ''
|
||||
partner_info['chap_secret'] = ''
|
||||
partner_info['linkbandwidthmbits'] = bandwith
|
||||
partner_info['linkbandwidthmbits'] = bandwidth
|
||||
partner_info['backgroundcopyrate'] = copyrate
|
||||
partner_info['partnership'] = 'fully_configured'
|
||||
self._partnership_list[partner_info['id']] = partner_info
|
||||
|
@ -436,17 +436,17 @@ class StorwizeSSH(object):
|
||||
ssh_cmd = ['svcinfo', 'lspartnershipcandidate', '-delim', '!']
|
||||
return self.run_ssh_info(ssh_cmd, with_header=True)
|
||||
|
||||
def mkippartnership(self, ip_v4, bandwith=1000, backgroundcopyrate=50):
|
||||
def mkippartnership(self, ip_v4, bandwidth=1000, backgroundcopyrate=50):
|
||||
ssh_cmd = ['svctask', 'mkippartnership', '-type', 'ipv4',
|
||||
'-clusterip', ip_v4, '-linkbandwidthmbits',
|
||||
six.text_type(bandwith),
|
||||
six.text_type(bandwidth),
|
||||
'-backgroundcopyrate', six.text_type(backgroundcopyrate)]
|
||||
return self.run_ssh_assert_no_output(ssh_cmd)
|
||||
|
||||
def mkfcpartnership(self, system_name, bandwith=1000,
|
||||
def mkfcpartnership(self, system_name, bandwidth=1000,
|
||||
backgroundcopyrate=50):
|
||||
ssh_cmd = ['svctask', 'mkfcpartnership', '-linkbandwidthmbits',
|
||||
six.text_type(bandwith),
|
||||
six.text_type(bandwidth),
|
||||
'-backgroundcopyrate', six.text_type(backgroundcopyrate),
|
||||
system_name]
|
||||
return self.run_ssh_assert_no_output(ssh_cmd)
|
||||
@ -2252,11 +2252,11 @@ class StorwizeHelpers(object):
|
||||
return candidate
|
||||
return None
|
||||
|
||||
def mkippartnership(self, ip_v4, bandwith=1000, copyrate=50):
|
||||
self.ssh.mkippartnership(ip_v4, bandwith, copyrate)
|
||||
def mkippartnership(self, ip_v4, bandwidth=1000, copyrate=50):
|
||||
self.ssh.mkippartnership(ip_v4, bandwidth, copyrate)
|
||||
|
||||
def mkfcpartnership(self, system_name, bandwith=1000, copyrate=50):
|
||||
self.ssh.mkfcpartnership(system_name, bandwith, copyrate)
|
||||
def mkfcpartnership(self, system_name, bandwidth=1000, copyrate=50):
|
||||
self.ssh.mkfcpartnership(system_name, bandwidth, copyrate)
|
||||
|
||||
def chpartnership(self, partnership_id):
|
||||
self.ssh.chpartnership(partnership_id)
|
||||
|
@ -2954,11 +2954,11 @@ class InStorageAssistant(object):
|
||||
return candidate
|
||||
return None
|
||||
|
||||
def mkippartnership(self, ip_v4, bandwith=1000, copyrate=50):
|
||||
self.ssh.mkippartnership(ip_v4, bandwith, copyrate)
|
||||
def mkippartnership(self, ip_v4, bandwidth=1000, copyrate=50):
|
||||
self.ssh.mkippartnership(ip_v4, bandwidth, copyrate)
|
||||
|
||||
def mkfcpartnership(self, system_name, bandwith=1000, copyrate=50):
|
||||
self.ssh.mkfcpartnership(system_name, bandwith, copyrate)
|
||||
def mkfcpartnership(self, system_name, bandwidth=1000, copyrate=50):
|
||||
self.ssh.mkfcpartnership(system_name, bandwidth, copyrate)
|
||||
|
||||
def chpartnership(self, partnership_id):
|
||||
self.ssh.chpartnership(partnership_id)
|
||||
@ -3352,17 +3352,17 @@ class InStorageSSH(object):
|
||||
ssh_cmd.append(relationship)
|
||||
self.run_ssh_assert_no_output(ssh_cmd)
|
||||
|
||||
def mkippartnership(self, ip_v4, bandwith=1000, backgroundcopyrate=50):
|
||||
def mkippartnership(self, ip_v4, bandwidth=1000, backgroundcopyrate=50):
|
||||
ssh_cmd = ['mcsop', 'mkippartnership', '-type', 'ipv4',
|
||||
'-clusterip', ip_v4, '-linkbandwidthmbits',
|
||||
six.text_type(bandwith),
|
||||
six.text_type(bandwidth),
|
||||
'-backgroundcopyrate', six.text_type(backgroundcopyrate)]
|
||||
return self.run_ssh_assert_no_output(ssh_cmd)
|
||||
|
||||
def mkfcpartnership(self, system_name, bandwith=1000,
|
||||
def mkfcpartnership(self, system_name, bandwidth=1000,
|
||||
backgroundcopyrate=50):
|
||||
ssh_cmd = ['mcsop', 'mkfcpartnership', '-linkbandwidthmbits',
|
||||
six.text_type(bandwith),
|
||||
six.text_type(bandwidth),
|
||||
'-backgroundcopyrate', six.text_type(backgroundcopyrate),
|
||||
system_name]
|
||||
return self.run_ssh_assert_no_output(ssh_cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user