Class: Construqt::Flavour::Ciscian::Hp2510g::TrunkVerb
Instance Attribute Summary
#changes, #section
Class Method Summary
collapse
#add, #always_select_empty_pattern, compare, #determine_output_patterns, extract_varname, #find_key_var, find_variables, #group?, #initialize, #integrate, invert, is_key_value?, is_value?, #keys_of_set, matches, parse_line, #serialize, variables, #yes
Class Method Details
.find_regex(variable) ⇒ Object
158
159
160
161
162
|
# File 'lib/construqt/flavour/ciscian/dialect_hp-2510g.rb', line 158
def self.find_regex(variable)
{
"mode" => "(Trunk|LACP)"
}[variable]
end
|
.patterns ⇒ Object
164
165
166
|
# File 'lib/construqt/flavour/ciscian/dialect_hp-2510g.rb', line 164
def self.patterns
["no trunk {-ports}", "trunk {+ports} Trk{*channel} {=mode}"]
end
|
.section ⇒ Object
154
155
156
|
# File 'lib/construqt/flavour/ciscian/dialect_hp-2510g.rb', line 154
def self.section
"trunk"
end
|