def interface_name(self):
        self.update_attrs()
        try:
            itype, primary, alias = '', '', ''
            itype = self.attrs.interface_type
            primary = self.attrs.primary
            alias = self.attrs.alias
        except __HOLE__:
            pass
        if itype == '' or primary == '':
            return "None"
        elif alias == '':
            return "{0}{1}".format(itype, primary)
        else:
            return "{0}{1}.{2}".format(itype, primary, alias)
dataset/ETHPy150Open rtucker-mozilla/mozilla_inventory/core/interface/static_intr/models.py/StaticInterface.interface_name