Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse config file on NetworkInterface#reload #253

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE the base class initialize calls reload so we don't need to super then parse_conf here.

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