VlanInfo: Parse the new protocol attribute
This commit is contained in:
@@ -122,6 +122,7 @@ module Netlink
|
||||
:unpack => lambda { |str,obj| VlanFlags.parse(str) }
|
||||
rtattr :egress_qos, IFLA_VLAN_EGRESS_QOS
|
||||
rtattr :ingress_qos, IFLA_VLAN_INGRESS_QOS
|
||||
rtattr :protocol, IFLA_VLAN_PROTOCOL, :ushort
|
||||
end
|
||||
|
||||
module Route
|
||||
|
@@ -59,6 +59,7 @@ module Netlink
|
||||
end
|
||||
li.data.egress_qos = opt.delete(:egress_qos) if opt.has_key?(:egress_qos)
|
||||
li.data.ingress_qos = opt.delete(:ingress_qos) if opt.has_key?(:ingress_qos)
|
||||
li.data.protocol = opt.delete(:protocol) if opt.has_key?(:protocol)
|
||||
opt
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user