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
d33c3249
Commit
d33c3249
authored
10 months ago
by
Konstantinos Poulakakis
Browse files
Options
Downloads
Patches
Plain Diff
Return an empty object.
parent
76d76870
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!238
Automation component skeleton
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/automation/service/AutomationServiceServicerImpl.py
+14
-6
14 additions, 6 deletions
src/automation/service/AutomationServiceServicerImpl.py
with
14 additions
and
6 deletions
src/automation/service/AutomationServiceServicerImpl.py
+
14
−
6
View file @
d33c3249
...
...
@@ -12,10 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
logging
,
os
,
grpc
import
grpc
,
logging
,
os
,
grpc
from
common.method_wrappers.Decorator
import
MetricsPool
,
safe_and_metered_rpc_method
from
common.method_wrappers.Decorator
import
MetricsPool
from
common.proto.automation_pb2_grpc
import
AutomationServiceServicer
from
common.proto.automation_pb2
import
(
ZSMCreateRequest
,
ZSMService
,
ZSMServiceID
,
ZSMServiceState
,
ZSMCreateUpdate
,
ZSMServiceStateEnum
)
from
common.proto.context_pb2
import
(
ServiceId
,
ContextId
,
Uuid
,
Empty
)
from
common.proto.policy_pb2
import
(
PolicyRuleList
)
LOGGER
=
logging
.
getLogger
(
__name__
)
METRICS_POOL
=
MetricsPool
(
'
Automation
'
,
'
RPC
'
)
...
...
@@ -23,22 +26,27 @@ METRICS_POOL = MetricsPool('Automation', 'RPC')
class
AutomationServiceServicerImpl
(
AutomationServiceServicer
):
@safe_and_metered_rpc_method
(
METRICS_POOL
,
LOGGER
)
def
ZSMCreate
(
self
)
->
Non
e
:
def
ZSMCreate
(
self
,
request
:
ZSMCreateRequest
,
context
:
grpc
.
ServicerContext
)
->
ZSMServic
e
:
LOGGER
.
info
(
'
NOT IMPLEMENTED ZSMCreate
'
)
return
ZSMService
()
@safe_and_metered_rpc_method
(
METRICS_POOL
,
LOGGER
)
def
ZSMUpdate
(
self
)
->
Non
e
:
def
ZSMUpdate
(
self
,
request
:
ZSMCreateUpdate
,
context
:
grpc
.
ServicerContext
)
->
ZSMServic
e
:
LOGGER
.
info
(
'
NOT IMPLEMENTED ZSMUpdate
'
)
return
ZSMService
()
@safe_and_metered_rpc_method
(
METRICS_POOL
,
LOGGER
)
def
ZSMDelete
(
self
)
->
Non
e
:
def
ZSMDelete
(
self
,
request
:
ZSMServiceID
,
context
:
grpc
.
ServicerContext
)
->
ZSMServiceStat
e
:
LOGGER
.
info
(
'
NOT IMPLEMENTED ZSMDelete
'
)
return
ZSMServiceState
()
@safe_and_metered_rpc_method
(
METRICS_POOL
,
LOGGER
)
def
ZSMGetById
(
self
)
->
Non
e
:
def
ZSMGetById
(
self
,
request
:
ZSMServiceID
,
context
:
grpc
.
ServicerContext
)
->
ZSMServic
e
:
LOGGER
.
info
(
'
NOT IMPLEMENTED ZSMGetById
'
)
return
ZSMService
()
@safe_and_metered_rpc_method
(
METRICS_POOL
,
LOGGER
)
def
ZSMGetByService
(
self
)
->
Non
e
:
def
ZSMGetByService
(
self
,
request
:
ServiceId
,
context
:
grpc
.
ServicerContext
)
->
ZSMServic
e
:
LOGGER
.
info
(
'
NOT IMPLEMENTED ZSMGetByService
'
)
return
ZSMService
()
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