Skip to content

Commit

Permalink
Parse config file on NetworkInterface#reload
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Aug 5, 2024
1 parent 5b68363 commit a91b888
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 a91b888

Please sign in to comment.