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
a65301c9
Commit
a65301c9
authored
1 month ago
by
Shayan Hajipour
Browse files
Options
Downloads
Patches
Plain Diff
comments added to ietf slice driver
parent
aa6b1af6
No related branches found
Branches containing commit
No related tags found
1 merge request
!305
Resolve "(CTTC) Driver required to interact with IETF Slice Compliant Controller"
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/device/service/drivers/ietf_slice/tfs_slice_nbi_client.py
+3
-0
3 additions, 0 deletions
...device/service/drivers/ietf_slice/tfs_slice_nbi_client.py
with
3 additions
and
0 deletions
src/device/service/drivers/ietf_slice/tfs_slice_nbi_client.py
+
3
−
0
View file @
a65301c9
...
...
@@ -47,6 +47,7 @@ class TfsApiClient:
url
=
self
.
_slice_url
+
"
:network-slice-services
"
try
:
requests
.
post
(
url
,
json
=
slice_data
,
headers
=
HEADERS
)
LOGGER
.
info
(
f
"
IETF Slice Post to
{
url
}
:
{
slice_data
}
"
)
except
requests
.
exceptions
.
ConnectionError
:
raise
Exception
(
"
faild to send post request to TFS IETF Slice NBI
"
)
...
...
@@ -62,6 +63,7 @@ class TfsApiClient:
)
try
:
requests
.
put
(
url
,
json
=
updated_connection_group_data
,
headers
=
HEADERS
)
LOGGER
.
info
(
f
"
IETF Slice Put to
{
url
}
:
{
updated_connection_group_data
}
"
)
except
requests
.
exceptions
.
ConnectionError
:
raise
Exception
(
"
faild to send update request to TFS IETF Slice NBI
"
)
...
...
@@ -69,5 +71,6 @@ class TfsApiClient:
url
=
self
.
_slice_url
+
f
"
:network-slice-services/slice-service=
{
slice_name
}
"
try
:
requests
.
delete
(
url
)
LOGGER
.
info
(
f
"
IETF Slice Delete to
{
url
}
"
)
except
requests
.
exceptions
.
ConnectionError
:
raise
Exception
(
"
faild to send delete request to TFS IETF Slice NBI
"
)
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