Skip to content
Snippets Groups Projects
Commit 8be5271c authored by karamchandan's avatar karamchandan
Browse files

Fixed bugs in CAD service implementation

parent 054a39f3
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!135Fixed L3 Cybersecurity framework
......@@ -138,9 +138,11 @@ class l3_attackmitigatorServiceServicerImpl(L3AttackmitigatorServicer):
# Add the ACLRuleSet to the list of configured ACLRuleSets
self.configured_acl_config_rules.append(acl_config_rule)
LOGGER.info(service_request)
# Update the Service with the new ACL RuleSet
service_reply: ServiceId = self.service_client.UpdateService(service_request)
service_reply = self.service_client.UpdateService(service_request)
LOGGER.info(f"Service reply: {grpc_message_to_json_string(service_reply)}")
......
......@@ -174,6 +174,9 @@ class l3_centralizedattackdetectorServiceServicerImpl(L3Centralizedattackdetecto
# AM evaluation tests
self.am_notification_times = []
# List of attack connections IPs
self.attack_ips = []
# List of attack connections
self.attack_connections = []
......@@ -274,9 +277,8 @@ class l3_centralizedattackdetectorServiceServicerImpl(L3Centralizedattackdetecto
if non_empty_time_interval:
for service_id in monitor_service_ids:
LOGGER.debug("service_id: {}".format(service_id))
self.monitor_compute_l3_kpi(service_id, monitor_inference_results)
self.monitor_compute_l3_kpi()
LOGGER.debug("KPIs sent to monitoring server")
else:
LOGGER.debug("No KPIs sent to monitoring server")
......
......@@ -20,7 +20,7 @@
export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/"
# Set the list of components, separated by spaces, you want to build images for, and deploy.
export TFS_COMPONENTS="context device pathcomp service slice compute webui load_generator monitoring automation l3_attackmitigator l3_centralizedattackdetector"
export TFS_COMPONENTS="context device pathcomp service slice compute webui monitoring automation l3_attackmitigator l3_centralizedattackdetector"
# Set the tag you want to use for your images.
export TFS_IMAGE_TAG="dev"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment