记录常用的 Neutron client 命令。
agent
openstack network agent list --route
openstack network agent list --network
net
neutron net-list -c name -c qos-policy-id
port
neutron port-show <port-id>
neutron port-list | grep <sub_prefix_id>
neutron port-list -c id -c allowed_address_pairs -c device_id
重启 port
重刷流表的目的:
openstack port set --disable <port-id>
openstack port set --enable <port-id>
neutron port-update <port-id> --admin-state-up False
neutron port-update <port-id> --admin-state-up True
qos
openstack network qos policy list
openstack network qos policy show <qos-policy-id>
neutron net-list | grep <vpc_id>
neutron net-show <net_id>
neutron qos-policy-show <qos-policy-id>
新增新的qos
neutron qos-policy-create <qos_policy_name>
neutron qos-bandwidth-limit-rule-create --max-kbps 2048000 --max-burst-kbps 204800 <qos_policy_name>
修改网络的qos
openstack network set --no-qos-policy <netid>
openstack network set --qos-policy <qos-policy-id> <netid>
openstack network show <netid>