Class: Y2Network::ConnectionConfig::IPConfig
- Inherits:
-
Object
- Object
- Y2Network::ConnectionConfig::IPConfig
- Includes:
- Y2Network::CanBeCopied, Yast2::Equatable
- Defined in:
- src/lib/y2network/connection_config/ip_config.rb
Instance Attribute Summary collapse
-
#address ⇒ IPAddress
IP address.
-
#broadcast ⇒ IPAddress?
Broadcast address.
-
#id ⇒ String
ID (needed for sysconfig backend in order to write suffixes in ifcfg-* files).
-
#label ⇒ String?
Address label.
-
#remote_address ⇒ IPAddress?
Remote IP address of a point to point connection.
Instance Method Summary collapse
-
#initialize(address, id: "", label: nil, remote_address: nil, broadcast: nil) ⇒ IPConfig
constructor
Constructor.
Methods included from Y2Network::CanBeCopied
Constructor Details
#initialize(address, id: "", label: nil, remote_address: nil, broadcast: nil) ⇒ IPConfig
Constructor
52 53 54 55 56 57 58 |
# File 'src/lib/y2network/connection_config/ip_config.rb', line 52 def initialize(address, id: "", label: nil, remote_address: nil, broadcast: nil) @address = address @id = id @label = label @remote_address = remote_address @broadcast = broadcast end |
Instance Attribute Details
#address ⇒ IPAddress
Returns IP address.
31 32 33 |
# File 'src/lib/y2network/connection_config/ip_config.rb', line 31 def address @address end |
#broadcast ⇒ IPAddress?
Returns Broadcast address.
37 38 39 |
# File 'src/lib/y2network/connection_config/ip_config.rb', line 37 def broadcast @broadcast end |
#id ⇒ String
Returns ID (needed for sysconfig backend in order to write suffixes in ifcfg-* files).
40 41 42 |
# File 'src/lib/y2network/connection_config/ip_config.rb', line 40 def id @id end |
#label ⇒ String?
Returns Address label.
33 34 35 |
# File 'src/lib/y2network/connection_config/ip_config.rb', line 33 def label @label end |
#remote_address ⇒ IPAddress?
Returns Remote IP address of a point to point connection.
35 36 37 |
# File 'src/lib/y2network/connection_config/ip_config.rb', line 35 def remote_address @remote_address end |