config: support multi nic device

When define more than one net device, argument "index" must be
defined

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>