Module TransferBroker
Expand source code
class TransferBroker():
"""Class for transfer broker attributes."""
def __init__(self):
"""Function to initialize the attributes."""
self._list_src_rcsites = []
self._list_dst_rcsites = []
self._list_src_endpoints = []
self._list_dst_endpoints = []
self._link_src_state = False
self._link_dst_state = False
self._unidirectional = False
self._events_to_wait = 0
self._max_throughput = 0
self._min_throughput = 0
self._num_circuits = 0
self._sense_uuid = ''
self._sense_vlan = ''
self._sense_uuid_2 = ''
self._sense_vlan_2 = ''
def get_list_src_rcsites(self):
"""Function to get list_src_rcsites attribute."""
return self._list_src_rcsites
def set_list_src_rcsites(self, src_rcsites):
"""Function to set list_src_rcsites attribute."""
self._list_src_rcsites = src_rcsites
def get_list_dst_rcsites(self):
"""Function to get list_dst_rcsites attribute."""
return self._list_dst_rcsites
def set_list_dst_rcsites(self, dst_rcsites):
"""Function to set list_dst_rcsites attribute."""
self._list_dst_rcsites = dst_rcsites
def get_list_src_endpoints(self):
"""Function to get list_src_endpoints attribute."""
return self._list_src_endpoints
def set_list_src_endpoints(self, endpoints):
"""Function to set list_src_endpoints attribute."""
self._list_src_endpoints = endpoints
def get_list_dst_endpoints(self):
"""Function to get list_dst_endpoints attribute."""
return self._list_dst_endpoints
def set_list_dst_endpoints(self, endpoints):
"""Function to set list_dst_endpoints attribute."""
self._list_dst_endpoints = endpoints
def get_link_src_state(self):
"""Function to get link_src_state attribute."""
return self._link_src_state
def set_link_src_state(self, state):
"""Function to set link_src_state attribute."""
self._link_src_state = state
def get_link_dst_state(self):
"""Function to get link_dst_state attribute."""
return self._link_dst_state
def set_link_dst_state(self, state):
"""Function to set link_dst_state attribute."""
self._link_dst_state = state
def get_unidirectional(self):
"""Function to get unidirectional attribute."""
return self._unidirectional
def set_unidirectional(self, unidir):
"""Function to set unidirectional attribute."""
self._unidirectional = unidir
def get_events_to_wait(self):
"""Function to get events_to_wait attribute."""
return self._events_to_wait
def set_events_to_wait(self, events):
"""Function to set events_to_wait attribute."""
self._events_to_wait = events
def get_max_throughput(self):
"""Function to get max_throughput attribute."""
return self._max_throughput
def set_max_throughput(self, threshold):
"""Function to set max_throughput attribute."""
self._max_throughput = threshold
def get_min_throughput(self):
"""Function to get min_throughput attribute."""
return self._min_throughput
def set_min_throughput(self, threshold):
"""Function to set min_throughput attribute."""
self._min_throughput = threshold
def get_num_circuits(self):
"""Function to get num_circuits attribute."""
return self._num_circuits
def set_num_circuits(self, circuits):
"""Function to set num_circuits attribute."""
self._num_circuits = circuits
def get_sense_uuid(self):
"""Function to get sense_uuid attribute."""
return self._sense_uuid
def set_sense_uuid(self, uuid):
"""Function to set sense_uuid attribute."""
self._sense_uuid = uuid
def get_sense_vlan(self):
"""Function to get sense_vlan attribute."""
return self._sense_vlan
def set_sense_vlan(self, vlan):
"""Function to set sense_vlan attribute."""
self._sense_vlan = vlan
def get_sense_uuid_2(self):
"""Function to get sense_uuid_2 attribute."""
return self._sense_uuid_2
def set_sense_uuid_2(self, uuid):
"""Function to set sense_uuid_2 attribute."""
self._sense_uuid_2 = uuid
def get_sense_vlan_2(self):
"""Function to get sense_vlan_2 attribute."""
return self._sense_vlan_2
def set_sense_vlan_2(self, vlan):
"""Function to set sense_vlan_2 attribute."""
self._sense_vlan_2 = vlan
Classes
class TransferBroker
-
Class for transfer broker attributes.
Function to initialize the attributes.
Expand source code
class TransferBroker(): """Class for transfer broker attributes.""" def __init__(self): """Function to initialize the attributes.""" self._list_src_rcsites = [] self._list_dst_rcsites = [] self._list_src_endpoints = [] self._list_dst_endpoints = [] self._link_src_state = False self._link_dst_state = False self._unidirectional = False self._events_to_wait = 0 self._max_throughput = 0 self._min_throughput = 0 self._num_circuits = 0 self._sense_uuid = '' self._sense_vlan = '' self._sense_uuid_2 = '' self._sense_vlan_2 = '' def get_list_src_rcsites(self): """Function to get list_src_rcsites attribute.""" return self._list_src_rcsites def set_list_src_rcsites(self, src_rcsites): """Function to set list_src_rcsites attribute.""" self._list_src_rcsites = src_rcsites def get_list_dst_rcsites(self): """Function to get list_dst_rcsites attribute.""" return self._list_dst_rcsites def set_list_dst_rcsites(self, dst_rcsites): """Function to set list_dst_rcsites attribute.""" self._list_dst_rcsites = dst_rcsites def get_list_src_endpoints(self): """Function to get list_src_endpoints attribute.""" return self._list_src_endpoints def set_list_src_endpoints(self, endpoints): """Function to set list_src_endpoints attribute.""" self._list_src_endpoints = endpoints def get_list_dst_endpoints(self): """Function to get list_dst_endpoints attribute.""" return self._list_dst_endpoints def set_list_dst_endpoints(self, endpoints): """Function to set list_dst_endpoints attribute.""" self._list_dst_endpoints = endpoints def get_link_src_state(self): """Function to get link_src_state attribute.""" return self._link_src_state def set_link_src_state(self, state): """Function to set link_src_state attribute.""" self._link_src_state = state def get_link_dst_state(self): """Function to get link_dst_state attribute.""" return self._link_dst_state def set_link_dst_state(self, state): """Function to set link_dst_state attribute.""" self._link_dst_state = state def get_unidirectional(self): """Function to get unidirectional attribute.""" return self._unidirectional def set_unidirectional(self, unidir): """Function to set unidirectional attribute.""" self._unidirectional = unidir def get_events_to_wait(self): """Function to get events_to_wait attribute.""" return self._events_to_wait def set_events_to_wait(self, events): """Function to set events_to_wait attribute.""" self._events_to_wait = events def get_max_throughput(self): """Function to get max_throughput attribute.""" return self._max_throughput def set_max_throughput(self, threshold): """Function to set max_throughput attribute.""" self._max_throughput = threshold def get_min_throughput(self): """Function to get min_throughput attribute.""" return self._min_throughput def set_min_throughput(self, threshold): """Function to set min_throughput attribute.""" self._min_throughput = threshold def get_num_circuits(self): """Function to get num_circuits attribute.""" return self._num_circuits def set_num_circuits(self, circuits): """Function to set num_circuits attribute.""" self._num_circuits = circuits def get_sense_uuid(self): """Function to get sense_uuid attribute.""" return self._sense_uuid def set_sense_uuid(self, uuid): """Function to set sense_uuid attribute.""" self._sense_uuid = uuid def get_sense_vlan(self): """Function to get sense_vlan attribute.""" return self._sense_vlan def set_sense_vlan(self, vlan): """Function to set sense_vlan attribute.""" self._sense_vlan = vlan def get_sense_uuid_2(self): """Function to get sense_uuid_2 attribute.""" return self._sense_uuid_2 def set_sense_uuid_2(self, uuid): """Function to set sense_uuid_2 attribute.""" self._sense_uuid_2 = uuid def get_sense_vlan_2(self): """Function to get sense_vlan_2 attribute.""" return self._sense_vlan_2 def set_sense_vlan_2(self, vlan): """Function to set sense_vlan_2 attribute.""" self._sense_vlan_2 = vlan
Methods
def get_events_to_wait(self)
-
Function to get events_to_wait attribute.
Expand source code
def get_events_to_wait(self): """Function to get events_to_wait attribute.""" return self._events_to_wait
def get_link_dst_state(self)
-
Function to get link_dst_state attribute.
Expand source code
def get_link_dst_state(self): """Function to get link_dst_state attribute.""" return self._link_dst_state
def get_link_src_state(self)
-
Function to get link_src_state attribute.
Expand source code
def get_link_src_state(self): """Function to get link_src_state attribute.""" return self._link_src_state
def get_list_dst_endpoints(self)
-
Function to get list_dst_endpoints attribute.
Expand source code
def get_list_dst_endpoints(self): """Function to get list_dst_endpoints attribute.""" return self._list_dst_endpoints
def get_list_dst_rcsites(self)
-
Function to get list_dst_rcsites attribute.
Expand source code
def get_list_dst_rcsites(self): """Function to get list_dst_rcsites attribute.""" return self._list_dst_rcsites
def get_list_src_endpoints(self)
-
Function to get list_src_endpoints attribute.
Expand source code
def get_list_src_endpoints(self): """Function to get list_src_endpoints attribute.""" return self._list_src_endpoints
def get_list_src_rcsites(self)
-
Function to get list_src_rcsites attribute.
Expand source code
def get_list_src_rcsites(self): """Function to get list_src_rcsites attribute.""" return self._list_src_rcsites
def get_max_throughput(self)
-
Function to get max_throughput attribute.
Expand source code
def get_max_throughput(self): """Function to get max_throughput attribute.""" return self._max_throughput
def get_min_throughput(self)
-
Function to get min_throughput attribute.
Expand source code
def get_min_throughput(self): """Function to get min_throughput attribute.""" return self._min_throughput
def get_num_circuits(self)
-
Function to get num_circuits attribute.
Expand source code
def get_num_circuits(self): """Function to get num_circuits attribute.""" return self._num_circuits
def get_sense_uuid(self)
-
Function to get sense_uuid attribute.
Expand source code
def get_sense_uuid(self): """Function to get sense_uuid attribute.""" return self._sense_uuid
def get_sense_uuid_2(self)
-
Function to get sense_uuid_2 attribute.
Expand source code
def get_sense_uuid_2(self): """Function to get sense_uuid_2 attribute.""" return self._sense_uuid_2
def get_sense_vlan(self)
-
Function to get sense_vlan attribute.
Expand source code
def get_sense_vlan(self): """Function to get sense_vlan attribute.""" return self._sense_vlan
def get_sense_vlan_2(self)
-
Function to get sense_vlan_2 attribute.
Expand source code
def get_sense_vlan_2(self): """Function to get sense_vlan_2 attribute.""" return self._sense_vlan_2
def get_unidirectional(self)
-
Function to get unidirectional attribute.
Expand source code
def get_unidirectional(self): """Function to get unidirectional attribute.""" return self._unidirectional
def set_events_to_wait(self, events)
-
Function to set events_to_wait attribute.
Expand source code
def set_events_to_wait(self, events): """Function to set events_to_wait attribute.""" self._events_to_wait = events
def set_link_dst_state(self, state)
-
Function to set link_dst_state attribute.
Expand source code
def set_link_dst_state(self, state): """Function to set link_dst_state attribute.""" self._link_dst_state = state
def set_link_src_state(self, state)
-
Function to set link_src_state attribute.
Expand source code
def set_link_src_state(self, state): """Function to set link_src_state attribute.""" self._link_src_state = state
def set_list_dst_endpoints(self, endpoints)
-
Function to set list_dst_endpoints attribute.
Expand source code
def set_list_dst_endpoints(self, endpoints): """Function to set list_dst_endpoints attribute.""" self._list_dst_endpoints = endpoints
def set_list_dst_rcsites(self, dst_rcsites)
-
Function to set list_dst_rcsites attribute.
Expand source code
def set_list_dst_rcsites(self, dst_rcsites): """Function to set list_dst_rcsites attribute.""" self._list_dst_rcsites = dst_rcsites
def set_list_src_endpoints(self, endpoints)
-
Function to set list_src_endpoints attribute.
Expand source code
def set_list_src_endpoints(self, endpoints): """Function to set list_src_endpoints attribute.""" self._list_src_endpoints = endpoints
def set_list_src_rcsites(self, src_rcsites)
-
Function to set list_src_rcsites attribute.
Expand source code
def set_list_src_rcsites(self, src_rcsites): """Function to set list_src_rcsites attribute.""" self._list_src_rcsites = src_rcsites
def set_max_throughput(self, threshold)
-
Function to set max_throughput attribute.
Expand source code
def set_max_throughput(self, threshold): """Function to set max_throughput attribute.""" self._max_throughput = threshold
def set_min_throughput(self, threshold)
-
Function to set min_throughput attribute.
Expand source code
def set_min_throughput(self, threshold): """Function to set min_throughput attribute.""" self._min_throughput = threshold
def set_num_circuits(self, circuits)
-
Function to set num_circuits attribute.
Expand source code
def set_num_circuits(self, circuits): """Function to set num_circuits attribute.""" self._num_circuits = circuits
def set_sense_uuid(self, uuid)
-
Function to set sense_uuid attribute.
Expand source code
def set_sense_uuid(self, uuid): """Function to set sense_uuid attribute.""" self._sense_uuid = uuid
def set_sense_uuid_2(self, uuid)
-
Function to set sense_uuid_2 attribute.
Expand source code
def set_sense_uuid_2(self, uuid): """Function to set sense_uuid_2 attribute.""" self._sense_uuid_2 = uuid
def set_sense_vlan(self, vlan)
-
Function to set sense_vlan attribute.
Expand source code
def set_sense_vlan(self, vlan): """Function to set sense_vlan attribute.""" self._sense_vlan = vlan
def set_sense_vlan_2(self, vlan)
-
Function to set sense_vlan_2 attribute.
Expand source code
def set_sense_vlan_2(self, vlan): """Function to set sense_vlan_2 attribute.""" self._sense_vlan_2 = vlan
def set_unidirectional(self, unidir)
-
Function to set unidirectional attribute.
Expand source code
def set_unidirectional(self, unidir): """Function to set unidirectional attribute.""" self._unidirectional = unidir