def METHOD_NAME(self):
    txt = self.py3.command_output(["ip", "address", "show"]).splitlines()
    data = {}
    for line in txt:
        iface = self.iface_re.match(line)
        if iface:
            cur_iface = iface.group("iface")
            if not self.remove_empty:
                data[cur_iface] = {}
            continue
        ip4 = self.ip_re.match(line)
        if ip4:
            data.setdefault(cur_iface, {}).setdefault("ip4", []).append(ip4.group("ip4"))
            continue
        ip6 = self.ip6_re.match(line)
        if ip6:
            data.setdefault(cur_iface, {}).setdefault("ip6", []).append(ip6.group("ip6"))
            continue
    return data