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

network::if::static: Add VLAN capability #87

Closed
wants to merge 1 commit into from
Closed

network::if::static: Add VLAN capability #87

wants to merge 1 commit into from

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