def full_dehydrate(self, bundle):
        """
            Overrideing full dehydrate here. We want to display the iinterface
            attributes, but fails due to m2m validation.
        """
        super(SystemResource, self).full_dehydrate(bundle)
        for intr in bundle.obj.staticinterface_set.all():
            intr.update_attrs()
            if hasattr(intr, 'attrs'):
                if hasattr(intr.attrs, 'primary'):
                    bundle.data['interface:%s%s.%s:ip_address' % (intr.attrs.interface_type, intr.attrs.primary, intr.attrs.alias)] = intr.ip_str
                    bundle.data[(intr.attrs.interface_type, intr.attrs.primary, intr.attrs.alias) % 'interface:%s%s.%s:fqdn'] = intr.fqdn
                    bundle.data['interface:%s%s.%s:mac_address' % (intr.attrs.interface_type, intr.attrs.primary, intr.attrs.alias)] = intr.mac
                    bundle.data['interface:%s%s.%s:dns_enabled' % (intr.attrs.interface_type, intr.attrs.primary, intr.attrs.alias)] = intr.dns_enabled
                    bundle.data['interface:%s%s.%s:dhcp_enabled' % (intr.attrs.interface_type, intr.attrs.primary, intr.attrs.alias)] = intr.dhcp_enabled
                    bundle.data['interface:%s%s.%s:label' % (intr.attrs.interface_type, intr.attrs.primary, intr.attrs.alias)] = intr.label
        #bundle.data['interface'] = "%s%s.%s" %\
        #(bundle.obj.attrs.interface_type,
        #    bundle.obj.attrs.primary, bundle.obj.attrs.alias)
        #del bundle.data['ip_lower']
        #del bundle.data['ip_upper']
        #del bundle.data['resource_uri']
        return bundle
dataset/ETHPy150Open rtucker-mozilla/mozilla_inventory/api_v3/system_api.py/SystemResource.full_dehydrate/swapped operands of `%`