Mailinglist Archive: opensuse-autoinstall (72 mails)

< Previous Next >
RE: [opensuse-autoinstall] Trying to set NTP w/ <ask> onSLES10 SP1 (64bit)
  • From: "Marlier, Ian" <ian.marlier@xxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 6 Feb 2008 13:11:47 -0500
  • Message-id: <B9BD59104C7FE34DB2610B2B2CA2B78F02131F@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>


-----Original Message-----
From: Ryan McCain [mailto:Ryan.McCain@xxxxxxxxxxxxxxx]
Sent: Wednesday, February 06, 2008 12:57 PM
To: opensuse-autoinstall@xxxxxxxxxxxx
Subject: RE: [opensuse-autoinstall] Trying to set NTP w/
<ask> onSLES10 SP1 (64bit)

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


<networking>

<snipped stuff that's not really important to this>

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

It would be <path>networking,interfaces,0,ipaddr</path>

Translated into words, more or less, it would read as:
- First find the networking element
- then, find the child element of <networking> that's called
"interfaces"
- then, find the very first child element of <interfaces>
- from there, find the child element called "ipaddr", and since it's
the last element in the list, operate on it.


If the path were "networking,interfaces,2,ipaddr", the result would be
this:
<networking>
<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>
<interface>
<bootproto>static</bootproto>
<device>eth-id-00:1c:23:cb:7e:ab</device>
<ipaddr>10.120.161.231</ipaddr>
<netmask>255.255.254.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
<interface>
<bootproto>static</bootproto>
<device>eth-id-00:1c:23:cb:7e:ac</device>
<ipaddr>OPERATING ON THIS ELEMENT BECAUSE THIS INTERFACE HAS
INDEX "2"</ipaddr>
<netmask>255.255.254.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
</interfaces>
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups