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

           Summary: nwam_ncu_copy() doesn't write configuration files
                    correctly
    Classification: Development
           Product: nwam
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: ON library
        AssignedTo: nwam-dev at opensolaris.org
        ReportedBy: Anurag.Maskey at Sun.COM
         QAContact: nwam-dev at opensolaris.org


Make a copy of the interface NCU bge0

nwamcfg:ncp:User> list ncu ip bge0
NCU:bge0
        type            interface
        class           ip
        parent          "User"
        enabled         true
        ip-version      ipv4,ipv6
        ipv4-addrsrc    dhcp
        ipv6-addrsrc    dhcp,autoconf

nwamcfg:ncp:User> create -t bge0 ncu ip bge1
Created ncu 'bge1'.  Walking properties ...
ip-version (ipv4,ipv6) [ipv4|ipv6]>
ipv4-addrsrc (dhcp) [dhcp|static]>
ipv6-addrsrc (dhcp,autoconf) [dhcp|autoconf|static]>

nwamcfg:ncp:User:ncu:bge1> list
        type            interface
        class           ip
        parent          "User"
        enabled         true
        ip-version      ipv4,ipv6
        ipv4-addrsrc    dhcp
        ipv6-addrsrc    dhcp,autoconf

nwamcfg:ncp:User:ncu:bge1> end
Committed changes
nwamcfg:ncp:User> exit
nothing to commit

Check the contents of the configuration file ("interface:" missing):

bash-3.2# cat /etc/nwam/ncp-User.conf 
interface:bge0 
type=uint64,1;class=uint64,1;parent=string,User;enabled=boolean,true;ip-version=uint64,0,1;ipv4-addrsrc=uint64,0;ipv6-addrsrc=uint64,0,1;
bge1   
type=uint64,1;class=uint64,1;parent=string,User;enabled=boolean,true;ip-version=uint64,0,1;ipv4-addrsrc=uint64,0;ipv6-addrsrc=uint64,0,1;

bash-3.2# nwamcfg list ncp User
NCUs:
        ip      bge0
List error: failed get ncu name: argument is invalid
List error: callback function returned nonzero

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