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_route does not catch nor fix invalid routes #64

Closed
KlavsKlavsen opened this issue Feb 5, 2014 · 2 comments · Fixed by #284
Closed

network_route does not catch nor fix invalid routes #64

KlavsKlavsen opened this issue Feb 5, 2014 · 2 comments · Fixed by #284

Comments

@KlavsKlavsen
Copy link

I had accidently set:
other routes.. and then:
network_route { '10.97.0.0/16':
ensure => 'present',
gateway => '192.168.22.50',
interface => 'eth0',
netmask => '8',
network => '10.97.0.0'
}

Which wrote this in the route-eth0 file:
10.0.0.0/255.0.0.0 via 192.168.22.1 dev eth0
10.0.0.0/255.255.0.0 via 192.168.22.50 dev eth0
192.168.0.0/255.255.0.0 via 192.168.22.1 dev eth0
default via 192.168.22.50 dev eth0

When I then corrected it to netmask => 16 and network 10.97.0.0 - it spit out errors, instead of fixing it:
Could not evaluate: undefined method `[]' for nil:NilClass

@jyaworski
Copy link
Member

Hello:

What's the status of this issue? I'm just pinging old issues.

@oniGino
Copy link

oniGino commented May 6, 2022

This is partially fixed in #282 but the NilClass issue can still occur, but at least route file should be written properly
this can maybe be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants