Skip to content
Snippets Groups Projects
Commit 27ec6035 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

NBI component:

- Updated service endpoint settings custom resource key to /device/endpoint/settings
- Corrected test files
parent 022cd29d
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!199Resolve "(CTTC) Implement Service Handler for L3 services using ACTN SBI driver"
...@@ -91,8 +91,10 @@ def update_service_endpoint( ...@@ -91,8 +91,10 @@ def update_service_endpoint(
for (ip_range, ip_prefix_len, lan_tag), next_hop in static_routing.items() for (ip_range, ip_prefix_len, lan_tag), next_hop in static_routing.items()
}) })
ENDPOINT_SETTINGS_KEY = '/device[{:s}]/endpoint[{:s}]/vlan[{:d}]/settings' #ENDPOINT_SETTINGS_KEY = '/device[{:s}]/endpoint[{:s}]/vlan[{:d}]/settings'
endpoint_settings_key = ENDPOINT_SETTINGS_KEY.format(device_uuid, endpoint_uuid, vlan_tag) #endpoint_settings_key = ENDPOINT_SETTINGS_KEY.format(device_uuid, endpoint_uuid, vlan_tag)
ENDPOINT_SETTINGS_KEY = '/device[{:s}]/endpoint[{:s}]/settings'
endpoint_settings_key = ENDPOINT_SETTINGS_KEY.format(device_uuid, endpoint_uuid)
field_updates = {} field_updates = {}
if vlan_tag is not None: field_updates['vlan_tag' ] = (vlan_tag, True) if vlan_tag is not None: field_updates['vlan_tag' ] = (vlan_tag, True)
if ipv4_address is not None: field_updates['ip_address' ] = (ipv4_address, True) if ipv4_address is not None: field_updates['ip_address' ] = (ipv4_address, True)
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
"cascaded-lan-prefixes": { "cascaded-lan-prefixes": {
"ipv4-lan-prefixes": [ "ipv4-lan-prefixes": [
{ {
"lan": "172.1.101.1/24", "lan": "172.1.201.1/24",
"lan-tag": "vlan31", "lan-tag": "vlan31",
"next-hop": "128.32.33.254" "next-hop": "128.32.33.254"
} }
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
"cascaded-lan-prefixes": { "cascaded-lan-prefixes": {
"ipv4-lan-prefixes": [ "ipv4-lan-prefixes": [
{ {
"lan": "172.1.101.1/24", "lan": "172.1.201.1/24",
"lan-tag": "vlan201", "lan-tag": "vlan201",
"next-hop": "172.10.33.2" "next-hop": "172.10.33.2"
} }
......
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