添加默认安全组规则-openstack

if [  "$1" ] ;then
neutron security-group-rule-create --direction ingress --ethertype ipv4 --remote-ip-prefix 0.0.0.0/0 --protocol icmp $1 --id `cat /proc/sys/kernel/random/uuid` &
neutron security-group-rule-create --direction egress --ethertype ipv4 --remote-ip-prefix 0.0.0.0/0 --protocol icmp $1 --id `cat /proc/sys/kernel/random/uuid` &
neutron security-group-rule-create --direction egress --ethertype ipv4 --remote-group-id $1 --protocol icmp $1 --id `cat /proc/sys/kernel/random/uuid` &
neutron security-group-rule-create --direction ingress --ethertype ipv4 --remote-group-id $1 --protocol icmp $1 --id `cat /proc/sys/kernel/random/uuid` &
else
echo "print input security-group-id"
fi
上一篇:学习笔记-IOS操作系统命令


下一篇:node cheerio