Lines Matching refs:network
514 #let's do some drity bash things to parse lxc network conf
520 if [[ "${key}" == "lxc.network.type" ]]; then
538 if [[ "${key}" == "lxc.network.hwaddr" ]]; then
542 if [[ "${key}" =~ ^lxc.network.ipv(4|6) ]]; then
546 if [[ "${key}" =~ ^lxc.network.name ]]; then
562 printf "container_net(): setting container network conf... \n"
564 #Analyse network configuration in config
571 # provision of the 'net' dep. If we do not, network dependent services
583 store_user_message "No network interface for this container
586 lxc.network.type = veth
587 lxc.network.link = ${bridge}
588 lxc.network.flags = up
589 lxc.network.hwaddr = fe:xx:xx:xx:xx:xx"
592 store_user_message "No network interface for this container"
619 printf " => network conf done.\n"
682 # if there is exactly one veth network entry, make sure it has an
684 nics=`grep -e '^lxc\.network\.type[ \t]*=[ \t]*veth' ${conf_file} | wc -l`
686 grep -q "^lxc.network.hwaddr" ${conf_file} || sed -i -e "/^lxc\.network\.type[ \t]*=[ \t]*veth/a lxc.network.hwaddr = 00:16:3e:$(openssl rand -hex 3| sed 's/\(..\)/\1:/g; s/.$//')" ${conf_file}