Skip to content

vswitch: add an example. Integrate with CI#700

Open
JDuchniewicz wants to merge 14 commits intojakub/vswitchfrom
jakub/vswitch_example
Open

vswitch: add an example. Integrate with CI#700
JDuchniewicz wants to merge 14 commits intojakub/vswitchfrom
jakub/vswitch_example

Conversation

@JDuchniewicz
Copy link
Copy Markdown
Contributor

Adds a vswitch example that extends echo_server. For this purpose 2 PPCs were added to the vswitch, one that reports current IP address assigned to a client and one that queries vswitch for other connected clients and their IPs.

In the example, each client after receiving an IP from a DHCP server performs ICMP echo to all other clients (2 in this case, although this could be extended) and then waits for replies. If a reply is received it means everything works as expected.

The CI script is very similar to echo_server's but has to allow for differing log order, therefore an auxiliary data structure is created to keep track of reported IPs both in DHCP and ICMP requests.

Depends on #685

@JDuchniewicz JDuchniewicz changed the base branch from main to jakub/vswitch April 15, 2026 03:52
@JDuchniewicz JDuchniewicz force-pushed the jakub/vswitch_example branch from 081854c to 9ccb5b3 Compare April 15, 2026 04:45
@JDuchniewicz JDuchniewicz force-pushed the jakub/vswitch_example branch from 9ccb5b3 to cda9acb Compare April 15, 2026 04:49
@JDuchniewicz JDuchniewicz force-pushed the jakub/vswitch branch 3 times, most recently from 7c4a802 to 9e46e68 Compare April 15, 2026 08:02
@JDuchniewicz JDuchniewicz changed the title Add a vswitch example. Integrate with CI vswitch: add an example. Integrate with CI Apr 15, 2026
@JDuchniewicz JDuchniewicz force-pushed the jakub/vswitch_example branch 2 times, most recently from 4b9d441 to 8c66e32 Compare April 16, 2026 01:10
Comment thread examples/vswitch/meta.py Outdated
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
@JDuchniewicz JDuchniewicz force-pushed the jakub/vswitch_example branch from 8c66e32 to c5f83f0 Compare April 17, 2026 04:08
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants