<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Consider allowing for variable interpolation"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1458">1458</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Consider allowing for variable interpolation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>nftables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>nft
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pablo@netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kfm@plushkava.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This is another feature request extracted from <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Usability improvements, enabling creation of complex firewalls"
   href="show_bug.cgi?id=1434">bug 1434</a> (the "usability" bug).
Currently, variable interpolation isn't supported by the parser. The originally
given example was as follows.

  define LOG_PREFIX = "[foo] "
  table inet filter {
    chain input {
      type filter hook input priority 0; policy drop;
      counter log prefix "$LOG_PREFIX DROP"
    }
  }

If this is ever implemented, it might also make sense to allow for strings to
be single-quoted so as to be able to suppress expansion (just like in sh).
Otherwise, there would need to be some means of escaping the $ symbol.

Another approach could be so support a concatenation operator instead. For
instance:

  counter log prefix $LOG_PREFIX + " DROP"</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>