~thedac/charms/trusty/glance/status-every-hook

« back to all changes in this revision

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

  • Committer: Corey Bryant
  • Date: 2015-09-30 15:06:46 UTC
  • mfrom: (141.2.4 fix-pause-resume-tests)
  • Revision ID: corey.bryant@canonical.com-20150930150646-gej3oi9reno6rwor
[ack,r=corey.bryant] Fix amulet tests for pause/resume actions and sync charm-helpers

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