From 089430de1770781e41d267c4d8193864417278db Mon Sep 17 00:00:00 2001 From: Max Baker <> Date: Wed, 27 Apr 2005 04:31:11 +0000 Subject: [PATCH] Added basic i_set_vlan() --- Info/CiscoVTP.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Info/CiscoVTP.pm b/Info/CiscoVTP.pm index 88ffe4b6..e54e2884 100644 --- a/Info/CiscoVTP.pm +++ b/Info/CiscoVTP.pm @@ -138,6 +138,18 @@ sub i_vlan { return $i_vlan; } +sub set_i_vlan { + my $vtp = shift; + + # Check for CISCO-VLAN-MIB + my $i_vlan = $vtp->i_vlan2(); + if (defined $i_vlan) { + return $vtp->set_i_vlan2(@_); + } + # only support the first case for now. + return undef; +} + 1; __END__