Skip to content

Commit 1e256b9

Browse files
authored
Merge pull request #253 from agrare/network_interface_parse_config_file_on_reload
Parse config file on NetworkInterface#reload
2 parents 5b68363 + a91b888 commit 1e256b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/linux_admin/network_interface/network_interface_rh.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ class NetworkInterfaceRH < NetworkInterface
1212
def initialize(interface)
1313
@interface_file = self.class.path_to_interface_config_file(interface)
1414
super
15+
end
16+
17+
# Gathers current network information for this interface
18+
#
19+
# @return [Boolean] true if network information was gathered successfully
20+
def reload
21+
super
1522
parse_conf
23+
true
1624
end
1725

1826
# Parses the interface configuration file into the @interface_config hash

0 commit comments

Comments
 (0)