geni.rspec.vtsmanifest

class Manifest(path=None, xml=None)[source]

Wrapper object for GENI XML manifest rspec, providing a pythonic API to the contained data

containers

Iterator over all allocated containers as ManifestContainer objects.

datapaths

Iterator over all allocated datapaths as ManifestDatapath objects.

findPort(client_id)[source]

Get the datapath port object representing the given client_id.

Parameters:client_id (str) – client_id of the port you want to find
Returns:GenericPort or None
findTarget(client_id)[source]

Get the container or datapath representing the given client_id in the manifest.

Parameters:client_id (str) – Requested client ID of the object you want to find
Returns:ManifestDatapath, ManifestContainer, or None
functions

Iterator over all allocated functions as ManifestFunction objects.

local_circuits

Iterator for allocated circuit names on the local PG circuit plane (as strings).

pg_circuits

Iterator for allocated circuit names on the local PG circuit plane (as strings).

ports

Iterator for all datapath and container ports as subclasses of GenericPort objects.

text

String representation of original XML content, with added whitespace for easier reading

write(path)[source]

Deprecated since version 0.4: Use geni.rspec.vtsmanifest.Manifest.writeXML() instead.

writeXML(path)[source]

Write the XML representation of this manifest to the supplied path.

Parameters:path (str) – Path to output file