Commit b3f21284 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

pre-merge code cleanup

parent 59dc67ba
Loading
Loading
Loading
Loading
+0 −29
Original line number Original line Diff line number Diff line
#!/bin/bash
# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# -------------
# For direct testing of L3VPN delete from IP-Controller, without the need to trigger it from AGG-Controller.
#  This is a dummy script that replicates the behavior of AGG-Controller when it sends a delete request to IP-Controller.
# --------------

cd $(dirname $0)

echo "[IP-Controller] sending L3VPN delete (dummy replicating AGG-Controller )..."
curl --request DELETE --user admin:admin --location \
    http://10.254.0.12:80/restconf/data/ietf-l3vpn-svc:l3vpn-svc/vpn-services/vpn-service=slice25

echo

echo "Done! Delete!"
+0 −30
Original line number Original line Diff line number Diff line
#!/bin/bash
# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# -------------
# For direct testing of L3VPN request from IP-Controller, without the need to trigger it from AGG-Controller.
#  This is a dummy script that replicates the behavior of AGG-Controller when it sends a request to IP-Controller.
# --------------

cd $(dirname $0)

echo "[IP-Controller] sending L3VPN request (dummy replicating AGG-Controller request)..."
curl --request POST --location --user admin:admin --header 'Content-Type: application/json' \
    --data @data/slices/l3vpn_request_from_agg.json \
    http://127.0.0.1:80/restconf/data/ietf-l3vpn-svc:l3vpn-svc/vpn-services
echo


echo "Done!"