Skip to content
dswd edited this page Jul 15, 2011 · 1 revision

Programmable Device

Programmable Devices use Repy scripts.

Features

Repy is a turing-complete subset of Python that allows to run in a sandboxed environment. ToMaTo adds the following functionality to Repy:

  • Reading raw packets from networking devices
  • Writing raw packets to networking devices
  • Listing networking devices and information retrieval
  • Encoding and decoding byte structures using the struct library

Virtual Hardware

The only virtual hardware of Programmable Devices are their networking devices. These devices can handle Ethernet packets up to 1514 Bytes.

Console

For Programmable Devices, the console only displays the output of the script but does not allow any input.

Images

The Repy scripts of the device can be uploaded and downloaded as images. A quick sanity check will be performed before the upload.

Templates

The templates for Programmable Devices are located at https://fileserver.german-lab.de/files/glabnetman/templates/repy

Clone this wiki locally