Package openflow :: Package plugin :: Module models :: Class OpenFlowAggregate
[hide private]
[frames] | no frames]

Class OpenFlowAggregate

source code


OpenFlowAggregate(id, leaf_name, module_name, name, logo, description, location, available, aggregate_ptr_id, client_id, usage_agreement)

Nested Classes [hide private]
  Meta
  DoesNotExist
  Extend
  MultipleObjectsReturned

Inherited from expedient.common.extendable.models.Extendable: __metaclass__

Instance Methods [hide private]
 
setup_new_aggregate(self, base_uri) source code
 
get_raw_topology(self)
Get the topology for this aggregate as a set of links.
source code
 
parse_switches(self, active_switches_raw)
Update the set of available switches.
source code
 
parse_links(self, active_links_raw)
Get the available links and update the network connections.
source code
 
update_topology(self)
Read the topology from the OM and FV, parse it, and store it.
source code
 
_get_slice_id(self, slice)
Get a slice id to use when creating slices at the OM.
source code
dict
_get_slivers(self, slice)
Get the set of slivers in the slice for this aggregate in a format that the OM understands.
source code
 
check_status(self)
Checks whether the aggregate is available or not.
source code
 
start_slice(self, slice)
Start the slice in the actual resources.
source code
 
stop_slice(self, slice)
Take out the resource reservation from the aggregates.
source code
 
_base_manager(...)
 
objects(...)

Inherited from expedient.clearinghouse.aggregate.models.Aggregate: __unicode__, add_to_project, add_to_slice, add_to_user, delete, get_delete_url, get_edit_url, get_logo_url, remove_from_project, remove_from_slice, remove_from_user, save

Inherited from expedient.common.extendable.models.Extendable: __init__, as_leaf_class, is_instance_of

Inherited from django.db.models.base.Model: __eq__, __hash__, __ne__, __reduce__, __repr__, __str__, clean, clean_fields, date_error_message, full_clean, prepare_database_save, save_base, serializable_value, unique_error_message, validate_unique

Inherited from django.db.models.base.Model (private): _collect_sub_objects, _get_FIELD_display, _get_next_or_previous_by_FIELD, _get_next_or_previous_in_order, _get_pk_val, _get_unique_checks, _perform_date_checks, _perform_unique_checks, _set_pk_val

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]
 
get_url_name_prefix(cls)
Get the prefix to append to the beginning of url names when getting default urls.
source code

Inherited from expedient.clearinghouse.aggregate.models.Aggregate: get_aggregates_url, get_create_url

Class Variables [hide private]
  information = '\nOpenFlow is an open standard that allows netw...
Information about the aggregate.
  client = models.OneToOneField(PasswordXMLRPCServerProxy)
  usage_agreement = models.TextField()
  _default_manager = <expedient.common.extendable.models.Extenda...
  _meta = <Options for OpenFlowAggregate>
  aggregate_ptr = <django.db.models.fields.related.ReverseSingle...

Inherited from expedient.clearinghouse.aggregate.models.Aggregate: dummyaggregate, geniaggregate, openflowaggregate, resource_set

Inherited from expedient.common.extendable.models.Extendable: leaf_name, module_name

Inherited from django.db.models.base.Model (private): _deferred

Instance Variables [hide private]

Inherited from expedient.clearinghouse.aggregate.models.Aggregate: available, description, location, logo, managers, name, slice_set

Properties [hide private]

Inherited from django.db.models.base.Model: pk

Inherited from object: __class__

Method Details [hide private]

_get_slivers(self, slice)

source code 

Get the set of slivers in the slice for this aggregate in a format that the OM understands.

Parameters:
Returns: dict
dict containing a mapping from datapath ids in the aggregate to flowspaces on that switch.

get_url_name_prefix(cls)
Class Method

source code 

Get the prefix to append to the beginning of url names when getting default urls.

By default this returns the application name.

Overrides: expedient.clearinghouse.aggregate.models.Aggregate.get_url_name_prefix
(inherited documentation)

check_status(self)

source code 

Checks whether the aggregate is available or not.

Returns:
True if the aggregate is available, False otherwise.
Overrides: expedient.clearinghouse.aggregate.models.Aggregate.check_status
(inherited documentation)

start_slice(self, slice)

source code 

Start the slice in the actual resources.

Subclasses overriding this method should call the parent class to ensure permission checks.

Overrides: expedient.clearinghouse.aggregate.models.Aggregate.start_slice
(inherited documentation)

stop_slice(self, slice)

source code 

Take out the resource reservation from the aggregates.

Subclasses overriding this method should call the parent class to ensure permission checks.

Overrides: expedient.clearinghouse.aggregate.models.Aggregate.stop_slice
(inherited documentation)

_base_manager(...)

 
Overrides: expedient.clearinghouse.aggregate.models.Aggregate._base_manager

objects(...)

 
Overrides: expedient.common.extendable.models.Extendable.objects

Class Variable Details [hide private]

information

Information about the aggregate. Used when displaying information about the type. Should be overriden.
Value:
'''
OpenFlow is an open standard that allows network switches to be contro\
lled by
a remote controller. It enables researchers to run experimental protoc\
ols in
production networks, and is currently deployed in several universities\
.
'''

_default_manager

Value:
<expedient.common.extendable.models.ExtendableManager object at 0x8f74\
bac>

aggregate_ptr

Value:
<django.db.models.fields.related.ReverseSingleRelatedObjectDescriptor \
object at 0x8f74b4c>