changed nwam-core at sun.com to nwam-dev at opensolaris.org. Lizhong Li wrote: > Anurag, > > For subcommand 'clear', I have some questions. > > firering:exp# nwamcfg > nwamcfg> select enm myenm1 > nwamcfg:enm:myenm1> list > ENM:myenm1 > enabled false > start "/var/tmp/start_myenm1" > stop "/var/tmp/stop_myenm1" > activation-mode manual > nwamcfg:enm:myenm1> clear activation-mode > Clear error: entity is missing required member > nwamcfg:enm:myenm1> get activation-mode > activation-mode manual > nwamcfg:enm:myenm1> clear enabled > Clear error: property 'enabled' is read-only > > Is there any doc describing the list of properties which would get > "entity is missing required member" and which is "read-only" ? > activation-mode is mandatory. It should default to "false". A bug in enm wasn't setting the default to false, but it was fix late last week.
As for "enabled", we discussed changes to this property last week. Sorry, the changes to the spec from discussions last week have not been sent out or updated on opensolaris. "enabled" will be a read-only property that nwamd uses to determine the last state of the object. When an object (or profile as nwamadm calls it) with manual activation-mode is enabled using nwamadm, nwamd sets the enabled property to true (false when being disabled). If nwamd is restarted, then nwamd uses this property to decide whether the object/profile should be activated or not. This change hasn't been made to the code yet. > nwamcfg:enm:myenm1> get enabled > enabled false > nwamcfg:enm:myenm1> clear start > Clear error: entity is missing required member > nwamcfg:enm:myenm1> get start > start "/var/tmp/start_myenm1" > nwamcfg:enm:myenm1> clear stop > nwamcfg:enm:myenm1> get stop > Get error: property 'stop' has not been set > > I'm confused that why 'stop' could be cleared while 'start' could not. > ENM's need either the fmri or start property. The stop property is not needed. Anurag
