Class: Nl::Linux::OvsVport::AttributeSets::Vport

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

Defined Under Namespace

Classes: Attribute, Ifindex, Name, Netnsid, Options, PortNo, Stats, Type, UpcallPid, UpcallStats

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:



329
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 329

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



335
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 335

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

Instance Method Details

#ifindex ⇒ Integer

Returns:

  • (Integer)

See Also:



314
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 314

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

#name ⇒ String

Returns:

  • (String)

See Also:



298
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 298

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

#netnsid ⇒ Integer

Returns:

  • (Integer)

See Also:



318
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 318

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

#options ⇒ AttributeSets::VportOptions

Returns:

See Also:



302
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 302

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

#port_no ⇒ Integer

Returns:

  • (Integer)

See Also:



289
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 289

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

#stats ⇒ Structs::OvsVportStats

Returns:

See Also:



310
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 310

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

#type ⇒ Integer

Known enum values are defined in Enums::VportType.

Returns:

  • (Integer)

See Also:



294
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 294

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

#upcall_pid ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



306
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 306

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

#upcall_stats ⇒ AttributeSets::UpcallStats



322
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 322

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