* zhanghailiang ([email protected]) wrote:
> Implement colo nic device interface configure()
> add a script to configure nic devices:
> ${QEMU_SCRIPT_DIR}/colo-proxy-script.sh
>
> Cc: Stefan Hajnoczi <[email protected]>
> Cc: Jason Wang <[email protected]>
> Signed-off-by: zhanghailiang <[email protected]>
> Signed-off-by: Li Zhijian <[email protected]>
> ---
I've not quite got this working right yet; after a failover, the secondary
hasn't connected the tap to the right bridge; I'm still trying to figure that
out.
> +
> +secondary_uninstall()
> +{
> + brctl delif $br $phy_if
> + brctl delif $br $virt_if
> + brctl addif $failover_br $virt_if
> +
> + /usr/local/sbin/iptables -t mangle -D PREROUTING -m physdev --physdev-in
> \
> + $virt_if -j SECCOLO --index $index
I think this is new in this version; don't you still need the SECCOLO
mangle to fixup the sequence number of packets in existing connections so they
match the numbers that the PMY used?
Dave
> + /usr/local/sbin/ip6tables -t mangle -D PREROUTING -m physdev
> --physdev-in \
> + $virt_if -j SECCOLO --index $index
> +}
> +
> +if [ $# -ne 5 ]; then
> + script_usage
> + exit 1
> +fi
> +
> +if [ "x$side" != "xprimary" ] && [ "x$side" != "xsecondary" ]; then
> + script_usage
> + exit 2
> +fi
> +
> +if [ "x$action" != "xinstall" ] && [ "x$action" != "xuninstall" ]; then
> + script_usage
> + exit 3
> +fi
> +
> +${side}_${action}
> --
> 1.8.3.1
>
>
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK