Skip to content

Commit 815ee58

Browse files
committed
automatically create cedge service interface
1 parent 3a707e8 commit 815ee58

File tree

5 files changed

+48
-10
lines changed

5 files changed

+48
-10
lines changed

playbooks/aws_sdwan_config.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ aws_vpc_cidr: 10.0.0.0/16 # default ips from official Cisco guides
3333
aws_igw_name: "{{ aws_resources_prefix }}-igw"
3434

3535
# SUBNETs
36-
aws_subnets:
36+
aws_subnets: |
37+
{% filter from_yaml %}
3738
- name: "{{ aws_resources_prefix }}-mgmt-subnet-512"
3839
subnet_cidr: "10.0.1.0/24" # default ips from official Cisco guides
3940
VPN: 512
@@ -42,10 +43,19 @@ aws_subnets:
4243
subnet_cidr: "10.0.2.0/24" # default ips from official Cisco guides
4344
VPN: 0
4445
type: transport
45-
# - name: "{{ aws_resources_prefix }}-cluster-subnet-0"
46-
# subnet_cidr: "10.0.3.0/24"
47-
# VPN: 0
48-
# type: cluster
46+
{% if vmanage_instances is defined and vmanage_instances | length > 2 %}
47+
- name: "{{ aws_resources_prefix }}-cluster-subnet-0"
48+
subnet_cidr: "10.0.3.0/24"
49+
VPN: 0
50+
type: cluster
51+
{% endif %}
52+
{% if ux20_deployment is defined and ux20_deployment == true %}
53+
- name: "{{ aws_resources_prefix }}-service-subnet-10"
54+
subnet_cidr: "10.0.4.0/24" # default ips from official Cisco guides
55+
VPN: 10
56+
type: service
57+
{% endif %}
58+
{% endfilter %}
4959
5060
# ROUTE TABLEs
5161
aws_route_table_name: "{{ aws_resources_prefix }}-rtab"

roles/aws_network_infrastructure/defaults/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ aws_subnets: |
4343
VPN: 0
4444
type: cluster
4545
{% endif %}
46+
{% if ux20_deployment is defined and ux20_deployment == true %}
47+
- name: "{{ aws_resources_prefix }}-service-subnet-10"
48+
subnet_cidr: "10.0.4.0/24" # default ips from official Cisco guides
49+
VPN: 10
50+
type: service
51+
{% endif %}
4652
{% endfilter %}
4753
4854
# ROUTE TABLEs

roles/azure_controllers/defaults/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ az_subnets: |
3737
VPN: 0
3838
type: cluster
3939
{% endif %}
40+
{% if ux20_deployment is defined and ux20_deployment == true %}
41+
- name: "{{ az_resources_prefix }}-service-subnet-10"
42+
cidr: "10.0.4.0/24" # default ips from official Cisco guides
43+
VPN: 10
44+
type: service
45+
{% endif %}
4046
{% endfilter %}
4147
4248
# Security group

roles/azure_edges/defaults/main.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ az_virtual_network: "{{ az_resources_prefix }}-vn"
2121
az_vn_address_prefixes_cidr: 10.0.0.0/16
2222

2323
# Subnets
24-
az_subnets:
24+
az_subnets: |
25+
{% filter from_yaml %}
2526
- name: "{{ az_resources_prefix }}-mgmt-subnet-512"
2627
cidr: "10.0.1.0/24"
2728
VPN: 512
@@ -30,10 +31,19 @@ az_subnets:
3031
cidr: "10.0.2.0/24"
3132
VPN: 0
3233
type: transport
33-
# - name: "{{ az_resources_prefix }}-cluster-subnet-0"
34-
# cidr: "10.0.3.0/24"
35-
# VPN: 0
36-
# type: cluster
34+
{% if vmanage_instances is defined and vmanage_instances | length > 2 %}
35+
- name: "{{ az_resources_prefix }}-cluster-subnet-0"
36+
cidr: "10.0.3.0/24"
37+
VPN: 0
38+
type: cluster
39+
{% endif %}
40+
{% if ux20_deployment is defined and ux20_deployment == true %}
41+
- name: "{{ az_resources_prefix }}-service-subnet-10"
42+
cidr: "10.0.4.0/24" # default ips from official Cisco guides
43+
VPN: 10
44+
type: service
45+
{% endif %}
46+
{% endfilter %}
3747
3848
# Security group
3949
az_network_security_group: "{{ az_resources_prefix }}-nsg"

roles/azure_network_infrastructure/defaults/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ az_subnets: |
3737
VPN: 0
3838
type: cluster
3939
{% endif %}
40+
{% if ux20_deployment is defined and ux20_deployment == true %}
41+
- name: "{{ az_resources_prefix }}-service-subnet-10"
42+
cidr: "10.0.4.0/24" # default ips from official Cisco guides
43+
VPN: 10
44+
type: service
45+
{% endif %}
4046
{% endfilter %}
4147
4248
# Security group

0 commit comments

Comments
 (0)