Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
TFS
controller
Compare revisions
8cd8e0d960c7d0ed2e8e6a1c9aa0faddd397f02c...6c4ef63c949dafdaf42da6b0a121983820e0c3f8
Hide whitespace changes
Inline
Side-by-side
Some changes are not shown.
For a faster browsing experience, only
20 of 406+
files are shown. Download one of the files below to see all changes.
proto/policy_condition.proto
View file @
6c4ef63c
// Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
// Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
...
...
proto/service.proto
View file @
6c4ef63c
// Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
// Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
...
...
proto/slice.proto
View file @
6c4ef63c
// Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
// Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
...
...
proto/src/erlang/rebar.config
View file @
6c4ef63c
%
Copyright
2022
-
202
3
ETSI
TeraFlowSDN
-
TFS
OSG
(
https
://
tfs
.
etsi
.
org
/)
%
Copyright
2022
-
202
4
ETSI
OSG
/
SDG
TeraFlowSDN
(
TFS
)
(
https
://
tfs
.
etsi
.
org
/)
%
%
Licensed
under
the
Apache
License
,
Version
2
.
0
(
the
"License"
);
%
you
may
not
use
this
file
except
in
compliance
with
the
License
.
...
...
proto/src/erlang/src/tfpb.app.src
View file @
6c4ef63c
%% Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
%% Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
...
...
proto/src/python/__init__.py
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
proto/src/python/asyncio/__init__.py
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
proto/te.proto
View file @
6c4ef63c
// Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
// Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
...
...
proto/ztp.proto
0 → 100644
View file @
6c4ef63c
// Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax
=
"proto3"
;
package
ztp
;
import
"context.proto"
;
service
ZtpService
{
rpc
ZtpGetDeviceRole
(
DeviceRoleId
)
returns
(
DeviceRole
)
{}
rpc
ZtpGetDeviceRolesByDeviceId
(
context.DeviceId
)
returns
(
DeviceRoleList
)
{}
rpc
ZtpAdd
(
DeviceRole
)
returns
(
DeviceRoleState
)
{}
rpc
ZtpUpdate
(
DeviceRoleConfig
)
returns
(
DeviceRoleState
)
{}
rpc
ZtpDelete
(
DeviceRole
)
returns
(
DeviceRoleState
)
{}
rpc
ZtpDeleteAll
(
context.Empty
)
returns
(
DeviceDeletionResult
)
{}
}
enum
DeviceRoleType
{
NONE
=
0
;
DEV_OPS
=
1
;
DEV_CONF
=
2
;
PIPELINE_CONF
=
3
;
}
message
DeviceRoleId
{
context.Uuid
devRoleId
=
1
;
context.DeviceId
devId
=
2
;
}
message
DeviceRole
{
DeviceRoleId
devRoleId
=
1
;
DeviceRoleType
devRoleType
=
2
;
}
message
DeviceRoleConfig
{
DeviceRole
devRole
=
1
;
context.DeviceConfig
devConfig
=
2
;
}
message
DeviceRoleList
{
repeated
DeviceRole
devRole
=
1
;
}
message
DeviceRoleState
{
DeviceRoleId
devRoleId
=
1
;
ZtpDeviceState
devRoleState
=
2
;
}
message
DeviceDeletionResult
{
repeated
string
deleted
=
1
;
}
enum
ZtpDeviceState
{
ZTP_DEV_STATE_UNDEFINED
=
0
;
ZTP_DEV_STATE_CREATED
=
1
;
ZTP_DEV_STATE_UPDATED
=
2
;
ZTP_DEV_STATE_DELETED
=
3
;
}
scripts/add_license_header_to_files.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -16,7 +16,7 @@
docker pull ghcr.io/google/addlicense:latest
docker run
-it
-v
${
PWD
}
:/src ghcr.io/google/addlicense
\
-l
apache
-c
"
H2020 TeraFlow (https://www.teraflow-h2020.eu
/)"
-y
202
1
-202
3
\
-l
apache
-c
"
ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org
/)"
-y
202
2
-202
4
\
-ignore
"data/*"
-ignore
"data/**"
-ignore
"tmp/*"
-ignore
"tmp/**"
-ignore
"manifests/cttc-ols/*"
\
-ignore
"coverage/*"
-ignore
"coverage/**"
-ignore
".vscode/*"
-ignore
".vscode/**"
\
-ignore
".git/*"
-ignore
".git/**"
-ignore
"proto/uml/*"
-ignore
"proto/uml/**"
\
...
...
@@ -25,6 +25,21 @@ docker run -it -v ${PWD}:/src ghcr.io/google/addlicense \
-ignore
"src/.pytest_cache/*"
-ignore
"src/.pytest_cache/**"
-ignore
".pytest_cache/*"
-ignore
".pytest_cache/**"
\
-ignore
"src/**/target/generated-sources/grpc/*"
-ignore
"src/**/target/generated-sources/grpc/**"
\
-ignore
"src/**/*_pb2.py"
-ignore
"src/**/*_pb2_grpc.py"
\
-ignore
"src/device/service/drivers/gnmi_openconfig/gnmi/*.proto"
\
-ignore
"src/device/service/drivers/openconfig/templates/**/*.xml"
\
-ignore
"src/device/service/drivers/openconfig/templates/ACL/openconfig_acl.py"
\
-ignore
"src/device/service/drivers/openconfig/templates/VPN/openconfig_interfaces.py"
\
-ignore
"src/device/service/drivers/openconfig/templates/VPN/openconfig_network_instance.py"
\
-ignore
"src/device/service/drivers/openconfig/templates/VPN/openconfig_routing_policy.py"
\
-ignore
"src/nbi/service/rest_server/nbi_plugins/ietf_network/bindings/**/*.py"
\
-ignore
"src/policy/target/kubernetes/kubernetes.yml"
\
-ignore
"src/ztp/target/kubernetes/kubernetes.yml"
\
-ignore
"src/**/.mvn/*"
-ignore
"src/**/.mvn/**"
\
-ignore
"hackfest/**/*_pb2.py"
-ignore
"hackfest/**/*_pb2_grpc.py"
\
-ignore
"hackfest/netconf/**/binding_*.py"
-ignore
"hackfest/netconf/**/binding_*.py"
\
-ignore
"hackfest/yang/**/binding_*.py"
-ignore
"hackfest/yang/**/binding_*.py"
\
-ignore
"hackfest/netconf-oc/openconfig/*"
-ignore
"hackfest/netconf-oc/openconfig/**"
\
-ignore
"hackfest/restconf/connectionserver/*"
-ignore
"hackfest/restconf/connectionserver/**"
\
-ignore
"hackfest/restconf/topologyserver/*"
-ignore
"hackfest/restconf/topologyserver/**"
\
-ignore
"hackfest/tapi/server/*"
-ignore
"hackfest/tapi/server/**"
\
*
scripts/build_run_report_tests_locally.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/cockroachdb_client.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/create_component.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/dump_logs.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
expose_ingress_grpc.sh
→
scripts/
expose_ingress_grpc.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -21,7 +21,7 @@
export
TFS_K8S_NAMESPACE
=
${
TFS_K8S_NAMESPACE
:-
"tfs"
}
# If not already set, set the list of components you want to build images for, and deploy.
export
TFS_COMPONENTS
=
${
TFS_COMPONENTS
:-
"context device
automation
policy service
compute
monitoring dbscanserving opticalattackmitigator opticalcentralizedattackdetector l3_attackmitigator l3_centralizedattackdetector webui"
}
export
TFS_COMPONENTS
=
${
TFS_COMPONENTS
:-
"context device
ztp
policy service
nbi
monitoring dbscanserving opticalattackmitigator opticalcentralizedattackdetector l3_attackmitigator l3_centralizedattackdetector webui"
}
########################################################################################################################
# Automated steps start here
...
...
scripts/old/configure_dashboards_in_kubernetes.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/old/deploy_in_kubernetes.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -24,7 +24,7 @@ export REGISTRY_IMAGE=${REGISTRY_IMAGE:-""}
#export REGISTRY_IMAGE="http://my-container-registry.local/"
# If not already set, set the list of components you want to build images for, and deploy.
export
COMPONENTS
=
${
COMPONENTS
:-
"context device
automation
policy service
compute
monitoring dbscanserving opticalattackmitigator opticalcentralizedattackdetector webui"
}
export
COMPONENTS
=
${
COMPONENTS
:-
"context device
ztp
policy service
nbi
monitoring dbscanserving opticalattackmitigator opticalcentralizedattackdetector webui"
}
# If not already set, set the tag you want to use for your images.
export
IMAGE_TAG
=
${
IMAGE_TAG
:-
"tf-dev"
}
...
...
@@ -78,7 +78,7 @@ for COMPONENT in $COMPONENTS; do
echo
" Building Docker image..."
BUILD_LOG
=
"
$TMP_LOGS_FOLDER
/build_
${
COMPONENT
}
.log"
if
[
"
$COMPONENT
"
==
"
automation
"
]
||
[
"
$COMPONENT
"
==
"policy"
]
;
then
if
[
"
$COMPONENT
"
==
"
ztp
"
]
||
[
"
$COMPONENT
"
==
"policy"
]
;
then
docker build
-t
"
$IMAGE_NAME
"
-f
./src/
"
$COMPONENT
"
/Dockerfile ./src/
"
$COMPONENT
"
/
>
"
$BUILD_LOG
"
else
docker build
-t
"
$IMAGE_NAME
"
-f
./src/
"
$COMPONENT
"
/Dockerfile
.
>
"
$BUILD_LOG
"
...
...
scripts/old/open_dashboard.sh
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/old/open_webui.sh
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
scripts/report_coverage_all.sh
View file @
6c4ef63c
#!/bin/bash
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
Prev
1
…
5
6
7
8
9
10
11
12
13
…
21
Next