The saImmOmClassCreate_2() API allows the user to provide a list of attribute
definitions. An attribute definition may include a default value.
The default value will be assigned to this attribute in an instance being created
by the saImmOmCcbObjectCreate_2() or the saImmOiRtObjectCreate_2() APIs, if the
user does not provide a value for that attribute.
But a user/OI may later update such an object/attribute assigning the empty value
to the attribute. So the default value mechanism is only effective for object
creation and not later in the life cycle of the object. This makes the default
attribute value mechanism weaker than some users would like.
This enhancement proposes a new attribute flag SA_IMM_ATTR_STRONG_DEFAULT.
This flag will only be allowed to be set on an attribute definition that includes
a default value.
The meaning of the flag is that if a user attempts an update of an object/attribute
that assigns the empty value to such an attribute, then the IMM will replace, i.e.
override, that value with the default value defined in the class.
https://sourceforge.net/p/opensaf/mailman/message/34484355/
default (5.0)
changeset: 7165:6ae334abdd52 [6ae334]
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Fri Dec 11 11:03:14 2015 +0700
summary: imm: Add OPENSAF_IMM_FLAG_PRT50_ALLOW value for noStdFlags [#1425]
changeset: 7166:1fda7ee00eb1 [1fda7e]
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Fri Dec 11 11:05:37 2015 +0700
summary: imm: Introduce SA_IMM_ATTR_STRONG_DEFAULT flag [#1425]
changeset: 7167:83996f61a055 [83996f]
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Fri Dec 11 11:46:21 2015 +0700
summary: imm: Support SA_IMM_ATTR_STRONG_DEFAULT flag [#1425]
changeset: 7168:f5e8fbc8f2a4 [f5e8fb]
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Fri Dec 11 11:49:46 2015 +0700
summary: imm: Add support for strong default to IMM tools [#1425]
changeset: 7169:5a954d0f2fc9 [5a954d]
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Fri Dec 11 11:50:25 2015 +0700
summary: imm: Add test cases for strong default [#1425]
Related
Commit: [1fda7e]
Commit: [5a954d]
Commit: [6ae334]
Commit: [83996f]
Commit: [f5e8fb]
Tickets:
#1425changeset: 7192:20d4b0e6fc62 [20d4b0]
tag: tip
user: Hung Nguyen hung.d.nguyen@dektech.com.au
date: Wed Dec 23 15:17:26 2015 +0700
summary: imm: Add protocol50 check and fix misplaced log [#1425]
Related
Commit: [20d4b0]
Tickets:
#1425