8. Using network templates

Starting from Fuel 7.0 it is possible to reduce the number of logical networks. This is implemented with the function called network templates. For detailed information on this feature, refer to Operations guide

This document provides sample configuration with network template. It is designed to get customers up and running quickly. The provided template utilizes 3 networks: Admin (PXE), Public and Private.

  1. First do steps 5.3.1 - 5.3.7 from Installation Guide

  2. Configure interfaces as shown on figure:

    _images/conf-interfaces2.png
  3. Next, we need to set gateway for the private network. Here is how to do it with Fuel CLI:

    • Login with ssh to Fuel master node.

    • List existing network-groups

      fuel network-group --env 1
      
    • Remove and create again network-group private to set a gateway

      fuel network-group --delete --network 5
      fuel network-group --create --name private \
        --cidr 10.109.3.0/24 --gateway 10.109.3.1 --nodegroup 1
      
  4. Set the render_addr_mask parameter to internal for this network by typing:

    fuel network-group --set --network 6 --meta '{"name": "private", "notation": "cidr",\
     "render_type": null, "map_priority": 2, "configurable": true, "use_gateway": true,\
     "render_addr_mask": "internal", "vlan_start": null, "cidr": "10.109.3.0/24"}'
    
  5. Save sample network template

  6. Upload the network template by typing:

    fuel --env 1 network-template --upload --dir /root/
    
  7. Start deploy, pressing “Deploy changes” button.