[LTP] [PATCH 1/3] test_net.sh: fix netns when defined LHOST_IFACES or RHOST_IFACES

Petr Vorel pvorel@suse.cz
Thu Dec 22 16:17:25 CET 2016


Hi Alexey,

> > > Any good reason to do that?
> > Yes. Currently if you define LHOST_IFACES and/or RHOST_IFACES netns is defined for
> > ltp_ns_veth2 and ltp_ns_veth1, but then there are used new variables => it's not working.
> > Or have I overlooked something?

> I understand, but why do you need to re-define these interface names?
I don't need that, but if anyone does, it will have to find what's broken. This can happen
if you migrate from existing config (ssh/rsh) into netns.
IMHO the logic should be clever enough not to break things just due bad config (or let the
user to know about it).

Kind regards,
Petr


More information about the ltp mailing list