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

相关文章:

  • 2021-12-05
  • 2022-02-09
  • 2021-05-23
  • 2021-04-14
  • 2021-07-28
  • 2021-12-22
猜你喜欢
  • 2021-11-15
  • 2021-05-28
  • 2021-05-19
  • 2021-09-15
相关资源
相似解决方案