15
15
from wlsdeploy .aliases .model_constants import CANDIDATE_MACHINE
16
16
from wlsdeploy .aliases .model_constants import CANDIDATE_MACHINES_FOR_MIGRATABLE_SERVER
17
17
from wlsdeploy .aliases .model_constants import CLUSTER
18
+ from wlsdeploy .aliases .model_constants import CLUSTER_ADDRESS
18
19
from wlsdeploy .aliases .model_constants import CLUSTER_MESSAGING_MODE
19
20
from wlsdeploy .aliases .model_constants import DATABASE_LESS_LEASING_BASIS
20
21
from wlsdeploy .aliases .model_constants import DYNAMIC_SERVERS
22
+ from wlsdeploy .aliases .model_constants import INTERFACE_ADDRESS
23
+ from wlsdeploy .aliases .model_constants import LISTEN_ADDRESS
21
24
from wlsdeploy .aliases .model_constants import MACHINE
22
25
from wlsdeploy .aliases .model_constants import MIGRATION_BASIS
26
+ from wlsdeploy .aliases .model_constants import MULTICAST_ADDRESS
27
+ from wlsdeploy .aliases .model_constants import NETWORK_ACCESS_POINT
23
28
from wlsdeploy .aliases .model_constants import NM_PROPERTIES
24
29
from wlsdeploy .aliases .model_constants import NODE_MANAGER_PW_ENCRYPTED
25
30
from wlsdeploy .aliases .model_constants import NODE_MANAGER_USER_NAME
@@ -140,17 +145,27 @@ def filter_topology(model, _model_context):
140
145
del topology [delete_key ]
141
146
142
147
clusters = dictionary_utils .get_dictionary_element (topology , CLUSTER )
143
- for cluster in clusters :
148
+ for key in clusters :
149
+ cluster = clusters [key ]
144
150
for delete_key in [MIGRATION_BASIS , CANDIDATE_MACHINES_FOR_MIGRATABLE_SERVER , DATABASE_LESS_LEASING_BASIS ,
145
- CLUSTER_MESSAGING_MODE ]:
146
- if delete_key in clusters [ cluster ] :
147
- del clusters [ cluster ] [delete_key ]
151
+ CLUSTER_MESSAGING_MODE , CLUSTER_ADDRESS , MULTICAST_ADDRESS ]:
152
+ if delete_key in cluster :
153
+ del cluster [delete_key ]
148
154
149
155
servers = dictionary_utils .get_dictionary_element (topology , SERVER )
150
- for server in servers :
151
- for delete_key in [MACHINE , CANDIDATE_MACHINE , AUTO_MIGRATION_ENABLED , SERVER_START ]:
152
- if delete_key in servers [server ]:
153
- del servers [server ][delete_key ]
156
+ for key in servers :
157
+ server = servers [key ]
158
+ for delete_key in [MACHINE , CANDIDATE_MACHINE , AUTO_MIGRATION_ENABLED , SERVER_START , LISTEN_ADDRESS ,
159
+ INTERFACE_ADDRESS ]:
160
+ if delete_key in server :
161
+ del server [delete_key ]
162
+
163
+ access_points = dictionary_utils .get_dictionary_element (server , NETWORK_ACCESS_POINT )
164
+ for access_key in access_points :
165
+ access_point = access_points [access_key ]
166
+ for delete_key in [CLUSTER_ADDRESS ]:
167
+ if delete_key in access_point :
168
+ del access_point [delete_key ]
154
169
155
170
security_configuration = dictionary_utils .get_dictionary_element (topology , SECURITY_CONFIGURATION )
156
171
for delete_key in [NODE_MANAGER_USER_NAME , NODE_MANAGER_PW_ENCRYPTED ]:
@@ -166,10 +181,17 @@ def filter_topology(model, _model_context):
166
181
auto_migration_enabled = dictionary_utils .get_element (server_template , AUTO_MIGRATION_ENABLED )
167
182
if auto_migration_enabled is None or alias_utils .convert_boolean (auto_migration_enabled ):
168
183
server_template [AUTO_MIGRATION_ENABLED ] = PyRealBoolean (False )
169
- for delete_key in [MACHINE , SERVER_START ]:
184
+ for delete_key in [MACHINE , SERVER_START , LISTEN_ADDRESS , INTERFACE_ADDRESS ]:
170
185
if delete_key in server_template :
171
186
del server_template [delete_key ]
172
187
188
+ access_points = dictionary_utils .get_dictionary_element (server_template , NETWORK_ACCESS_POINT )
189
+ for access_key in access_points :
190
+ access_point = access_points [access_key ]
191
+ for delete_key in [CLUSTER_ADDRESS ]:
192
+ if delete_key in access_point :
193
+ del access_point [delete_key ]
194
+
173
195
174
196
def filter_resources (model , _model_context ):
175
197
"""
0 commit comments