No "set protocols static route 0.0.0.0/0 dhcp-interface" autocomplete for dhcp interface?

I have set dhcp for eth0.

set interfaces ethernet eth0 address ‘dhcp’

when I input “set protocols static route 0.0.0.0/0 dhcp-interface” for eth0, I think it can be auto-completed. BUT it can’t

after I lookup implementation in

/opt/vyatta/share/vyatta-cfg/templates/protocols/static/route/node.tag/dhcp-interface

file, and the following line maybe wrong

array=( $(ls -1 /var/lib/dhcp/en* /var/lib/dhcp/dhclient_eth*.conf /var/lib/dhcp/br* /var/lib/dhcp/bond* 2>/dev/null) ) ;

it may like:

array=( $(ls -1 /var/lib/dhcp/dhclient_.conf 2>/dev/null | sed -E -e 's/^.?_(.*?).conf$/\1/g’) ) ;

version: vyos-1.3-rolling

Hi Xiangchu,

I have created the bug to report this issue:

https://phabricator.vyos.net/T3558