Network v2
Create new router
os router create
[--project <project> [--project-domain <project-domain>]]
[--enable | --disable]
[--distributed]
[--availability-zone-hint <availability-zone>]
<name>
Owner’s project (name or ID)
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
Enable router (default)
Disable router
Create a distributed router
Availability Zone in which to create this router (requires the Router Availability Zone extension, this option can be repeated).
New router name
Delete router(s)
os router delete
<router> [<router> ...]
Router(s) to delete (name or ID)
Set router properties
os router set
[--name <name>]
[--enable | --disable]
[--distributed | --centralized]
[--route destination=<subnet>,gateway=<ip-address> | --clear-routes]
<router>
Set router name
Enable router
Disable router
Set router to distributed mode (disabled router only)
Set router to centralized mode (disabled router only)
Routes associated with the router. Repeat this option to set multiple routes. destination: destination subnet (in CIDR notation). gateway: nexthop IP address.
Clear routes associated with the router
Router to modify (name or ID)