Project

General

Profile

« Previous | Next » 

Revision 44dac2f9

Added by Marek Hulán over 8 years ago

Fixes #10805 - match vlans attached to bonds correctly

View differences:

app/services/fact_parser.rb
delegate :logger, :to => :Rails
VIRTUAL = /\A([a-z0-9]+)_(\d+)\Z/
BRIDGES = /\A(vir)?br\d+(_nic)?\Z/
BONDS = /\A(bond\d+)|(lagg\d+)\Z/
BONDS = /\A(bond\d+)\Z|\A(lagg\d+)\Z/
VIRTUAL_NAMES = /#{VIRTUAL}|#{BRIDGES}|#{BONDS}/
def self.parser_for(type)

Also available in: Unified diff