Sample Networking-MidoNet Policy File¶
The following is a sample networking-midonet policy file for adaptation and use.
The sample policy can also be viewed in file form
.
Important
The sample policy file is auto-generated from networking-midonet when this documentation is built. You must ensure your version of networking-midonet matches the version of this documentation.
# Create a BGP speaker with ``logical_router`` attribute
# POST /bgp-speakers
#"create_bgp_speaker:logical_router": "rule:admin_only"
# Create a gateway device
# POST /gw/gateway-devices
#"create_gateway_device": "rule:admin_or_owner"
# Update a gateway device
# PUT /gw/gateway-devices/{id}
#"update_gateway_device": "rule:admin_or_owner"
# Delete a gateway device
# DELETE /gw/gateway-devices/{id}
#"delete_gateway_device": "rule:admin_or_owner"
# Get gateway devices
# GET /gw/gateway-devices
# GET /gw/gateway-devices/{id}
#"get_gateway_device": "rule:admin_or_owner"