http://defect.opensolaris.org/bz/show_bug.cgi?id=9255


Anurag S. Maskey <Anurag.Maskey at Sun.COM> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ACCEPTED




--- Comment #1 from Anurag S. Maskey <Anurag.Maskey at Sun.COM>  2009-06-01 
07:38:40 ---
The reason the "nameservices-config-file" does not change when you change the
"nameservices" property is because it has already been set.  We don't change
the config-file property when the nameservices change.

See the actions below where "clear"ing the nameservices-config-file property
changes the value to /etc/nsswitch.nis.

nwamcfg:loc:foo> list
LOC:foo
        activation-mode                 manual
        enabled                         false
        nameservices                    dns
        dns-nameservice-configsrc       dhcp
        nameservices-config-file        "/etc/nsswitch.dns"

nwamcfg:loc:foo> set nameservices=nis
nwamcfg:loc:foo> list
LOC:foo
        activation-mode                 manual
        enabled                         false
        dns-nameservice-configsrc       dhcp
        nameservices-config-file        "/etc/nsswitch.dns"
        nameservices                    nis

nwamcfg:loc:foo> clear nameservices-config-file
Clear error: entity is missing required member

>> Can't clear the property here because the location is configuration is not 
>> correct

nwamcfg:loc:foo> verify
Verify error: entity is missing required member: 'nis-nameservice-configsrc'

nwamcfg:loc:foo> set nis-nameservice-configsrc=dhcp
nwamcfg:loc:foo> list
LOC:foo
        activation-mode                 manual
        enabled                         false
        nameservices-config-file        "/etc/nsswitch.dns"
        nameservices                    nis
        nis-nameservice-configsrc       dhcp

nwamcfg:loc:foo> verify
All properties verified

nwamcfg:loc:foo> clear nameservices-config-file
nwamcfg:loc:foo> list
LOC:foo
        activation-mode                 manual
        enabled                         false
        nameservices                    nis
        nis-nameservice-configsrc       dhcp
        nameservices-config-file        "/etc/nsswitch.nis"
nwamcfg:loc:foo> 

I'll keep bug open in case you see different behavior.

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

Reply via email to