Shale#
This example demonstrates how to use OpenOptics to implement the Shale [1] oblivious reconfigurable network topology.
examples/topo_shale.py#
1from openoptics import OpticalTopo, Toolbox
2
3if __name__ == "__main__":
4 net = Toolbox.BaseNetwork(
5 name="opera",
6 backend="Mininet",
7 nb_node=27,
8 time_slice_duration_ms=256, # in ms
9 use_webserver=True,
10 )
11 circuits = OpticalTopo.shale(27, 3)
12 print(circuits)
13 assert net.deploy_topo(circuits)
14 net.start()