Skip to content

LinuxAdmin::NetworkInterface.new("name") assumes there a conf file and fails #139

@abonas

Description

@abonas

LinuxAdmin::NetworkInterface.new("interface_name") assumes there is a conf file in
/etc/sysconfig/network-scripts, but this is not always the case.
So it fails with

Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/sysconfig/network-scripts/ifcfg-eth2

I'm running rhel 6.5, and I have an interface named eth2, and it doesn't have a conf file for it (but the network works ok)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions