tc_custom module

This module is part of the nmeta suite running on top of Ryu SDN controller to provide network identity and flow (traffic classification) metadata

class tc_custom.CustomInspect(config)

Bases: baseclass.BaseClass

This class is instantiated by policy.py and provides methods to run custom traffic classification modules

check_custom(classifier_result, flow, ident)

Passed TCClassifierResult, Flow.Packet and Identities class objects. Call the named custom classifier with these values so that it can update the classifier_result match as appropriate.

instantiate_classifiers(custom_list)

Dynamically import and instantiate classes for any custom classifiers specified in the controller nmeta2 main_policy.yaml

Passed a deduplicated list of custom classifier names (without .py) to load.

Classifier modules live in the ‘custom_classifiers’ subdirectory