Re: howto auto add VE veth to a HN bridge upon VE startup? [message #20359 is a reply to message #20358] |
Mon, 17 September 2007 09:39 |
piavlo
Messages: 159 Registered: January 2007
|
Senior Member |
|
|
finist wrote on Mon, 17 September 2007 11:29 |
piavlo wrote on Sun, 16 September 2007 16:07 | OK just found out the vznetcfg script which sources the vznet.conf file, and runs EXTERNAL_SCRIPT prior to bringing the veth device up.
|
Alex, you are right that vznetcfg brings up the veth device in case of EXTERNAL_SCRIPT variable is empty. But it doesn't run EXTERNAL_SCRIPT _prior_ to bringing the veth device up, if EXTERNAL_SCRIPT is filled it (EXTERNAL_SCRIPT) is executed instead of vznetcfg normal configuration. It was by design - in theory the administrator can write down his own network start up script and it should not depend on what vznetcfg does (cause it can and i suppose it will change its behaviour).
Konstantin.
|
Yes of course you are right , in a rush i did not notice the exec in exec ${EXTERNAL_SCRIPT} $@
Thanks
|
|
|