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

Method DisconnectModule

core/module_graph.cc:342–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342int ModuleGraph::DisconnectModule(Module *module, gate_idx_t ogate_idx) {
343 if (ogate_idx >= module->module_builder()->NumOGates()) {
344 return -EINVAL;
345 }
346
347 changes_made_ = true;
348
349 module->DisconnectGate(ogate_idx);
350
351 return 0;
352}
353
354std::string ModuleGraph::GenerateDefaultName(
355 const std::string &class_name, const std::string &default_template) {

Callers

nothing calls this directly

Calls 3

NumOGatesMethod · 0.80
module_builderMethod · 0.80
DisconnectGateMethod · 0.80

Tested by

no test coverage detected