Currently, when handling port description, for each interface created it publishes an kytos/of_core.switch.interface.created event, which works great, however it's not bulk-friendly to minimize writes, since this function already takes a list, I think it makes sense to provide an aggregated event publishing all interfaces something like kytos/of_core.switch.interfaces.created below: and the subscribers who need to bulk update listen for this one instead:
kytos/of_core.switch.interfaces.created
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Event reporting that interfaces were created.
It's meant to facilitate bulk updates or inserts.
Content:
.. code-block:: python
{
'interfaces': [<interface>] # Instance of Interface class
}
Currently, when handling port description, for each interface created it publishes an
kytos/of_core.switch.interface.created
event, which works great, however it's not bulk-friendly to minimize writes, since this function already takes a list, I think it makes sense to provide an aggregated event publishing all interfaces something likekytos/of_core.switch.interfaces.created
below: and the subscribers who need to bulk update listen for this one instead: