Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df68d75f66 | ||
|
|
2026ffdc6c | ||
|
|
60800b13cf | ||
|
|
c989bad9e8 |
@@ -341,8 +341,11 @@ class NeutronCommand(command.OpenStackCommand):
|
||||
|
||||
def __init__(self, app, app_args):
|
||||
super(NeutronCommand, self).__init__(app, app_args)
|
||||
if hasattr(self, 'formatters'):
|
||||
self.formatters['table'] = TableFormater()
|
||||
# NOTE(markmcclain): This is no longer supported in cliff version 1.5.2
|
||||
# see https://bugs.launchpad.net/python-neutronclient/+bug/1265926
|
||||
|
||||
#if hasattr(self, 'formatters'):
|
||||
#self.formatters['table'] = TableFormater()
|
||||
|
||||
def get_client(self):
|
||||
return self.app.client_manager.neutron
|
||||
|
||||
@@ -466,7 +466,7 @@ class CLITestV20NetworkJSON(test_cli20.CLITestV20Base):
|
||||
def _test_extend_list(self, mox_calls):
|
||||
data = [{'id': 'netid%d' % i, 'name': 'net%d' % i,
|
||||
'subnets': ['mysubid%d' % i]}
|
||||
for i in range(0, 10)]
|
||||
for i in range(10)]
|
||||
self.mox.StubOutWithMock(self.client.httpclient, "request")
|
||||
path = getattr(self.client, 'subnets_path')
|
||||
cmd = network.ListNetwork(test_cli20.MyApp(sys.stdout), None)
|
||||
|
||||
@@ -60,7 +60,6 @@ class CLITestV20PortJSON(test_cli20.CLITestV20Base):
|
||||
args += ['--extra-dhcp-opt',
|
||||
('opt_name=%(opt_name)s,opt_value=%(opt_value)s' %
|
||||
dhcp_opt)]
|
||||
print args
|
||||
position_names = ['network_id', 'extra_dhcp_opts']
|
||||
position_values = [netid, extra_dhcp_opts]
|
||||
position_values.extend([netid])
|
||||
|
||||
Reference in New Issue
Block a user