Saving and Opening Stream Files¶
Overview¶
You can save the configured streams to a file that can be later opened on the same or different port. This is useful to import PCAP files into Ostinato.
If you want to save/restore the port settings and device groups also, use Port Save/Open instead.
Use the Streams Menu (or the streams window right-click context menu) to save/open streams.
Prior to v1.2.0, stream related menu items were under the File menu
File Formats¶
The following file formats are supported -
- Ostinato native
ostm
format (recommended) pcap
capture format (starting v0.4)pdml
XML format (starting v0.4)py
Python Script (see note)
Native OSTM format¶
This is the default and recommended format.
PCAP and PDML formats¶
If you have a PCAP file, you can open it in Ostinato.
If you want to use Ostinato generated packets with other tools, save the streams in PCAP format which is widely supported.
Timestamps in exported PCAP files
Starting v1.2, exported PCAP files use nanosecond timestamps. Prior versions used microsecond precision timestamps.
PDML is a XML representation of packets and their attributes.
Python script (save only)¶
You can save the configured streams as a python script for use with the Ostinato Python API.
This provides an easy to way to create and test traffic streams using the GUI and then use the generated python script for automation.
See Python API Guide for more details.
Note
Save streams as python was introduced in v0.7 and discontinued in v1.4.0 after introducing save port config as python which saves not just the streams, but also device groups and port settings - which is what you really want.