-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsubnets_pc.yml
148 lines (137 loc) · 4.28 KB
/
subnets_pc.yml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
pc_ip: valid-pc-ip
# Specify a user with permission to make API calls.
pc_credential: pc_user # credential reference from "vaults" in global.yml file
pe_creds: &pe_creds
pe_credential: pe_user # credential reference from "vaults" in global.yml file
#Create
pe_networks: &pe_networks
name: "vlan-110"
subnet_type: VLAN # only VLAN is supported yet
vlan_id: 110
# virtual_switch: "vs0" # Optional. If not specified, the first virtual switch will be used
# comment ip_config section if AHV IP address management is not required
ip_config:
network_ip: valid-ip
network_prefix: 24
default_gateway_ip: valid-ip
# comment pool_list section if there are no pools for the subnet
pool_list:
- range: "valid-ip-start valid-ip-end" # Eg "10.10.10.31 10.10.10.40"
# comment dhcp_options section if you don't want dhcp. Over-riding dhcp is not supported yet
dhcp_options:
domain_name_server_list: [ 10.10.10.10 ]
domain_search_list: [ eng.company.com ]
domain_name: eng.company.com
clusters:
# configure the below clusters in the site
valid-cluster-01-ip:
name: cluster-01
# Use global pe creds for authentication
<<: *pe_creds
networks:
# Use global network config
- <<: *pe_networks
valid-cluster-02-ip:
name: cluster-02
# can be defined locally as well
pe_credential: pe_user # credential reference from "vaults" in global.yml file
# can be defined locally as well
networks:
- name: "vlan-110"
subnet_type: VLAN # only VLAN is supported yet
vlan_id: 110
ip_config:
network_ip: valid-ip
network_prefix: 24
default_gateway_ip: valid-ip
# comment pool_list section if there are no pools for the subnet
pool_list:
- range: "valid-ip-start valid-ip-end" # Eg "10.10.10.31 10.10.10.40"
# comment dhcp_options section if you don't want dhcp. Over-riding dhcp is not supported yet
dhcp_options:
domain_name_server_list: [ 10.10.10.10 ]
domain_search_list: [ eng.company.com ]
domain_name: eng.company.com
#Delete
clusters:
valid-cluster-01-ip:
pe_credential: pe_user
networks:
- uuid: <valid-uuid> #Recommended
# Delete Subnets can be done by passing Names as well. But it is not recommended
# since it will remove all the networks with the given name as multiple networks can have same names
- name: "vlan-110"
######################################## SCHEMA DOCUMENTATION ########################################
### ---CREATE SCHEMA --- ###
# networks:
# type: list
# schema:
# type: dict
# required: false
# schema:
# name:
# type: string
# required: true
# vlan_id:
# required: true
# type: integer
# ip_config:
# required: false
# type: dict
# schema:
# network_ip:
# type: string
# required: true
# network_prefix:
# required: true
# type: integer
# default_gateway_ip:
# type: string
# pool_list:
# type: list
# schema:
# type: dict
# schema:
# range:
# type: string
# dhcp_options:
# type: dict
# schema:
# domain_name_server_list:
# type: list
# schema:
# type: string
# domain_search_list:
# type: list
# domain_name:
# type: string
#
### ---DELETE SCHEMA --- ###
# networks:
# type: list
# schema:
# type: dict
# schema:
# vlan_id:
# type: integer
# required: true
# name:
# type: string
# managed:
# type: boolean
# ip_config:
# network_ip:
# type: string
# network_prefix:
# type: integer
# default_gateway_ip:
# type: string
# pool_list:
# type: list
# schema:
# type: dict
# schema:
# range:
# type: string
#
####################################################################################################