Comments (3)
Here's some thoughts on a possible [simple] implementation of vlan support into network_config.
- add a new boolean parameter to the network_config type called
vlan
; an alternative possibility would be add some sort of parameter to declare the type of the interface. Eg.raw|bond|bridge|vlan
- the debian & redhat providers would both need to be modified to parse the
namevar
and or the device name into a raw interface name part and a vlan ID part, if thevlan
parameter is true. - in the redhat provider the "vlanness" of an interface could be be detected by either parsing the filename directly or the device variable in the per interface configuration. It seems that perhaps parsing the device variable would be slightly simpler, only requiring a small hook in
parse_file
instead of having to build two separate lists of files. If it was desired to validate the format of the files being parsed, it might be easier to do it the other way around and track the name of the file that was parsed to valid the device var in general. No modification offormat_file
/etc. should be necessary if we are requiring thevlan
param on the type to be set. - in the debian provider the
Instance.initialize
method looks like a good place to parse the name into raw & vlan tagged components.format_file
would need to be modified to inject thevlan-raw-device
line.
Thoughts/comments/criticisms?
from puppet-network.
Off issue discussed with @adrienthebo has resulted in the conclusion that it makes more sense to add a parameter to set the type of interface that's being configured. eg, vlan|bridge|bond as these states seem to be mutually exclusive, at least under the linux kernel.
from puppet-network.
Hello:
What's the status of this issue? I'm just pinging old issues. Is this possibly related to #98?
from puppet-network.
Related Issues (20)
- fix current rubocop issues
- Option to set DNS? HOT 4
- update version dependencies for boolean and filemappper HOT 2
- Are there any plans to support `netplan` with Ubuntu 18? HOT 2
- Get rid of type *property* defaults and use of Puppet::Property::Boolean HOT 6
- Question: persistent network rules HOT 1
- add puppet 6 support
- Double initialisation of "interfaces" provider causes exception (aka can't purge unmanaged config) HOT 1
- Unable to set correct netmask for IPv6 HOT 1
- Drop Puppet 4/5 support
- Puppet facts not populating after 61b10ea7fc1861bd334f14aad456d3027592e68f HOT 6
- unable to set /32 route HOT 2
- Question: VLAN in RedHat
- Ubuntu 20.04 bonded interfaces don't work -- explicitly disables slave/member interfaces in manifests/bond/debian.pp
- How to enable multicast on multiple ethernets without using udp range in ubuntu?? HOT 1
- The 'options' property of the network_route type doesn't do anything
- Support for SLES
- Dual Stack Support HOT 3
- installation of ifenslave during configuring bond fails on Debian >=11
- When will puppet-network support filemapper 4.0.0?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-network.