lxc/lxc — pull request #6 by tpo (2012-10-28 11:22:06+00:00)
Title: clearer error message when interface name to long

Currently when configuring a too long interface name with lxc.network.veth.pair lxc will say:

lxc_confile - invalid interface name: veth_haproxy_br0

leaving the user add odds what possibly could be wrong with that name. Please give the user a clearer error message.

I suggest to change the error message to

"interface name '%s' is too long (> %d)".

Please pull commit bc7fa5c391bc8e767fdb7322d6c60c3c5e098583 that implements that change.

Signed-off-by: Tomas Pospisek