← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1481231] [NEW] ML2 plugin does not support query with marker 'network_type, physical_network, segmentation_id'

 

Public bug reported:

Now the Ml2 plugin does not support query with marker 'network_type,
physical_network, segmentation_id', but sometimes user need query
networks with these attributes.

** Affects: neutron
     Importance: Undecided
     Assignee: shihanzhang (shihanzhang)
         Status: New

** Description changed:

  Now the Ml2 plugin does not support query with marker 'network_type,
  physical_network, segmentation_id', but sometimes user need query
  networks with these attributes.
  
-     def get_networks(self, context, filters=None, fields=None,
-                      sorts=None, limit=None, marker=None, page_reverse=False):
-         session = context.session
-         with session.begin(subtransactions=True):
-             nets = super(Ml2Plugin,
-                          self).get_networks(context, filters, None, sorts,
-                                             limit, marker, page_reverse)
-             for net in nets:
-                 self.type_manager.extend_network_dict_provider(context, net)
+ def get_networks(self, context, filters=None, fields=None,
+                  sorts=None, limit=None, marker=None, page_reverse=False):
+     session = context.session
+     with session.begin(subtransactions=True):
+         nets = super(Ml2Plugin,
+                      self).get_networks(context, filters, None, sorts,
+                                         limit, marker, page_reverse)
+         for net in nets:
+             self.type_manager.extend_network_dict_provider(context, net)
  
-             nets = self._filter_nets_provider(context, nets, filters)
+         nets = self._filter_nets_provider(context, nets, filters)
  
-         return [self._fields(net, fields) for net in nets]
+     return [self._fields(net, fields) for net in nets]

** Description changed:

  Now the Ml2 plugin does not support query with marker 'network_type,
  physical_network, segmentation_id', but sometimes user need query
  networks with these attributes.
- 
- def get_networks(self, context, filters=None, fields=None,
-                  sorts=None, limit=None, marker=None, page_reverse=False):
-     session = context.session
-     with session.begin(subtransactions=True):
-         nets = super(Ml2Plugin,
-                      self).get_networks(context, filters, None, sorts,
-                                         limit, marker, page_reverse)
-         for net in nets:
-             self.type_manager.extend_network_dict_provider(context, net)
- 
-         nets = self._filter_nets_provider(context, nets, filters)
- 
-     return [self._fields(net, fields) for net in nets]

** Changed in: neutron
     Assignee: (unassigned) => shihanzhang (shihanzhang)

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

Title:
  ML2 plugin does not support query with marker 'network_type,
  physical_network, segmentation_id'

Status in neutron:
  New

Bug description:
  Now the Ml2 plugin does not support query with marker 'network_type,
  physical_network, segmentation_id', but sometimes user need query
  networks with these attributes.

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


Follow ups