Fix for Errno::EOPNOTSUPP when adding vlan with Ubuntu 10.04 (32 or 64 bit)
This commit is contained in:
@@ -28,7 +28,7 @@ module Netlink
|
||||
field :type, :ushort # ARPHRD_*
|
||||
field :index, :int
|
||||
field :flags, :uint # IFF_*
|
||||
field :change, :uint, :default=>0xffffffff # flags to change
|
||||
field :change, :uint # flags to change
|
||||
rtattr :address, IFLA_ADDRESS, :l2addr
|
||||
rtattr :broadcast, IFLA_BROADCAST, :l2addr
|
||||
rtattr :ifname, IFLA_IFNAME, :cstring
|
||||
|
@@ -72,10 +72,6 @@ class TestAddr < Test::Unit::TestCase
|
||||
@ip.vlan.list(:link=>"lo").map { |x| x.linkinfo.data.id }
|
||||
end
|
||||
|
||||
# FIXME: On 10.04.2 LTS (32 and 64 bit) this gives Errno::EOPNOTSUPP; but
|
||||
# ip link add link lo type vlan id 1234
|
||||
# ip link delete vlan0
|
||||
# both work fine.
|
||||
test "Add and remove vlan" do
|
||||
begin
|
||||
@ip.vlan.delete(:link=>"lo", :vlan_id=>1234)
|
||||
|
Reference in New Issue
Block a user