voxpupuli / puppet-network

Types and providers to manage network interfaces
https://forge.puppet.com/puppet/network
Apache License 2.0
67 stars 107 forks source link

The 'options' property of the network_route type doesn't do anything #295

Closed natemccurdy closed 1 year ago

natemccurdy commented 1 year ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

network_route { '10.10.0.0/16':
  ensure    => 'present',
  gateway   => '10.20.20.1',
  interface => 'eth1',
  netmask   => '255.255.0.0',
  network   => '10.10.0.0',
  options   => 'table foo',
}

What are you seeing

Puppet applies the change:

Notice: /Stage[main]/Main/Network_route[10.10.0.0/16]/ensure: created
Notice: Applied catalog in 0.18 seconds

But the options are missing:

> cat /etc/sysconfig/network-scripts/route-eth1
# HEADER: This file is being managed by puppet. Changes to
# HEADER: routes that are not being managed by puppet will persist;
# HEADER: however changes to routes that are being managed by puppet will
# HEADER: be overwritten. In addition, file order is NOT guaranteed.
# HEADER: Last generated at: 2023-04-06 23:00:13 +0000
10.10.0.0/16 via 10.20.20.1 dev eth1

What behavior did you expect instead

10.10.0.0/16 via 10.20.20.1 dev eth1 table foo