---
**[tickets:#3360] imm: multiple value attribute is out of order when load xml
file**
**Status:** accepted
**Milestone:** 5.24.09
**Created:** Mon Oct 07, 2024 09:53 AM UTC by Thien Minh Huynh
**Last Updated:** Mon Oct 07, 2024 09:53 AM UTC
**Owner:** Thien Minh Huynh
Expect order after load from xml file
192.168.0.1
192.168.0.2
192.168.0.3
192.168.0.4
But the order is opposite after getting values
192.168.0.4
192.168.0.3
192.168.0.2
192.168.0.1
It also happens when saImmRepositoryInit = SA_IMM_FROM_FILE
after cluster reboot, the attribute value will be opposite
~~~
<?xml version="1.0"?>
<imm:IMM-contents xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="SAI-AIS-IMM-XSD-A.02.13.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:imm="http://www.saforum.org/IMMSchema">
<class name="TestMulvalue">
<category>SA_CONFIG</category>
<rdn>
<name>testMulvalue</name>
<type>SA_STRING_T</type>
<category>SA_CONFIG</category>
<flag>SA_INITIALIZED</flag>
</rdn>
<attr>
<name>host</name>
<type>SA_STRING_T</type>
<category>SA_CONFIG</category>
<flag>SA_MULTI_VALUE</flag>
<flag>SA_WRITABLE</flag>
</attr>
<attr>
<name>SaImmAttrImplementerName</name>
<type>SA_STRING_T</type>
<category>SA_CONFIG</category>
</attr>
<attr>
<name>SaImmAttrClassName</name>
<type>SA_STRING_T</type>
<category>SA_CONFIG</category>
<default-value>TestMulvalue</default-value>
</attr>
<attr>
<name>SaImmAttrAdminOwnerName</name>
<type>SA_STRING_T</type>
<category>SA_CONFIG</category>
</attr>
</class>
<object class="TestMulvalue">
<dn>testMulvalue=test_type_sa_string_t_with_xml</dn>
<attr>
<name>host</name>
<value>192.168.0.1</value>
<value>192.168.0.2</value>
<value>192.168.0.3</value>
<value>192.168.0.4</value>
</attr>
<attr>
<name>SaImmAttrClassName</name>
<value>TestMulvalue</value>
</attr>
</object>
</imm:IMM-contents>
~~~
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets