title: Luci cbi - How to get section name in ListValue
body: <p>How do I add all name of a section in a ListValue in Luci using CBI?</p>
  
  <p>I know how to do this for a list of options. For example if I have the config below.</p>
  
  <pre><code>config mysection 'foo'
      option key1 'abc'
      option key2 'def'
  
  config mysection 'bar'
      option key1 '123'
      option key2 '456'
  </code></pre>
  
  <p>I can easily make a list of options key1 like so:</p>
  
  <pre><code>lv = s:option(ListValue, "xxx", "whatever");
  m.uci:foreach("myconfig","mysection",
          function(i)
                  lv:value(i.key1, i.key1)
          end)
  </code></pre>
  
  <p>This provides a drop down list with 'abc' and '123'</p>
  
  <p>Now I need the same but using the name of the section. i.e. A list with 'foo' and 'bar'.</p>