Skip to content

Commit

Permalink
ipvs: fix nla name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
svinota committed Mar 13, 2024
1 parent b1e99e2 commit 8bb348c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyroute2/ipvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 8bb348c

Please sign in to comment.