Am Donnerstag, den 07.07.2016, 15:46 +0200 schrieb Guus Sliepen: > On Thu, Jul 07, 2016 at 02:10:46PM +0200, Benjamin Drung wrote: > > > > > We implemented a fix for jessie by patching the link.defn to check > > the > > device to be a InfiniBand devices and run the commands above > > instead > > (patch is attached).. Maybe the InfiniBand support should be placed > > in a > > separate .defn definition file. > I think it should go in link.defn, like in your patch, as that is the > place where the device itself is brought up. The configuration with > an > address is done in the other .defn files. It seems to me that you > would > want to just configure it in /etc/network/interfaces with the > "static" > or "dhcp" methods, right?
Yes. Example configuration snipped: auto ib0.beef iface ib0.beef inet static address 10.10.0.4 netmask 16 pre-up echo connected > /sys/class/net/$IFACE/mode > The patch looks fine except for one thing: > > > > > - ip link set up dev %link%; \ > > - ip link add link %link% name %iface0% type vlan id > > %vlan_id%; \ > > + if test -d /sys/class/net/%link%/device/infiniband; then \ > > + echo 0x%vlan_id% > /sys/class/net/%link%/create_child; > > \ > ifupdown converts the VLAN ID to a decimal number before passing it > in > %vlan_id%. So I believe the "0x" prefix is in error here. Can you > check > this? I don't have any InfiniBand devices myself, unfortunately. In the example above, the device is called ib0.beef and you have to echo "0xbeef" into /sys/class/net/ib0/create_child to create the partition. So we either have to use vlan_id0 or convent vlan_id to hex. -- Benjamin Drung System Developer Debian & Ubuntu Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Email: [email protected] URL: http://www.profitbricks.com Sitz der Gesellschaft: Berlin. Registergericht: Amtsgericht Charlottenburg, HRB 125506B. Geschäftsführer: Andreas Gauger, Achim Weiss.
signature.asc
Description: This is a digitally signed message part

