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 8051f20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 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,6 +12,13 @@ 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
end

Expand Down

0 comments on commit 8051f20

Please sign in to comment.