<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - flush set doesn't work as expected in script"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1431#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - flush set doesn't work as expected in script"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1431">bug 1431</a>
              from <span class="vcard"><a class="email" href="mailto:pablo@netfilter.org" title="Pablo Neira Ayuso <pablo@netfilter.org>"> <span class="fn">Pablo Neira Ayuso</span></a>
</span></b>
        <pre>Using James' test case, this works for me with 7c9bef0c0312

# cat potato.nft 
table ip potato {                                                               
        set potato {                                                            
                type ipv4_addr                                                  
                flags interval                                                  
                elements = { 0.0.0.0-255.255.255.255 }                          
        }                                                                       
}

# nft -f potato.nft

# cat b.nft 
flush set ip potato potato;
add element ip potato potato {
        10.0.0.0/8
}
# nft -f b.nft

# nft list ruleset
table ip potato {
        set potato {
                type ipv4_addr
                flags interval
                elements = { 10.0.0.0/8 }
        }
}

Are you sure you're running a fresh nft binary compiled from sources?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>