Debugging - nihole/PSEFABRIC GitHub Wiki

There is a powerful debugging mechanism in this PSEFABRIC implementation. You may examine all essential internal data exchange. If debugging is on this information is saved in the folder $PSEFABRIC/PSEF_LOGS/.

For ease of reading, they will be saved in json format.

You may turn it on/off in $PSEFABRIC/PSEF_SCRIPTS/psef_debug.py

deb = True # globally turns on/off the debugging 

# tuns on/off the debugging per element

debug   = {}
debug['psef_conf_new'] = True
debug['psef_conf_old'] = True
debug['psef_conf_policy_full_new'] = True
debug['psef_conf_policy_full_old'] = True
debug['address_full_new'] = True
debug['address_full_old'] = True
debug['address_set_full_new'] = True
debug['address_set_full_old'] = True
debug['address_set_index_new'] = True
debug['address_set_index_old'] = True
debug['service_full_new'] = True
debug['service_full_old'] = True
debug['service_set_full_new'] = True
debug['service_set_full_old'] = True
debug['application_full_new'] = True
debug['application_full_old'] = True
debug['application_set_full_new'] = True
debug['application_set_full_old'] = True
debug['policy_index'] = True
debug['policy_index_full'] = True
debug['ddiff'] = True
debug['diff_dict_full'] = True
debug['cmd_for_host_diff'] = True
debug['cmd_for_host_full'] = True
debug['cfg'] = True
debug['cmd_for_host_mult'] = True

Data exchange scheme of PMDFM (see Detailed implementation) shows the place of each examined dictionary in the process of managing data flow in PSEFABRIC.