File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
operator/src/main/resources/scripts Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,26 @@ def get_server_template_listening_ports_from_configxml(config_xml):
84
84
if template .parentNode .nodeName != 'domain' :
85
85
continue
86
86
template_name = template .getElementsByTagName ('name' )[0 ].firstChild .nodeValue
87
+ # Get listen port
87
88
listen_ports = template .getElementsByTagName ('listen-port' )
88
- if len (listen_ports ) > 0 :
89
- port = listen_ports [0 ].firstChild .nodeValue
89
+
90
+ for listen_port in listen_ports :
91
+ if listen_port .parentNode .nodeName == 'server-template' :
92
+ port = listen_port .firstChild .nodeValue
93
+ break
90
94
server_template_ports [template_name ] = port
95
+
96
+ # naps = template.getElementsByTagName('network-access-point')
97
+ # for nap in naps:
98
+ # nap_listen_ports = nap.getElementsByTagName('listen-port')
99
+ # if len(listen_ports) > 0:
100
+ # nap_listen_port = nap_listen_ports[0].firstChild.nodeValue
101
+ # nap_name = nap.getElementsByTagName('name')[0].firstChild.nodeValue
102
+ # nap_protcols = nap.getElementsByTagName('protocol')
103
+ # # there is protocol defined:
104
+ # if len(nap_protcols) > 0:
105
+
106
+ # Get ssl port
91
107
ssls = template .getElementsByTagName ('ssl' )
92
108
if len (ssls ) > 0 :
93
109
ssl = ssls .item (0 )
You can’t perform that action at this time.
0 commit comments