tfonteyn/profilecloner

Error exporting jgroup TCPPING

ioggstream opened this issue · 3 comments

Exporting the following configuration:

                <stack name="tcpping">
                    <transport type="TCP" socket-binding="jgroups-tcp"/>
                    <protocol type="TCPPING">
                        <property name="port_range">
                            0
                        </property>
                        <property name="timeout">
                            2000
                        </property>

I expect:

/profile=full-ha/subsystem=jgroups/stack=tcpping/protocol=TCPPING/property=port_range:add(value=0)
/profile=full-ha/subsystem=jgroups/stack=tcpping/protocol=TCPPING/property=timeout:add(value=2000)

instead I get:

/profile=full-ha/subsystem=jgroups/stack=tcpping/protocol=TCPPING:add-protocol(value=0)
/profile=full-ha/subsystem=jgroups/stack=tcpping/protocol=TCPPING:add-protocol(value=2000)

Thanks for reporting... issue found meanwhile, it's due to the special handling needed for the special "add-protocol" command instead of the normal "add".
A fix will come soon.

fix done, properties now handled correctly.

Thx++!