Skip to content

Conversation

@Millnert
Copy link

Adds missing VLAN capability to network::if::static.

The existing documentation for using VLAN:s on static interfaces says to
instantiate network::global with the parameter vlan set to yes, such as:
class{'network::global':
vlan => 'yes'
}

This isn't sufficient. ifcfg-$ifname requires also the parameter
'VLAN=yes' defined, for a VLAN interface.

With this approach, that parameter is explicitly defined to
network::static::if, such as:

'network::static::if' { 'eth0.330':
  ensure    => 'up',
  vlan      => true,
  ipaddress => '10.2.3.248',
  netmask   => '255.255.255.0',
}

This makes it abundantly clear what's going on.

Adds missing VLAN capability to network::if::static.

The existing documentation for using VLAN:s on static interfaces says to
instantiate network::global with the parameter vlan set to yes, such as:
    class{'network::global':
      vlan => 'yes'
    }

This isn't sufficient. ifcfg-$ifname requires also the parameter
'VLAN=yes' defined, for a VLAN interface.

With this approach, that parameter is explicitly defined to
network::static::if, such as:

    'network::static::if' { 'eth0.330':
      ensure    => 'up',
      vlan      => true,
      ipaddress => '10.2.3.248',
      netmask   => '255.255.255.0',
    }

This makes it abundandly clear what's going on.
@razorsedge
Copy link
Owner

@Millnert Thank you for your submission. As per the DEVELOP.md file, could you please resubmit from the develop branch and update the rspec tests so that they will pass?

@razorsedge
Copy link
Owner

Similar to #57.

matschundbrei pushed a commit to matschundbrei/puppet-network that referenced this pull request Nov 22, 2017
@safespring safespring closed this by deleting the head repository Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants