[ SEA-GHOST MINI SHELL]
UserParameter=ovsbond.bond.status[*], sudo ovs-appctl bond/show '$1' | sed -n 1p
UserParameter=ovsbond.check[*],sudo ovs-appctl bond/show $1 | grep '$2'| sed "s%$2:%%g"| sed 's/^[ \t]*//'
UserParameter=ovsbond.bond.discovery,bond_list=$(sudo ovs-appctl bond/list|sed '1d'|awk '{print $1}');echo -n '{"data":[';for b in $bond_list;do echo -n "{\"{#BOND_IF}\": \"$b\"},";done |sed -e 's:\},$:\}:';echo -n ']}';
UserParameter=ovsbond.slave.discovery,bond_list=$(sudo ovs-appctl bond/list|sed '1d'|awk '{print $1}');echo -n '{"data":[';for b in ${bond_list};do if_list=$(sudo ovs-appctl bond/list|sed '1d'|grep $b| awk '{$1=$2=$3="";print $0}'| sed 's\,\\g'); for i in ${if_list};do echo -n "{\"{#BOND_IF}\": \"$b\", ";echo -n "\"{#SLAVE_IF}\": \"$i\"},"; done;done |sed -e 's:\},$:\}:';echo -n ']}'
SEA-GHOST - SHELL CODING BY SEA-GHOST