README (c13aca79ff3c4af5fd31a5b2743a90eba6e36a26) | README (18ec44f6effbd7bd6f7ec95e8ccd324b05219224) |
---|---|
1Motivation 2========== 3 4One of the nice things about network namespaces is that they allow one 5to easily create and test complex environments. 6 7Unfortunately, these namespaces can not be used with actual switching 8ASICs, as their ports can not be migrated to other network namespaces --- 32 unchanged lines hidden (view full) --- 41These tests are written with switch ASICs in mind, but they can be run 42on any Linux box using veth pairs to emulate physical loopbacks. 43 44Guidelines for Writing Tests 45============================ 46 47o Where possible, reuse an existing topology for different tests instead 48 of recreating the same topology. | 1Motivation 2========== 3 4One of the nice things about network namespaces is that they allow one 5to easily create and test complex environments. 6 7Unfortunately, these namespaces can not be used with actual switching 8ASICs, as their ports can not be migrated to other network namespaces --- 32 unchanged lines hidden (view full) --- 41These tests are written with switch ASICs in mind, but they can be run 42on any Linux box using veth pairs to emulate physical loopbacks. 43 44Guidelines for Writing Tests 45============================ 46 47o Where possible, reuse an existing topology for different tests instead 48 of recreating the same topology. |
49o Tests that use anything but the most trivial topologies should include 50 an ASCII art showing the topology. |
|
49o Where possible, IPv6 and IPv4 addresses shall conform to RFC 3849 and 50 RFC 5737, respectively. 51o Where possible, tests shall be written so that they can be reused by 52 multiple topologies and added to lib.sh. 53o Checks shall be added to lib.sh for any external dependencies. 54o Code shall be checked using ShellCheck [1] prior to submission. 55 561. https://www.shellcheck.net/ | 51o Where possible, IPv6 and IPv4 addresses shall conform to RFC 3849 and 52 RFC 5737, respectively. 53o Where possible, tests shall be written so that they can be reused by 54 multiple topologies and added to lib.sh. 55o Checks shall be added to lib.sh for any external dependencies. 56o Code shall be checked using ShellCheck [1] prior to submission. 57 581. https://www.shellcheck.net/ |