[caasp-beta] Micro OS NIC bonding
David Mace
David.Mace at smartodds.co.uk
Thu Oct 26 04:16:44 MDT 2017
Hi,
Is it supported to edit the autoyast.xml provided by the CaaSP admin
node with NIC bonding settings. For example;
<networking>
<dns>
<domain>EXAMPLE.COM</domain>
<dhcp_hostname config:type="boolean">false</dhcp_hostname>
<write_hostname config:type="boolean">true</write_hostname>
</dns>
<interfaces config:type="list">
<interface>
<bonding_master>yes</bonding_master>
<bonding_module_opts>mode=balance-alb
miimon=100</bonding_module_opts>
<bonding_slave0>nic1</bonding_slave0>
<bonding_slave1>nic2</bonding_slave1>
<device>bond0</device>
<bootproto>dhcp</bootproto>
<startmode>auto</startmode>
<dhclient_set_default_route>yes</dhclient_set_default_route>
</interface>
<interface>
<bootproto>none</bootproto>
<device>nic1</device>
<startmode>hotplug</startmode>
</interface>
<interface>
<bootproto>none</bootproto>
<device>nic2</device>
<startmode>hotplug</startmode>
</interface>
</interfaces>
</networking>
And does the MicroOS support Autoyast pre-scripts? For example, we
replace the "nic1" and "nic2" values above with a pre-script which
detects the first two valid devices
<script>
<interpreter>shell</interpreter>
<filename>scripts_pre_network.sh</filename>
<source>
<![CDATA[
#raw
#!/bin/bash
LINK1="$(ifconfig -a | sed 's/[ \t].*//;/^\(lo\|\)$/d' | sed -n 1p)"
LINK2="$(ifconfig -a | sed 's/[ \t].*//;/^\(lo\|\)$/d' | sed -n 2p)"
sed -i "s/nic1/${LINK1}/g" /tmp/profile/autoinst.xml
sed -i "s/nic2/${LINK2}/g" /tmp/profile/autoinst.xml
cp /tmp/profile/autoinst.xml /tmp/profile/modified.xml
#end raw
]]>
</source>
</script>
Cheers
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
This e-mail and any files transmitted with it are confidential and may be legally privileged. If you receive it in error or are not the intended recipient you must not copy, distribute or take any action in reliance upon it. Instead, please notify us immediately by telephoning +44 (20) 74820223 and delete the material from your systems. Smartodds is a business carried on by Smartodds Limited, a company registered with the Registrar of Companies for England and Wales with number 05108548. Registered office: Unit 531 Highgate Studios, 53-79 Highgate Road, London NW5 1TL
More information about the caasp-beta
mailing list