Getting nasty with openstack clients

Show security-group-rules by ip

1
ip=; neutron port-show -c security_groups $(neutron port-list --fixed_ips ip_address=$ip -c id | awk '$2 ~ /\-/ {print $2}') | awk '$4 ~ /\-/ {print $4}'

rename neutron network

1
neutron net-update $name --name $new_name