dataplane_traces Package

dataplane_traces Package

trace Module

class sts.dataplane_traces.trace.DataplaneEvent(interface, packet)[source]

Bases: object

Encapsulates a packet injected at a (switch.dpid, port) pair in the network Used for trace generation or replay debugging

__init__(interface, packet)[source]
static from_json(json_hash)[source]
to_json()[source]
class sts.dataplane_traces.trace.Trace(tracefile_path, topology=None)[source]

Bases: object

Encapsulates a sequence of dataplane events to inject into a simulated network.

__init__(tracefile_path, topology=None)[source]
inject_trace_event()[source]

trace_generator Module

Created on Mar 15, 2012

@author: cs

sts.dataplane_traces.trace_generator.generate_example_trace()[source]
sts.dataplane_traces.trace_generator.generate_example_trace_fat_tree(num_pods=4)[source]
sts.dataplane_traces.trace_generator.generate_example_trace_same_subnet(num_switches=2)[source]
sts.dataplane_traces.trace_generator.write_trace_log(dataplane_events, filename)[source]

Given a list of DataplaneEvents and a log filename, writes out a log. For manual trace generation rather than replay logging

Table Of Contents

Previous topic

control_flow Package

Next topic

experiments Package

This Page