diff --git a/pyroute2/ipvs.py b/pyroute2/ipvs.py index 488737ca2..f4570650e 100644 --- a/pyroute2/ipvs.py +++ b/pyroute2/ipvs.py @@ -128,5 +128,6 @@ def dest(self, command, service, dest=None, **kwarg): msg["version"] = 0x1 msg["attrs"] = [("IPVS_CMD_ATTR_SERVICE", service.dump_key())] if dest is not None: - msg["attrs"].append("IPVS_CMD_ATTR_SERVICE", dest.dump_nla()) + msg["attrs"].append(("IPVS_CMD_ATTR_DEST", dest.dump_nla())) + print(msg) return self.nlm_request(msg, msg_type=self.prid, msg_flags=flags)