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

Method CommandAdd

core/modules/exact_match.cc:273–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273CommandResponse ExactMatch::CommandAdd(
274 const bess::pb::ExactMatchCommandAddArg &arg) {
275 Error ret = AddRule(arg);
276 if (ret.first) {
277 return CommandFailure(ret.first, "%s", ret.second.c_str());
278 }
279
280 return CommandSuccess();
281}
282
283CommandResponse ExactMatch::CommandDelete(
284 const bess::pb::ExactMatchCommandDeleteArg &arg) {

Callers

nothing calls this directly

Calls 2

CommandFailureFunction · 0.85
CommandSuccessFunction · 0.85

Tested by

no test coverage detected