[First attempt didn't reach caiman-discuss]

On 03/ 1/11 04:29 PM, Keith Mitchell wrote:


The consolidated webserver services all use port 5555. Compatibility services
uses unique service port numbers starting at 46501.  The following code:

 279     existing_ports = []
 280     for name in service_instance.services:
 281         service = libaiscf.AIservice(service_instance, name)
 282         svckeys = service.keys()
 283         if aismf.PROP_TXT_RECORD in svckeys:
 284             port = service[aismf.PROP_TXT_RECORD].split(':')[-1]
 285             existing_ports.append(int(port))

Will append port 5555 for each non-compatibility service. Perhaps a check if the port is the default port then do not append it. If you do this then
the existing_ports = [] should be changed to have 5555 initially.

Good point. Alternatively, it might be cleaner to use a set()...

_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to