-
Notifications
You must be signed in to change notification settings - Fork 0
/
singlehub.j2
79 lines (69 loc) · 1.76 KB
/
singlehub.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{# Project Template #}
{# -------------------------------------------------------------------------- #}
{# This file describes the project: its Regions, Hubs and Device Profiles #}
{# Normally, this is the only file that needs to be edited between #}
{# different projects #}
{# -------------------------------------------------------------------------- #}
{# Design flavor: "BGP per Overlay" #}
{# Please contact your Fortinet representatives for more details #}
{#
Per-device variables used:
- Required:
- hostname
- loopback
- profile
- region
- lan_ip
#}
{# Optional Settings #}
{% set cert_auth = false %}
{# Mandatory Global Definitions #}
{% set tunnel_summary = '10.200.0.0/14' %}
{% set lan_summary = '10.0.0.0/8' %}
{# Regions #}
{% set regions = {
'SuperWAN': {
'as': '65001',
'hubs': [ 'no-solheim-hub01' ]
}
}
%}
{# Device Profiles #}
{% set profiles = {
'SingleISP': {
'interfaces': [
{
'name': 'port1',
'role': 'wan',
'ol_type': 'ISP1',
'ip': 'dhcp',
'dia': true
},
{
'name': 'port5',
'role': 'lan',
'ip': lan_ip
}
]
}
}
%}
{# Hubs #}
{% set hubs = {
'no-solheim-hub01': {
'lo_bgp': '10.200.1.253',
'overlays': {
'ISP1': {
'wan_ip': '100.64.1.1',
'tunnel_net': '10.201.1.0/24',
'network_id': '11'
},
'ISP2': {
'wan_ip': '100.64.1.9',
'tunnel_net': '10.202.1.0/24',
'network_id': '12'
}
}
}
}
%}