diff options
-rwxr-xr-x | lib/Vyatta/Config.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm index ea608ff..1469994 100755 --- a/lib/Vyatta/Config.pm +++ b/lib/Vyatta/Config.pm @@ -618,6 +618,15 @@ sub isTagNode { return (defined($href) and $href->{tag}); } +## isMultiNode("path") +# whether specified path is a "multi leaf node", i.e., multi-value node. +sub isMultiNode { + my ($self, $path) = @_; + my $href = $self->parseTmplAll($path, 1); + return (defined($href) and !$href->{is_value} and $href->{type} + and $href->{multi}); +} + ## isLeafNode("path") # whether specified path is a "leaf node", i.e., single-/multi-value node. sub isLeafNode { |