MCPcopy Create free account
hub / github.com/NetSys/bess / attach_task

Method attach_task

pybess/bess.py:693–708  ·  view source on GitHub ↗
(self, module_name, parent='', wid=-1,
                    module_taskid=0, priority=None, share=None)

Source from the content-addressed store, hash-verified

691 # can be used to customize the child parameter.
692 #
693 def attach_task(self, module_name, parent='', wid=-1,
694 module_taskid=0, priority=None, share=None):
695 request = bess_msg.UpdateTcParentRequest()
696 class_ = getattr(request, 'class')
697 class_.leaf_module_name = module_name
698 class_.leaf_module_taskid = module_taskid
699 class_.parent = parent
700 class_.wid = wid
701
702 if priority is not None:
703 class_.priority = priority
704
705 if share is not None:
706 class_.share = share
707
708 return self._request('UpdateTcParent', request)
709
710 # Deprecated alias for attach_task
711 def attach_module(self, *args, **kwargs):

Callers 8

attach_moduleMethod · 0.95
test_drr_singleMethod · 0.45
test_drr_batchMethod · 0.45
_fairness_n_flow_testMethod · 0.45
test_queueMethod · 0.45
test_nat_negativeMethod · 0.45

Calls 1

_requestMethod · 0.95

Tested by 6

test_drr_singleMethod · 0.36
test_drr_batchMethod · 0.36
test_queueMethod · 0.36
test_nat_negativeMethod · 0.36