Bug#914429: flush a map does not delete the reference "device or resource busy", delete of all elements in a map does delete the reference to a chain.
Hi Arturo,
This problem happens only if we flush the J_TestMap!
If we delete the elements of J_TestMap, we can delete the chain C_TestChain!
I think it's very simmilar to bug 914706.
table ip filter {
chain FORWARD {
type filter hook forward priority 0; policy accept;
jump vpn_master
}
map J_TestMap {
type ipv4_addr : verdict
flags interval
elements = { 172.21.138.0/29 : jump C_TestChain }
}
chain vpn_master {
ip saddr vmap @J_TestMap
}
chain C_TestChain {
}
}
root@xmachine1:/home/user/testcase# nft flush map filter J_TestMap
root@xmachine1:/home/user/testcase# nft flush chain filter C_TestChain
root@xmachine1:/home/user/testcase# nft delete chain filter C_TestChain
Error: Could not process rule: Device or resource busy
delete chain filter C_TestChain
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
root@xmachine1:/home/user/testcase# nft list ruleset
table ip filter {
map J_TestMap {
type ipv4_addr : verdict
flags interval
}
chain FORWARD {
type filter hook forward priority 0; policy accept;
jump vpn_master
}
chain vpn_master {
ip saddr vmap @J_TestMap
}
chain C_TestChain {
}
}
Reply to: