Way to use rails console or something else to purge all veth* interfaces

Is there a way i can purge all of the veth* interfaces for every host in
foreman? they're bogus and some hosts have so many the webserver crashes
trying to bring up interfaces. Fix is in so no more are added but its a
painful mess to cleanup.

case. Something like "Nic::Base.where(:identifier => 'veth0').destroy"
would probably do the job. Not sure about regexes off the top of my head,
but you get the idea :slight_smile:

Greg

··· On 8 January 2016 at 18:12, Byron Miller wrote:

Is there a way i can purge all of the veth* interfaces for every host in
foreman? they’re bogus and some hosts have so many the webserver crashes
trying to bring up interfaces. Fix is in so no more are added but its a
painful mess to cleanup.

That would probably work, yes, although I’d take backups first, just in