Class: Nl::Linux::OvsDatapath::AttributeSets::Datapath

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/ovs_datapath.rb

Defined Under Namespace

Classes: Attribute, Ifindex, MasksCacheSize, MegaflowStats, Name, PerCpuPids, Stats, UpcallPid, UserFeatures

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



256
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 256

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



262
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 262

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#ifindex ⇒ Integer

Returns:

  • (Integer)

See Also:



249
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 249

def ifindex; self[:"ifindex"]&.value; end

#masks_cache_size ⇒ Integer

Returns:

  • (Integer)

See Also:



241
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 241

def masks_cache_size; self[:"masks_cache_size"]&.value; end

#megaflow_stats ⇒ Structs::OvsDpMegaflowStats



232
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 232

def megaflow_stats; self[:"megaflow_stats"]&.value; end

#name ⇒ String

Returns:

  • (String)

See Also:



219
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 219

def name; self[:"name"]&.value; end

#per_cpu_pids ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



245
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 245

def per_cpu_pids; self[:"per_cpu_pids"]&.value; end

#stats ⇒ Structs::OvsDpStats

Returns:

See Also:



228
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 228

def stats; self[:"stats"]&.value; end

#upcall_pid ⇒ Integer

upcall pid

Returns:

  • (Integer)

See Also:



224
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 224

def upcall_pid; self[:"upcall_pid"]&.value; end

#user_features ⇒ Integer

Known flags are defined in Flags::UserFeatures.

Returns:

  • (Integer)

See Also:



237
# File 'nl-linux/generated/nl/linux/ovs_datapath.rb', line 237

def user_features; self[:"user_features"]&.value; end