patch pyroute2 set_elem list elem attr type
This commit is contained in:
parent
2a778ff46c
commit
3059a81d56
@ -20,6 +20,8 @@ _NlMsgBase = typing.TypeVar('_NlMsgBase', bound=pr2modules.netlink.nlmsg_base)
|
|||||||
# nft uses NESTED for those.. lets do the same
|
# nft uses NESTED for those.. lets do the same
|
||||||
_nftsocket.nft_set_elem_list_msg.set_elem.data_attributes.nla_flags = pr2modules.netlink.NLA_F_NESTED
|
_nftsocket.nft_set_elem_list_msg.set_elem.data_attributes.nla_flags = pr2modules.netlink.NLA_F_NESTED
|
||||||
_nftsocket.nft_set_elem_list_msg.set_elem.nla_flags = pr2modules.netlink.NLA_F_NESTED
|
_nftsocket.nft_set_elem_list_msg.set_elem.nla_flags = pr2modules.netlink.NLA_F_NESTED
|
||||||
|
# nftable lists always use `1` as list element attr type
|
||||||
|
_nftsocket.nft_set_elem_list_msg.set_elem.header_type = 1 # NFTA_LIST_ELEM
|
||||||
|
|
||||||
|
|
||||||
def _monkey_patch_pyroute2():
|
def _monkey_patch_pyroute2():
|
||||||
|
Loading…
Reference in New Issue
Block a user