← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1587800] Re: There is a judgment repeat in neutronclient and lbaas

 

This is not a bug as requests can be sent via API as well as CLI, so
validation on the server side is also required.

** Tags added: lbaas

** Changed in: neutron
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1587800

Title:
  There is a judgment repeat in neutronclient and lbaas

Status in neutron:
  Invalid

Bug description:
  In lbaasv2,when I create a listener with no loadbalancer and no default_pool_id.there will be an error.But this judgment repeat in neutronclient and plugin。
  codes in neutronclietn:
  if not parsed_args.loadbalancer and not parsed_args.default_pool:
              message = _('Either --default-pool or --loadbalancer must be '
                          'specified.')
              raise exceptions.CommandError(message)
  codes in plugin:
  elif not lb_id:
              raise sharedpools.ListenerMustHaveLoadbalancer()

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1587800/+subscriptions


References