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
f1931d1c
Commit
f1931d1c
authored
1 year ago
by
famelis
Browse files
Options
Downloads
Patches
Plain Diff
feat: initial commit for hackfest no.3
parent
cf0e8f1e
No related branches found
No related tags found
2 merge requests
!235
Release TeraFlowSDN 3.0
,
!164
Merge 3rd hackfest material to develop
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
my_deploy.sh
+10
-7
10 additions, 7 deletions
my_deploy.sh
src/device/service/drivers/p4/p4_driver.py
+1
-0
1 addition, 0 deletions
src/device/service/drivers/p4/p4_driver.py
test.sh
+36
-0
36 additions, 0 deletions
test.sh
with
47 additions
and
7 deletions
my_deploy.sh
+
10
−
7
View file @
f1931d1c
...
...
@@ -23,10 +23,13 @@ export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/"
export
TFS_COMPONENTS
=
"context device pathcomp service slice compute webui load_generator"
# Uncomment to activate Monitoring
#
export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"
export
TFS_COMPONENTS
=
"
${
TFS_COMPONENTS
}
monitoring"
# Uncomment to activate Automation and Policy Manager
#export TFS_COMPONENTS="${TFS_COMPONENTS} automation policy"
# Uncomment to activate Policy Manager
export
TFS_COMPONENTS
=
"
${
TFS_COMPONENTS
}
policy"
# Uncomment to activate Automation Manager
export
TFS_COMPONENTS
=
"
${
TFS_COMPONENTS
}
automation"
# Uncomment to activate Optical CyberSecurity
#export TFS_COMPONENTS="${TFS_COMPONENTS} dbscanserving opticalattackmitigator opticalattackdetector opticalattackmanager"
...
...
@@ -84,10 +87,10 @@ export CRDB_DATABASE="tfs"
export
CRDB_DEPLOY_MODE
=
"single"
# Disable flag for dropping database, if it exists.
export
CRDB_DROP_DATABASE_IF_EXISTS
=
""
export
CRDB_DROP_DATABASE_IF_EXISTS
=
"
YES
"
# Disable flag for re-deploying CockroachDB from scratch.
export
CRDB_REDEPLOY
=
""
export
CRDB_REDEPLOY
=
"
YES
"
# ----- NATS -------------------------------------------------------------------
...
...
@@ -102,7 +105,7 @@ export NATS_EXT_PORT_CLIENT="4222"
export
NATS_EXT_PORT_HTTP
=
"8222"
# Disable flag for re-deploying NATS from scratch.
export
NATS_REDEPLOY
=
""
export
NATS_REDEPLOY
=
"
YES
"
# ----- QuestDB ----------------------------------------------------------------
...
...
@@ -135,7 +138,7 @@ export QDB_TABLE_SLICE_GROUPS="tfs_slice_groups"
export
QDB_DROP_TABLES_IF_EXIST
=
""
# Disable flag for re-deploying QuestDB from scratch.
export
QDB_REDEPLOY
=
""
export
QDB_REDEPLOY
=
"
YES
"
# ----- K8s Observability ------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
src/device/service/drivers/p4/p4_driver.py
+
1
−
0
View file @
f1931d1c
...
...
@@ -82,6 +82,7 @@ class P4Driver(_Driver):
self
.
__settings
=
settings
self
.
__id
=
None
self
.
__name
=
DRIVER_NAME
self
.
_name
=
None
self
.
__vendor
=
P4_VAL_DEF_VENDOR
self
.
__hw_version
=
P4_VAL_DEF_HW_VER
self
.
__sw_version
=
P4_VAL_DEF_SW_VER
...
...
This diff is collapsed.
Click to expand it.
test.sh
0 → 100644
+
36
−
0
View file @
f1931d1c
#-----------------------------------
# ----- TeraFlowSDN ------------------------------------------------------------
export
TFS_REGISTRY_IMAGES
=
"http://localhost:32000/tfs/"
export
TFS_COMPONENTS
=
"context device automation monitoring pathcomp service slice compute webui load_generator"
export
TFS_IMAGE_TAG
=
"dev"
export
TFS_K8S_NAMESPACE
=
"tfs"
export
TFS_EXTRA_MANIFESTS
=
"manifests/nginx_ingress_http.yaml"
export
TFS_GRAFANA_PASSWORD
=
"admin123+"
export
TFS_SKIP_BUILD
=
""
# ----- CockroachDB ------------------------------------------------------------
export
CRDB_NAMESPACE
=
"crdb"
export
CRDB_EXT_PORT_SQL
=
"26257"
export
CRDB_EXT_PORT_HTTP
=
"8081"
export
CRDB_USERNAME
=
"tfs"
export
CRDB_PASSWORD
=
"tfs123"
export
CRDB_DATABASE
=
"tfs"
export
CRDB_DEPLOY_MODE
=
"single"
export
CRDB_DROP_DATABASE_IF_EXISTS
=
"YES"
export
CRDB_REDEPLOY
=
"YES"
# ----- NATS -------------------------------------------------------------------
export
NATS_NAMESPACE
=
"nats"
export
NATS_EXT_PORT_CLIENT
=
"4222"
export
NATS_EXT_PORT_HTTP
=
"8222"
export
NATS_REDEPLOY
=
"YES"
# ----- QuestDB ----------------------------------------------------------------
export
QDB_NAMESPACE
=
"qdb"
export
QDB_EXT_PORT_SQL
=
"8812"
export
QDB_EXT_PORT_ILP
=
"9009"
export
QDB_EXT_PORT_HTTP
=
"9000"
export
QDB_USERNAME
=
"admin"
export
QDB_PASSWORD
=
"quest"
export
QDB_TABLE_MONITORING_KPIS
=
"tfs_monitoring_kpis"
export
QDB_TABLE_SLICE_GROUPS
=
"tfs_slice_groups"
export
QDB_DROP_TABLES_IF_EXIST
=
"YES"
export
QDB_REDEPLOY
=
"YES"
#------------------------------------------------------------
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