e2e
This document show how to setup or reset the everoute e2e environment.
setup environment
requirement
- At least one linux virtual machine for e2e environment.
- Openvswitch should be installed for every agent node.
step
- Clone everoute into you e2e test environment.
- Enter folder everoute, run the following script to setup e2e environment.
# APISERVER_EXPOSE_IP should be the ip address everoute-agent can connection with.
APISERVER_EXPOSE_IP=""
# EVEROUTE_AGENT_HOSTLIST is a list of everoute-agent, multiple everoute-agent should write as "192.168.1.1,192.168.1.2"
EVEROUTE_AGENT_HOSTLIST=""
# UPLINK_IFACE is the interface name for everoute-agent uplink port, default ens11.
UPLINK_IFACE=""
# PLATFORM is the system platform, default amd64
PLATFORM=""
bash -x tests/e2e/scripts/e2e-setup.sh ${APISERVER_EXPOSE_IP} ${EVEROUTE_AGENT_HOSTLIST} ${UPLINK_IFACE} ${PLATFORM}
reset environment
Run the following script to reset e2e environment.
bash -x tests/e2e/scripts/e2e-reset.sh ${EVEROUTE_AGENT_HOSTLIST}