[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-autoinstall
Subject:    RE: [opensuse-autoinstall] Trying to set NTP w/ <ask> on
From:       "Ryan McCain" <Ryan.McCain () dss ! state ! la ! us>
Date:       2008-02-06 17:57:05
Message-ID: 47A9A091.5D1A.003A.0 () dss ! state ! la ! us
[Download RAW message or body]

 > The "0" isn't specifying the element of the <peer> section to modify;
> it's specifying the child-element of <peers> to alter.
> 
> The XML tree looks roughly like this:
> <ntp-client>
>   <peers config:type="list">
>     <peer>
>       <address>xxxx</address>
>       .....
> 
> So, the path would be ntp-client,peers,peer,address -- _but_, the
> "config:type=list" changes that.  Since it's a list, just specifying the
> name of the element that you want to modify is ambiguous (even if
> there's only one element with that name).  
> 
> So, in the case where there's an element in the path with
> config:type="list", you need to specify the index of its child that you
> want to modify, instead of the name of the child.  That's what the "0"
> is doing.
> --
> To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
> For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org

So, with this xml file. If I wanted to assign an IP address it would be 'networking,interfaces,2,ipaddr'?


<networking>
    <dhcp_options>
      <dhclient_additional_options></dhclient_additional_options>
      <dhclient_client_id></dhclient_client_id>
      <dhclient_hostname_option>AUTO</dhclient_hostname_option>
    </dhcp_options>
    <dns>
      <dhcp_hostname config:type="boolean">false</dhcp_hostname>
      <dhcp_resolv config:type="boolean">true</dhcp_resolv>
      <domain>dss.la.gov</domain>
      <hostname>dss-buildserver</hostname>
      <nameservers config:type="list">
        <nameserver>10.120.11.85</nameserver>
        <nameserver>10.120.11.107</nameserver>
      </nameservers>
      <searchlist config:type="list">
        <search>dss.la.gov</search>
      </searchlist>
    </dns>
    <interfaces config:type="list">
      <interface>
        <bootproto>static</bootproto>
        <device>eth-id-00:1c:23:cb:7e:aa</device>
        <ipaddr>10.120.160.231</ipaddr>
        <netmask>255.255.254.0</netmask>
        <startmode>auto</startmode>
        <usercontrol>no</usercontrol>
      </interface>
    </interfaces>

-- 
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic