Menu

#1425 IMM: Add attribute def flag SA_IMM_ATTR_STRONG_DEFAULT

5.0.FC
fixed
None
enhancement
imm
-
major
2015-12-23
2015-07-24
No

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.

Related

Tickets: #1425
Wiki: ChangeLog-5.0.0

Discussion

  • Hung Nguyen

    Hung Nguyen - 2015-09-21
    • status: unassigned --> accepted
    • assigned_to: Hung Nguyen
    • Milestone: future --> 4.7.FC
     
  • Hung Nguyen

    Hung Nguyen - 2015-09-23
    • status: accepted --> review
     
  • Hung Nguyen

    Hung Nguyen - 2015-09-23
    • status: review --> assigned
    • Milestone: 4.7.FC --> future
     
  • Anders Bjornerstedt

    • status: assigned --> unassigned
    • Milestone: future --> 5.0
     
  • Anders Bjornerstedt

    • status: unassigned --> accepted
     
  • Hung Nguyen

    Hung Nguyen - 2015-11-23
    • status: accepted --> review
     
  • Hung Nguyen

    Hung Nguyen - 2015-12-11
    • status: review --> fixed
     
  • Hung Nguyen

    Hung Nguyen - 2015-12-23

    changeset: 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


Log in to post a comment.