Class: TCWrapper::QdiscRoot

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/distem/wrapper/tc/qdiscroot.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

- (QdiscRoot) initialize(iface)

Returns a new instance of QdiscRoot



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

def initialize(iface)
  super(iface,TYPE,"root",Hash.new)
  @id = IdRoot.new
end

Instance Attribute Details

- (Object) id (readonly)

Returns the value of attribute id



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

def id
  @id
end

Instance Method Details

- (Object) get_cmd(*args)



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

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