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

Module models

source code

Created on Apr 26, 2010


Author: jnaous

Classes [hide private]
  OpenFlowSliceInfo
OpenFlowSliceInfo(id, slice_id, controller_url, password)
  OpenFlowAggregate
OpenFlowAggregate(id, leaf_name, module_name, name, logo, description, location, available, aggregate_ptr_id, client_id, usage_agreement)
  OpenFlowSwitch
OpenFlowSwitch(id, leaf_name, module_name, name, available, status_change_timestamp, aggregate_id, resource_ptr_id, datapath_id)
  OpenFlowConnection
Connection between two interfaces
  NonOpenFlowConnection
Connection to/from an OpenFlow Interface to a non-OpenFlow Resource
  OpenFlowInterface
OpenFlowInterface(id, leaf_name, module_name, name, available, status_change_timestamp, aggregate_id, resource_ptr_id, port_num, switch_id, slug)
  OpenFlowInterfaceSliver
OpenFlowInterfaceSliver(id, leaf_name, module_name, resource_id, slice_id, sliver_ptr_id)
  FlowSpaceRule
FlowSpaceRule(id, dl_src_start, dl_dst_start, dl_type_start, vlan_id_start, nw_src_start, nw_dst_start, nw_proto_start, tp_src_start, tp_dst_start, dl_src_end, dl_dst_end, dl_type_end, vlan_id_end, nw_src_end, nw_dst_end, nw_proto_end, tp_src_end, tp_dst_end)
Functions [hide private]
 
as_is_slugify(value) source code
 
validate_controller_url(value) source code
 
create_or_update_switches(aggregate, switches)
Create or update the switches in aggregate aggregate with switches in switches.
source code
 
create_or_update_links(aggregate, links)
Create or update the links in aggregate aggregate.
source code
 
get_raw_topology(aggregate)
Get the openflow toplogy as a set of links in the aggregate.
source code
 
delete_empty_flowspace(sender, **kwargs) source code
 
check_fs_change(sender, **kwargs) source code
Variables [hide private]
  logger = logging.getLogger("OpenflowModels")
  parse_logger = logging.getLogger("OpenflowModelsParsing")
  cntrlr_url_re = re.compile(r'^((tcp)|(ssl)):(([a-zA-Z0-9]|[a-z...
  __package__ = 'openflow.plugin'
Function Details [hide private]

create_or_update_switches(aggregate, switches)

source code 

Create or update the switches in aggregate aggregate with switches in switches.

switches is a dict mapping datapath ids to list of ports.

create_or_update_links(aggregate, links)

source code 

Create or update the links in aggregate aggregate.

Parameters:
  • aggregate - the aggregate with openflow links and switches.
  • links - a tuple (src dpid, src port, dst dpid, dst port, attrs)

Variables Details [hide private]

cntrlr_url_re

Value:
re.compile(r'^((tcp)|(ssl)):(([a-zA-Z0-9]|[a-zA-Z0-9-]*[a-zA-Z0-9])\.)\
*([A-Za-z]|[A-Za-z0-9-]*[A-Za-z0-9]):(?P<port>\d+)$')