~openstack-charmers/charms/trusty/cisco-vpp/next

« back to all changes in this revision

Viewing changes to hooks/ODL.py

  • Committer: Liam Young
  • Date: 2015-08-17 06:56:01 UTC
  • Revision ID: liam.young@canonical.com-20150817065601-u0kxtngvtujh53t9
Set hugepage dir and socket mem dynamically in qn.conf

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
                    for dev in net.get('device', []):
125
125
                        if device_name == dev['device-name'] \
126
126
                                and dev['device-type'] == 'vhostuser':
127
 
                            for interface in dev['interface']:
 
127
                            for interface in dev.get('interface', []):
128
128
                                if interface_name == interface['interface-name'] and \
129
129
                                   mac == interface['macAddress']:
130
130
                                    return True