#!/bin/sh -x if [ $# -eq 1 ] then HOST="$1"; else HOST="localhost" fi CMD="add" TAPID=3 curl -d "{\ 'dpid':'0000000000000002',\ 'output':2,\ 'vlan_id':100,\ 'tapID': $TAPID \ }" http://$HOST:8080/policy/tap/e2etunnel/{$CMD}