~ionutbalutoiu/charms/trusty/neutron-gateway/next

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/openstack/neutron.py

  • Committer: Liam Young
  • Date: 2015-09-30 06:56:48 UTC
  • mfrom: (147.1.2 neutron-gateway.next)
  • Revision ID: liam.young@canonical.com-20150930065648-mw1g151z2htouekj
[hopem,r=gnuoy] Sync charmhelpers to get fix for LP 1500386

Show diffs side-by-side

added added

removed removed

Lines of Context:
310
310
def parse_data_port_mappings(mappings, default_bridge='br-data'):
311
311
    """Parse data port mappings.
312
312
 
313
 
    Mappings must be a space-delimited list of port:bridge mappings.
 
313
    Mappings must be a space-delimited list of bridge:port.
314
314
 
315
 
    Returns dict of the form {port:bridge} where port may be an mac address or
316
 
    interface name.
 
315
    Returns dict of the form {port:bridge} where ports may be mac addresses or
 
316
    interface names.
317
317
    """
318
318
 
319
319
    # NOTE(dosaboy): we use rvalue for key to allow multiple values to be