Bug #834
interface aliases on redhat
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | 0.25.0 | |||
| Affected Puppet version: | 0.25.4 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
The filename for the interface files, when creating an alias is incorrect.
Although checked with Redhat, there is a dependency on the filename starting :
ifcfg-:
Therefore, the filename generated by Puppet of
ifcfg-does not work; as it results in the OS trying to bring up the alias (in some circumstances) prior to the interface. A simple patch to the provider solves this and is attached to the ticket (generated against trunk in svn). It should be applied to :
trunk/lib/puppet/provider/interface/redhat.rb
History
Updated by Chris MacLeod over 4 years ago
Not all interface’s use a colon (‘:’)
if you are creating trunked interfaces the file looks like: ifcfg-eth0.400 (where 400 is the vlan id)
Updated by Redmine Admin over 4 years ago
Indeed, the problem with the missing : is just for aliases; not all interfaces.
The patch I attached just changes the behaviour of aliases on an existing interface which do as far as I can tell, require a filename of the format
ifcfg-The behaviour in all other cases remains the same.:
As I understand it, the example
ifcfg-eth0.400is not an alias, so does not need a : and would be unchanged by the patch. If, however, you wanted to create an alias on this interface, the file name would indeed have to include the : and start
ifcfg-eth0.400:
Updated by Luke Kanies over 4 years ago
- Status changed from 1 to Closed
- 7 set to fixed
Applied in commit:96b3cde842a9efa3fbd8226c6f044a6e18c612d0.