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
236c7418
Commit
236c7418
authored
3 years ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Corrected genproto script for l3_centralizedattackdetector.
parent
8cb8c01b
No related branches found
No related tags found
2 merge requests
!54
Release 2.0.0
,
!42
Interdomain Component
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/l3_centralizedattackdetector/genproto.sh
+3
-0
3 additions, 0 deletions
src/l3_centralizedattackdetector/genproto.sh
src/l3_centralizedattackdetector/proto/kpi_sample_types_pb2.py
+78
-0
78 additions, 0 deletions
...3_centralizedattackdetector/proto/kpi_sample_types_pb2.py
with
81 additions
and
0 deletions
src/l3_centralizedattackdetector/genproto.sh
+
3
−
0
View file @
236c7418
...
...
@@ -37,13 +37,16 @@ tee proto/__init__.py << EOF > /dev/null
EOF
python
-m
grpc_tools.protoc
-I
../../proto
--python_out
=
proto
--grpc_python_out
=
proto context.proto
python
-m
grpc_tools.protoc
-I
../../proto
--python_out
=
proto
--grpc_python_out
=
proto kpi_sample_types.proto
python
-m
grpc_tools.protoc
-I
../../proto
--python_out
=
proto
--grpc_python_out
=
proto l3_attackmitigator.proto
python
-m
grpc_tools.protoc
-I
../../proto
--python_out
=
proto
--grpc_python_out
=
proto l3_centralizedattackdetector.proto
rm
proto/context_pb2_grpc.py
rm
proto/kpi_sample_types_pb2_grpc.py
rm
proto/l3_attackmitigator_pb2_grpc.py
sed
-i
-E
's/(import\ .*)_pb2/from . \1_pb2/g'
proto/context_pb2.py
sed
-i
-E
's/(import\ .*)_pb2/from . \1_pb2/g'
proto/kpi_sample_types_pb2.py
sed
-i
-E
's/(import\ .*)_pb2/from . \1_pb2/g'
proto/l3_centralizedattackdetector_pb2.py
sed
-i
-E
's/(import\ .*)_pb2/from . \1_pb2/g'
proto/l3_centralizedattackdetector_pb2_grpc.py
sed
-i
-E
's/(import\ .*)_pb2/from . \1_pb2/g'
proto/l3_attackmitigator_pb2.py
This diff is collapsed.
Click to expand it.
src/l3_centralizedattackdetector/proto/kpi_sample_types_pb2.py
0 → 100644
+
78
−
0
View file @
236c7418
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: kpi_sample_types.proto
"""
Generated protocol buffer code.
"""
from
google.protobuf.internal
import
enum_type_wrapper
from
google.protobuf
import
descriptor
as
_descriptor
from
google.protobuf
import
message
as
_message
from
google.protobuf
import
reflection
as
_reflection
from
google.protobuf
import
symbol_database
as
_symbol_database
# @@protoc_insertion_point(imports)
_sym_db
=
_symbol_database
.
Default
()
DESCRIPTOR
=
_descriptor
.
FileDescriptor
(
name
=
'
kpi_sample_types.proto
'
,
package
=
'
kpi_sample_types
'
,
syntax
=
'
proto3
'
,
serialized_options
=
None
,
create_key
=
_descriptor
.
_internal_create_key
,
serialized_pb
=
b
'
\n\x16
kpi_sample_types.proto
\x12\x10
kpi_sample_types*
\xbe\x01\n\r
KpiSampleType
\x12\x19\n\x15
KPISAMPLETYPE_UNKNOWN
\x10\x00\x12
%
\n
!KPISAMPLETYPE_PACKETS_TRANSMITTED
\x10\x65\x12\"\n\x1e
KPISAMPLETYPE_PACKETS_RECEIVED
\x10\x66\x12
$
\n\x1f
KPISAMPLETYPE_BYTES_TRANSMITTED
\x10\xc9\x01\x12
!
\n\x1c
KPISAMPLETYPE_BYTES_RECEIVED
\x10\xca\x01\x62\x06
proto3
'
)
_KPISAMPLETYPE
=
_descriptor
.
EnumDescriptor
(
name
=
'
KpiSampleType
'
,
full_name
=
'
kpi_sample_types.KpiSampleType
'
,
filename
=
None
,
file
=
DESCRIPTOR
,
create_key
=
_descriptor
.
_internal_create_key
,
values
=
[
_descriptor
.
EnumValueDescriptor
(
name
=
'
KPISAMPLETYPE_UNKNOWN
'
,
index
=
0
,
number
=
0
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
EnumValueDescriptor
(
name
=
'
KPISAMPLETYPE_PACKETS_TRANSMITTED
'
,
index
=
1
,
number
=
101
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
EnumValueDescriptor
(
name
=
'
KPISAMPLETYPE_PACKETS_RECEIVED
'
,
index
=
2
,
number
=
102
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
EnumValueDescriptor
(
name
=
'
KPISAMPLETYPE_BYTES_TRANSMITTED
'
,
index
=
3
,
number
=
201
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
_descriptor
.
EnumValueDescriptor
(
name
=
'
KPISAMPLETYPE_BYTES_RECEIVED
'
,
index
=
4
,
number
=
202
,
serialized_options
=
None
,
type
=
None
,
create_key
=
_descriptor
.
_internal_create_key
),
],
containing_type
=
None
,
serialized_options
=
None
,
serialized_start
=
45
,
serialized_end
=
235
,
)
_sym_db
.
RegisterEnumDescriptor
(
_KPISAMPLETYPE
)
KpiSampleType
=
enum_type_wrapper
.
EnumTypeWrapper
(
_KPISAMPLETYPE
)
KPISAMPLETYPE_UNKNOWN
=
0
KPISAMPLETYPE_PACKETS_TRANSMITTED
=
101
KPISAMPLETYPE_PACKETS_RECEIVED
=
102
KPISAMPLETYPE_BYTES_TRANSMITTED
=
201
KPISAMPLETYPE_BYTES_RECEIVED
=
202
DESCRIPTOR
.
enum_types_by_name
[
'
KpiSampleType
'
]
=
_KPISAMPLETYPE
_sym_db
.
RegisterFileDescriptor
(
DESCRIPTOR
)
# @@protoc_insertion_point(module_scope)
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