Skip to content
Snippets Groups Projects
Commit 810a5a8e authored by Pablo Armingol's avatar Pablo Armingol
Browse files

fix nbi/tfs-api call

parent 51a66b0c
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!252Resolve "(TID) Add support to NBI to export the L3 inventory"
...@@ -323,3 +323,7 @@ class PolicyRules(_Resource): ...@@ -323,3 +323,7 @@ class PolicyRules(_Resource):
class PolicyRule(_Resource): class PolicyRule(_Resource):
def get(self, policy_rule_uuid : str): def get(self, policy_rule_uuid : str):
return format_grpc_to_json(self.context_client.GetPolicyRule(grpc_policy_rule_id(policy_rule_uuid))) return format_grpc_to_json(self.context_client.GetPolicyRule(grpc_policy_rule_id(policy_rule_uuid)))
class Networks(_Resource):
def get(self, context_uuid : str):
return format_grpc_to_json(self.context_client.ListTopologies(grpc_context_id(context_uuid)))
...@@ -22,7 +22,8 @@ from .Resources import ( ...@@ -22,7 +22,8 @@ from .Resources import (
PolicyRule, PolicyRuleIds, PolicyRules, PolicyRule, PolicyRuleIds, PolicyRules,
Service, ServiceIds, Services, Service, ServiceIds, Services,
Slice, SliceIds, Slices, Slice, SliceIds, Slices,
Topologies, Topology, TopologyIds Topologies, Topology, TopologyIds,
Networks
) )
URL_PREFIX = '/tfs-api' URL_PREFIX = '/tfs-api'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment