names of maps were correct. I just picked wrong ones here. I have pretty large structure. Just drop the _prio from commands or add it to maps. ---- S pozdravem / Best Regards Vaclav Zindulka On Thu, Feb 14, 2019 at 11:42 AM Václav Zindulka <vaclav.zindulka@xxxxxxxxxx> wrote: > > Hello, > > I've discovered problem with maps in nftables. When I try to remove > last element of the map I get No such file or directory error. I > suppose map can exist without elements since it is default behavior > during creation using commands. > > map group_12058 { > type ipv4_addr : classid > flags interval > elements = { 10.13.25.32/29 : 1:b8a1 } > } > > nft delete element ip filter group_12058_prio "{ 10.13.25.32/29 }" > > Error: Could not process rule: No such file or directory > delete element ip filter group_12058_prio { 10.13.25.32/29 } > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > map group_12064 { > type ipv4_addr : classid > flags interval > elements = { 10.4.28.210 : 1:ae69, 10.4.28.211 : 1:9fe1 } > } > > nft delete element ip filter group_12064_prio "{ 10.4.28.210/32 }" > > nft delete element ip filter group_12064_prio "{ 10.4.28.211/32 }" > Error: Could not process rule: No such file or directory > delete element ip filter group_12064_prio { 10.4.28.211/32 } > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > ---- > S pozdravem / Best Regards > > Vaclav Zindulka