Class: TCWrapper::QdiscIngress

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/distem/wrapper/tc/qdiscingress.rb

Constant Summary

TYPE =
"qdisc"

Constants inherited from Wrapper

Wrapper::CMDBIN

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Wrapper

#add_param, #get_params

Constructor Details

- (QdiscIngress) initialize(iface)

Returns a new instance of QdiscIngress



10
11
12
13
# File 'lib/distem/wrapper/tc/qdiscingress.rb', line 10

def initialize(iface)
  super(iface,TYPE,"ingress",Hash.new)
  @id = Id.new("ffff")
end

Instance Attribute Details

- (Object) id (readonly)

Returns the value of attribute id



8
9
10
# File 'lib/distem/wrapper/tc/qdiscingress.rb', line 8

def id
  @id
end

Instance Method Details

- (Object) get_cmd(*args)



15
16
17
# File 'lib/distem/wrapper/tc/qdiscingress.rb', line 15

def get_cmd(*args)
  super(*args) + "ingress"
end