On 05/03/2011 10:44 PM, pablo@gnumonks.org wrote:
- vty_out(vty, "e1_input%s", VTY_NEWLINE);
- bool heading = false;
what about
if (llist_empty(&e1in..) return;
llist_for_each_entry(line, &e1inp_line_list, list) {
if (!heading) {vty_out(vty, "e1_input%s", VTY_NEWLINE);heading = true; vty_out(vty, " e1_line %u driver %s%s", line->num, line->driver->name, VTY_NEWLINE); }}