def get_installed_pypackages():
    return {p.project_name.lower(): p for p in pkg_resources.working_set}
def encode(self):
        return {"rx_sw_if_index": self._rx_index,
                "tx_sw_if_index": self._tx_index, "nh": self._nh_addr}