Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
26bdc8fc
Commit
26bdc8fc
authored
1 year ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Pre-merge code cleanup and header fixing.
parent
9aacece9
No related branches found
No related tags found
2 merge requests
!142
Release TeraFlowSDN 2.1
,
!128
Fixes on L3 Cybersecurity components
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/l3_centralizedattackdetector/service/l3_centralizedattackdetectorServiceServicerImpl.py
+9
-16
9 additions, 16 deletions
...ervice/l3_centralizedattackdetectorServiceServicerImpl.py
with
9 additions
and
16 deletions
src/l3_centralizedattackdetector/service/l3_centralizedattackdetectorServiceServicerImpl.py
+
9
−
16
View file @
26bdc8fc
...
...
@@ -13,33 +13,26 @@
# limitations under the License.
from
__future__
import
print_function
from
datetime
import
datetime
from
datetime
import
timedelta
from
datetime
import
datetime
,
timedelta
import
csv
import
os
import
numpy
as
np
import
onnxruntime
as
rt
import
logging
import
time
import
uuid
from
common.method_wrappers.Decorator
import
MetricsPool
,
safe_and_metered_rpc_method
from
common.proto.context_pb2
import
Timestamp
,
SliceId
,
ConnectionId
from
common.proto.kpi_sample_types_pb2
import
KpiSampleType
from
common.proto.l3_attackmitigator_pb2
import
L3AttackmitigatorOutput
from
common.proto.l3_centralizedattackdetector_pb2
import
Empty
,
AutoFeatures
from
common.proto.l3_centralizedattackdetector_pb2_grpc
import
L3CentralizedattackdetectorServicer
from
common.proto.l3_attackmitigator_pb2
import
L3AttackmitigatorOutput
from
common.proto.monitoring_pb2
import
KpiDescriptor
from
common.proto.kpi_sample_types_pb2
import
KpiSampleType
from
monitoring.client.MonitoringClient
import
MonitoringClient
from
common.proto.monitoring_pb2
import
Kpi
from
common.proto.monitoring_pb2
import
Kpi
,
KpiDescriptor
from
common.tools.timestamp.Converters
import
timestamp_utcnow_to_float
from
common.proto.context_pb2
import
Timestamp
,
SliceId
,
ConnectionId
from
monitoring.client.MonitoringClient
import
MonitoringClient
from
l3_attackmitigator.client.l3_attackmitigatorClient
import
l3_attackmitigatorClient
import
uuid
from
common.method_wrappers.Decorator
import
MetricsPool
,
safe_and_metered_rpc_method
import
csv
LOGGER
=
logging
.
getLogger
(
__name__
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment