Comment 8 for bug 1987315

Revision history for this message
Narinder Gupta (narindergupta) wrote (last edit ):

I think acceptable code should be below instead of commenting out
Line 366
    mtu = None

Line 387
        else:
            try:
                if not (net_info['provider:network_type'] is None):
                    network_type = net_info['provider:network_type']
                if not (net_info['provider:segmentation_id'] is None):
                    segmentation_id = net_info['provider:segmentation_id']
                if not (net_info['provider:mtu'] is None):
                    mtu = net_info['mtu']
            except KeyError:
                LOG.error("Invalid net_info")

        provider_nw_dict = {
            'network_type': network_type,
            'segmentation_id': segmentation_id,
            'mtu': mtu,
        }