diff options
author | Brian Freeman <bf1936@att.com> | 2018-11-13 11:34:48 -0500 |
---|---|---|
committer | Brian Freeman <bf1936@att.com> | 2018-11-13 12:34:20 -0500 |
commit | 8076a87e542a67f321f84311350d20946bee14a2 (patch) | |
tree | 1cb41c8b1093eadaf5178bfcaa92dd4bf7f3a91e /test/vcpe/cleanvGMUX.sh | |
parent | ec9fe0e5a07ac2cdb650cd5cc9a9c883122da780 (diff) |
fixes from vCPE testing
Issue-ID: INT-717
Change-Id: If2c44e08288eee955b7a3548a802be37a15a601e
Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'test/vcpe/cleanvGMUX.sh')
-rwxr-xr-x | test/vcpe/cleanvGMUX.sh | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/test/vcpe/cleanvGMUX.sh b/test/vcpe/cleanvGMUX.sh new file mode 100755 index 000000000..3b8dabc8d --- /dev/null +++ b/test/vcpe/cleanvGMUX.sh @@ -0,0 +1,62 @@ +#! /usr/bin/env bash +######################################################################################### +# Script to cleanpu vGMUX and other parts of the vCPE Use Case +# +# Edit the IP addresses and portas as appropriate +# +####################################################################################### + + +VGMUX_IP=10.12.6.242 +#VBRG_IP=10.12.5.142 +#SDNC_IP=10.12.5.180 + +#curl -X DELETE -u admin:Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U http://$SDNC_IP:8282/restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources +#curl -X DELETE -u admin:Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U http://$SDNC_IP:8282/restconf/config/GENERIC-RESOURCE-API:brg-allotted-resources + +################################### +# vGMUX +curl -H 'Content-Type: application/json' -H 'Accept: application/json' -u admin:admin -X DELETE http://$VGMUX_IP:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun10.3.0.2/v3po:l2 +echo + +curl -H 'Content-Type: application/json' -H 'Accept: application/json' -u admin:admin -X DELETE http://$VGMUX_IP:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun10.5.0.22/v3po:l2 +echo + +curl -H 'Content-Type: application/json' -H 'Accept: application/json' -u admin:admin -X DELETE http://$VGMUX_IP:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun10.5.0.22 +echo + +curl -H 'Content-Type: application/json' -H 'Accept: application/json' -u admin:admin -X DELETE http://$VGMUX_IP:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun10.3.0.2 +echo + + +curl -H 'Content-Type: application/json' -H 'Accept: application/json' -u admin:admin -X DELETE http://$VGMUX_IP:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun10.5.0.106 +echo +curl -H 'Content-Type: application/json' -H 'Accept: application/json' -u admin:admin -X DELETE http://$VGMUX_IP:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun10.5.0.107 + +curl -H 'Content-Type: application/json' -H 'Accept: application/json' -u admin:admin -X DELETE http://$VGMUX_IP:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun10.5.0.111 + +curl -H 'Content-Type: application/json' -H 'Accept: application/json' -u admin:admin -X DELETE http://$VGMUX_IP:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun10.5.0.110 + +# Check by listing interfaces +echo "********************* vGMUX status ************************" +curl -H 'Content-Type: application/json' -H 'Accept: application/json' -u admin:admin -X GET http://$VGMUX_IP:8183/restconf/config/ietf-interfaces:interfaces| python -m json.tool + + +exit; + +######################################################################################### +# remove above exit if you want to interact with the other components +######################################################################################### + + + +################################### +# vBRG +curl -u admin:admin -X DELETE http://$VBRG_IP:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun10.1.0.21 + +# check +echo "********************* vBRG status ************************" +curl -H 'Content-Type: application/json' -H 'Accept: application/json' -u admin:admin -X GET http://$VBRG_IP:8183/restconf/config/ietf-interfaces:interfaces| python -m json.tool + + + |