futurewei-cloud / alcor

Alcor: Cloud native SDN platform powered by Kubernetes and Istio
MIT License
32 stars 33 forks source link

Test controller enhancement with new configuration options #694

Closed zzxgzgz closed 2 years ago

zzxgzgz commented 2 years ago

This PR does the following:

Note:

The current controller has the following parameters:

Params:
1. Number of ports to generate on aca node one
2. Number of ports to generate on aca node two
3. IP of aca_node_one
4. IP of aca_node_two
5. IP of the GRPC call
6. Port of the GRPC call
7. User name of aca_nodes
8. Password of aca_nodes
9. Ping mode, either CONCURRENT_PING_MODE(0 and default), or SEQUENTIAL_PING_MODE(other numnbers)
10. Whether execute background ping or not. If set to 1, execute background ping; otherwise, don't execute background ping
11. Whether to create controller and execute pings.(0 is default and means create container and do pings; other number means NOT to create containers AND NOT to do pings).

The following is an example of using this Test Controller:

mvn exec:java -D ec.mainClass=com.futurewei.alcor.pseudo_controller.pseudo_controller -Dexec.args="number_of_ports_on_host_one number_of_ports_on_host_two host_one_ip host_two_ip ncm_ip ncm_port user_name_of_both_hosts password_of_both_hosts concurrent_or_sequential_ping background_ping_or_not whether_create_container_and_ping" -e