config module¶
This module is part of the nmeta suite running on top of the Ryu SDN controller to provide network identity and flow (traffic classification) metadata.
It expects a file called “config.yaml” to be in the same directory containing properly formed YAML
-
class
config.
Config
¶ Bases:
object
This class is instantiated by nmeta.py and provides methods to ingest the configuration file and provides access to the keys/values that it contains. Config file is in YAML in config subdirectory and is called ‘config.yaml’
-
get_value
(config_key)¶ Passed a key and see if it exists in the config YAML. If it does then return the value, if not return 0
-
set_value
(config_key, config_value)¶ Passed a key and see if it exists in the config YAML. If it does then set its value to the supplied value and return 1 otherwise 0
-