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
5696254239b649a49c6155a618f7b54a928c786f...173024e6f7df8b86da9f43fc15d428267a5f378d
Hide whitespace changes
Inline
Side-by-side
Some changes are not shown.
For a faster browsing experience, only
20 of 1000+
files are shown. Download one of the files below to see all changes.
deploy/nats.sh
View file @
173024e6
#!/bin/bash
#!/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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
deploy/qdb.sh
View file @
173024e6
#!/bin/bash
#!/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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -160,10 +160,17 @@ function qdb_undeploy() {
...
@@ -160,10 +160,17 @@ function qdb_undeploy() {
}
}
function
qdb_drop_tables
()
{
function
qdb_drop_tables
()
{
QDB_HOST
=
$(
kubectl
--namespace
${
QDB_NAMESPACE
}
get service questdb-public
-o
'jsonpath={.spec.clusterIP}'
)
QDB_PORT
=
$(
kubectl
--namespace
${
QDB_NAMESPACE
}
get service questdb-public
-o
'jsonpath={.spec.ports[?(@.name=="http")].port}'
)
echo
"Drop tables, if exist"
echo
"Drop tables, if exist"
if
[[
-z
"
${
GITLAB_CI
}
"
]]
;
then
#kubectl --namespace ${QDB_NAMESPACE} get service questdb-public -o yaml
QDB_HOST
=
$(
kubectl
--namespace
${
QDB_NAMESPACE
}
get service questdb-public
-o
'jsonpath={.spec.clusterIP}'
)
QDB_PORT
=
$(
kubectl
--namespace
${
QDB_NAMESPACE
}
get service questdb-public
-o
'jsonpath={.spec.ports[?(@.name=="http")].port}'
)
else
QDB_HOST
=
"127.0.0.1"
QDB_PORT
=
${
QDB_EXT_PORT_HTTP
}
fi
curl
"http://
${
QDB_HOST
}
:
${
QDB_PORT
}
/exec?fmt=json&query=DROP+TABLE+IF+EXISTS+
${
QDB_TABLE_MONITORING_KPIS
}
+;"
curl
"http://
${
QDB_HOST
}
:
${
QDB_PORT
}
/exec?fmt=json&query=DROP+TABLE+IF+EXISTS+
${
QDB_TABLE_MONITORING_KPIS
}
+;"
echo
echo
curl
"http://
${
QDB_HOST
}
:
${
QDB_PORT
}
/exec?fmt=json&query=DROP+TABLE+IF+EXISTS+
${
QDB_TABLE_SLICE_GROUPS
}
+;"
curl
"http://
${
QDB_HOST
}
:
${
QDB_PORT
}
/exec?fmt=json&query=DROP+TABLE+IF+EXISTS+
${
QDB_TABLE_SLICE_GROUPS
}
+;"
...
...
deploy/show.sh
View file @
173024e6
#!/bin/bash
#!/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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
deploy/tfs.sh
View file @
173024e6
#!/bin/bash
#!/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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -299,8 +299,13 @@ for COMPONENT in $TFS_COMPONENTS; do
...
@@ -299,8 +299,13 @@ for COMPONENT in $TFS_COMPONENTS; do
VERSION
=
$(
grep
-i
"
${
GITLAB_REPO_URL
}
/
${
COMPONENT
}
-gateway:"
"
$MANIFEST
"
|
cut
-d
":"
-f4
)
VERSION
=
$(
grep
-i
"
${
GITLAB_REPO_URL
}
/
${
COMPONENT
}
-gateway:"
"
$MANIFEST
"
|
cut
-d
":"
-f4
)
sed
-E
-i
"s#image:
$GITLAB_REPO_URL
/
$COMPONENT
-gateway:
${
VERSION
}
#image:
$IMAGE_URL
#g"
"
$MANIFEST
"
sed
-E
-i
"s#image:
$GITLAB_REPO_URL
/
$COMPONENT
-gateway:
${
VERSION
}
#image:
$IMAGE_URL
#g"
"
$MANIFEST
"
else
else
IMAGE_URL
=
$(
echo
"
$TFS_REGISTRY_IMAGES
/
$COMPONENT
:
$TFS_IMAGE_TAG
"
|
sed
's,//,/,g'
|
sed
's,http:/,,g'
)
if
[
"
$TFS_SKIP_BUILD
"
!=
"YES"
]
;
then
VERSION
=
$(
grep
-i
"
${
GITLAB_REPO_URL
}
/
${
COMPONENT
}
:"
"
$MANIFEST
"
|
cut
-d
":"
-f4
)
IMAGE_URL
=
$(
echo
"
$TFS_REGISTRY_IMAGES
/
$COMPONENT
:
$TFS_IMAGE_TAG
"
|
sed
's,//,/,g'
|
sed
's,http:/,,g'
)
VERSION
=
$(
grep
-i
"
${
GITLAB_REPO_URL
}
/
${
COMPONENT
}
:"
"
$MANIFEST
"
|
cut
-d
":"
-f4
)
else
VERSION
=
$(
grep
-i
"
${
GITLAB_REPO_URL
}
/
${
COMPONENT
}
:"
"
$MANIFEST
"
|
cut
-d
":"
-f4
)
IMAGE_URL
=
$(
echo
"
$TFS_REGISTRY_IMAGES
/
$COMPONENT
:
$VERSION
"
|
sed
's,//,/,g'
|
sed
's,http:/,,g'
)
fi
sed
-E
-i
"s#image:
$GITLAB_REPO_URL
/
$COMPONENT
:
${
VERSION
}
#image:
$IMAGE_URL
#g"
"
$MANIFEST
"
sed
-E
-i
"s#image:
$GITLAB_REPO_URL
/
$COMPONENT
:
${
VERSION
}
#image:
$IMAGE_URL
#g"
"
$MANIFEST
"
fi
fi
...
@@ -364,7 +369,13 @@ for COMPONENT in $TFS_COMPONENTS; do
...
@@ -364,7 +369,13 @@ for COMPONENT in $TFS_COMPONENTS; do
echo
"Waiting for '
$COMPONENT
' component..."
echo
"Waiting for '
$COMPONENT
' component..."
COMPONENT_OBJNAME
=
$(
echo
"
${
COMPONENT
}
"
|
sed
"s/
\_
/-/"
)
COMPONENT_OBJNAME
=
$(
echo
"
${
COMPONENT
}
"
|
sed
"s/
\_
/-/"
)
kubectl
wait
--namespace
$TFS_K8S_NAMESPACE
\
kubectl
wait
--namespace
$TFS_K8S_NAMESPACE
\
--for
=
'condition=available'
--timeout
=
300s deployment/
${
COMPONENT_OBJNAME
}
service
--for
=
'condition=available'
--timeout
=
90s deployment/
${
COMPONENT_OBJNAME
}
service
WAIT_EXIT_CODE
=
$?
if
[[
$WAIT_EXIT_CODE
!=
0
]]
;
then
echo
" Failed to deploy '
${
COMPONENT
}
' component, exit code '
${
WAIT_EXIT_CODE
}
', exiting..."
kubectl logs
--namespace
$TFS_K8S_NAMESPACE
deployment/
${
COMPONENT_OBJNAME
}
service
--all-containers
=
true
exit
$WAIT_EXIT_CODE
fi
printf
"
\n
"
printf
"
\n
"
done
done
...
...
hackfest/containerlab/tfs-scenario.clab.yml
View file @
173024e6
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
hackfest/gnmi/srlinux.clab.yml
View file @
173024e6
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
hackfest/grpc/connection.proto
View file @
173024e6
// 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");
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// you may not use this file except in compliance with the License.
...
...
hackfest/grpc/connection/create.py
View file @
173024e6
#! /usr/bin/env python3
#! /usr/bin/env python3
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
hackfest/grpc/connection/list.py
View file @
173024e6
#! /usr/bin/env python3
#! /usr/bin/env python3
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
hackfest/grpc/connectionService.proto
View file @
173024e6
// 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");
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// you may not use this file except in compliance with the License.
...
...
hackfest/grpc/connectionService/connectionService_client.py
View file @
173024e6
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
hackfest/grpc/connectionService/connectionService_server.py
View file @
173024e6
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
hackfest/grpc/connectionServiceWithNotif.proto
View file @
173024e6
// 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");
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// you may not use this file except in compliance with the License.
...
...
hackfest/grpc/connectionServiceWithNotif/connectionServiceWithNotif_client.py
View file @
173024e6
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
hackfest/grpc/connectionServiceWithNotif/connectionServiceWithNotif_server.py
View file @
173024e6
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
hackfest/grpc/topologyService.proto
View file @
173024e6
// 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");
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// you may not use this file except in compliance with the License.
...
...
hackfest/grpc/topologyService/topologyService_client.py
View file @
173024e6
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
hackfest/grpc/topologyService/topologyService_server.py
View file @
173024e6
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
hackfest/kafka/pub.py
View file @
173024e6
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
hackfest/kafka/sub.py
View file @
173024e6
# 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");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
Prev
1
2
3
4
5
6
…
50
Next