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

property containers

Iterator over all allocated containers as ManifestContainer objects.

property 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

property functions

Iterator over all allocated functions as ManifestFunction objects.

property local_circuits

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

property pg_circuits

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

property ports

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

property 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

exception UnhandledPortTypeError(typ)[source]
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.