Skip to content

Commit

Permalink
Merge pull request #253 from agrare/network_interface_parse_config_fi…
Browse files Browse the repository at this point in the history
…le_on_reload

Parse config file on NetworkInterface#reload
  • Loading branch information
bdunne authored Aug 5, 2024
2 parents 5b68363 + a91b888 commit 1e256b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/linux_admin/network_interface/network_interface_rh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ class NetworkInterfaceRH < NetworkInterface
def initialize(interface)
@interface_file = self.class.path_to_interface_config_file(interface)
super
end

# Gathers current network information for this interface
#
# @return [Boolean] true if network information was gathered successfully
def reload
super
parse_conf
true
end

# Parses the interface configuration file into the @interface_config hash
Expand Down

0 comments on commit 1e256b9

Please sign in to comment.