Class: Y2Network::Widgets::IP6Forwarding
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Y2Network::Widgets::IP6Forwarding
- Defined in:
- src/lib/y2network/widgets/ip6_forwarding.rb
Instance Method Summary collapse
- #help ⇒ Object
- #init ⇒ Object
-
#initialize(config) ⇒ IP6Forwarding
constructor
A new instance of IP6Forwarding.
- #label ⇒ Object
- #store ⇒ Object
Constructor Details
#initialize(config) ⇒ IP6Forwarding
Returns a new instance of IP6Forwarding.
25 26 27 28 29 30 |
# File 'src/lib/y2network/widgets/ip6_forwarding.rb', line 25 def initialize(config) super() textdomain "network" @config = config end |
Instance Method Details
#help ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'src/lib/y2network/widgets/ip6_forwarding.rb', line 45 def help _( "<p>Enable <b>IPv6 Forwarding</b> (forwarding packets from external networks\n" \ "to the internal one) if this system is a router.\n" \ "<b>Warning:</b> IPv6 forwarding disables IPv6 stateless address\n" \ "autoconfiguration (SLAAC).</p>" ) end |
#init ⇒ Object
32 33 34 35 |
# File 'src/lib/y2network/widgets/ip6_forwarding.rb', line 32 def init self.value = @config.routing.forward_ipv6 disable if @config.backend?(:network_manager) end |
#label ⇒ Object
41 42 43 |
# File 'src/lib/y2network/widgets/ip6_forwarding.rb', line 41 def label _("Enable I&Pv6 Forwarding") end |
#store ⇒ Object
37 38 39 |
# File 'src/lib/y2network/widgets/ip6_forwarding.rb', line 37 def store @config.routing.forward_ipv6 = value end |