Mailinglist Archive: opensuse-autoinstall (72 mails)
| < Previous | Next > |
RE: [opensuse-autoinstall] Trying to set NTP w/ <ask> onSLES10 SP1 (64bit)
- From: "Ryan McCain" <Ryan.McCain@xxxxxxxxxxxxxxx>
- Date: Wed, 06 Feb 2008 12:22:44 -0600
- Message-id: <47A9A694.5D1A.003A.0@xxxxxxxxxxxxxxx>
<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
Ohhhh. I follow you now. I will try this out tomorrow. I have meetings the
rest of the day. Thanks for clarifying.
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
| < Previous | Next > |