# `network_roles.yaml` file is used to declare VIP addresses and link
# them with networks and nodes.

# Unique network role name
- id: "fuel_plugin_example_v4_network_role"
  # Role mapping to network
  default_mapping: "public"
  properties:
    # Should be true if network role requires subnet being set
    subnet: true
    # Should be true if network role requires gateway being set
    gateway: false
    # List of VIPs to be allocated
    vip:
         # Unique VIP name
       - name: "vip_name"
         # Optional linux namespace for VIP
         namespace: "haproxy"
         # Optional alias so VIP can be queried via API
         alias: "vip_name"
         # Optional node role list to map VIP to (defaults to
         # primary-controller and controller)
         node_roles:
           - "fuel_plugin_example_v4_role"
