line |
true |
false |
branch |
421
|
0 |
1 |
if (@_ == 1) { } |
430
|
0 |
1 |
unless my $self = $class->SUPER::new(%cliArgs) |
460
|
1 |
0 |
unless (defined $args{'output_record_separator'}) |
464
|
0 |
2 |
if ($arg eq 'prompt') { } |
|
0 |
2 |
elsif ($arg eq 'return_result') { } |
|
0 |
2 |
elsif ($arg eq 'more_paging') { } |
|
0 |
2 |
elsif ($arg eq 'cmd_confirm_prompt') { } |
|
0 |
2 |
elsif ($arg eq 'cmd_initiated_prompt') { } |
|
0 |
2 |
elsif ($arg eq 'cmd_feed_timeout') { } |
|
0 |
2 |
elsif ($arg eq 'console') { } |
|
0 |
2 |
elsif ($arg eq 'wake_console') { } |
|
0 |
2 |
elsif ($arg eq 'debug_file') { } |
487
|
0 |
0 |
if (@_ == 1) { } |
489
|
0 |
0 |
if ($args{'host'} =~ /^(.+?)\s+(\d+)$/) |
513
|
0 |
0 |
defined $args{'blocking'} ? : |
|
0 |
0 |
defined $args{'connection_timeout'} ? : |
|
0 |
0 |
defined $args{'errmode'} ? : |
|
0 |
0 |
defined $args{'return_reference'} ? : |
541
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
0 |
0 |
defined $args{'timeout'} ? : |
|
0 |
0 |
defined $args{'read_attempts'} ? : |
|
0 |
0 |
defined $args{'data_with_error'} ? : |
|
0 |
0 |
defined $args{'wake_console'} ? : |
|
0 |
0 |
defined $args{'non_recognized_login'} ? : |
|
0 |
0 |
defined $args{'generic_login'} ? : |
|
0 |
0 |
$self->{'LOGINSTAGE'} ? : |
543
|
0 |
0 |
if (not $self->{'LOGINSTAGE'} and $self->{'TYPE'} ne "SERIAL" and useIPv6() and defined $args{'blocking'} and not $args{'blocking'}) |
547
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
555
|
0 |
0 |
if @_ |
557
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == "Control::CLI::Extreme"->can("connect_poll")) |
562
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
565
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
574
|
0 |
0 |
if $self->connection_type eq "SERIAL" |
597
|
0 |
0 |
defined $args{'blocking'} ? : |
|
0 |
0 |
defined $args{'timeout'} ? : |
|
0 |
0 |
defined $args{'errmode'} ? : |
|
0 |
0 |
defined $args{'return_reference'} ? : |
607
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
0 |
0 |
defined $args{'read_attempts'} ? : |
|
0 |
0 |
defined $args{'data_with_error'} ? : |
|
0 |
0 |
defined $args{'wake_console'} ? : |
|
0 |
0 |
defined $args{'non_recognized_login'} ? : |
|
0 |
0 |
defined $args{'generic_login'} ? : |
618
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
626
|
0 |
0 |
if @_ |
628
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == "Control::CLI::Extreme"->can("login_poll")) |
633
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
636
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
647
|
0 |
0 |
if (@_ == 1) { } |
655
|
0 |
0 |
unless defined $args{'command'} |
668
|
0 |
0 |
defined $args{'blocking'} ? : |
|
0 |
0 |
defined $args{'timeout'} ? : |
|
0 |
0 |
defined $args{'errmode'} ? : |
|
0 |
0 |
defined $args{'return_result'} ? : |
|
0 |
0 |
(defined $args{'return_result'} ? $args{'return_result'} : $self->{$Package}{'return_result'}) ? : |
|
0 |
0 |
defined $args{'return_reference'} ? : |
692
|
0 |
0 |
defined $args{'prompt'} ? : |
|
0 |
0 |
defined $args{'more_prompt'} ? : |
|
0 |
0 |
defined $args{'more_prompt'} ? : |
|
0 |
0 |
defined $args{'more_pages'} ? : |
|
0 |
0 |
defined $args{'cmd_confirm_prompt'} ? : |
|
0 |
0 |
defined $args{'progress_dots'} ? : |
696
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
700
|
0 |
0 |
if ($args{'poll_syntax'}) { } |
701
|
0 |
0 |
wantarray ? : |
704
|
0 |
0 |
wantarray ? : |
724
|
0 |
0 |
if (lc $_[0] ne 'command' and lc $_[0] ne 'poll_syntax') { } |
733
|
0 |
0 |
if $args[$i] eq "command" |
734
|
0 |
0 |
if $args[$i] eq "feed" |
735
|
0 |
0 |
if $args[$i] eq "feed_list" and ref $args[$i + 1] eq "ARRAY" |
736
|
0 |
0 |
if $args[$i] eq "prompt" |
737
|
0 |
0 |
if $args[$i] eq "more_pages" |
738
|
0 |
0 |
if $args[$i] eq "timeout" |
739
|
0 |
0 |
if $args[$i] eq "blocking" |
740
|
0 |
0 |
if $args[$i] eq "return_reference" |
741
|
0 |
0 |
if $args[$i] eq "return_result" |
742
|
0 |
0 |
if $args[$i] eq "reset_prompt" |
743
|
0 |
0 |
if $args[$i] eq "more_prompt" |
744
|
0 |
0 |
if $args[$i] eq "progress_dots" |
745
|
0 |
0 |
if $args[$i] eq "cmd_initiated_prompt" |
746
|
0 |
0 |
if $args[$i] eq "errmode" |
747
|
0 |
0 |
if $args[$i] eq "poll_syntax" |
750
|
0 |
0 |
unless defined $cmd |
753
|
0 |
0 |
$returnRes ? : |
791
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
795
|
0 |
0 |
if ($pollSyntax) { } |
796
|
0 |
0 |
wantarray ? : |
799
|
0 |
0 |
wantarray ? : |
807
|
0 |
0 |
if @_ |
809
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == "Control::CLI::Extreme"->can("cmd_poll")) |
814
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
817
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
828
|
0 |
0 |
if (@_ == 1) { } |
842
|
0 |
0 |
defined $args{'blocking'} ? : |
|
0 |
0 |
defined $args{'timeout'} ? : |
|
0 |
0 |
defined $args{'errmode'} ? : |
858
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
862
|
0 |
0 |
if ($args{'poll_syntax'}) { } |
863
|
0 |
0 |
wantarray ? : |
866
|
0 |
0 |
wantarray ? : |
874
|
0 |
0 |
if @_ |
876
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == "Control::CLI::Extreme"->can("attribute_poll")) |
881
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
884
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
895
|
0 |
0 |
if (@_ == 1) { } |
910
|
0 |
0 |
defined $args{'blocking'} ? : |
|
0 |
0 |
defined $args{'timeout'} ? : |
|
0 |
0 |
defined $args{'errmode'} ? : |
929
|
0 |
0 |
$args{'baudrate'} eq 'max' ? : |
933
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
937
|
0 |
0 |
if ($args{'poll_syntax'}) { } |
938
|
0 |
0 |
wantarray ? : |
941
|
0 |
0 |
wantarray ? : |
949
|
0 |
0 |
if @_ |
951
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == "Control::CLI::Extreme"->can("change_baudrate_poll")) |
956
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
959
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
970
|
0 |
0 |
if (@_ == 1) { } |
984
|
0 |
0 |
defined $args{'blocking'} ? : |
|
0 |
0 |
defined $args{'timeout'} ? : |
|
0 |
0 |
defined $args{'errmode'} ? : |
995
|
0 |
0 |
defined $args{'password'} ? : |
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
1001
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
1009
|
0 |
0 |
if @_ |
1011
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == "Control::CLI::Extreme"->can("enable_poll")) |
1015
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
1018
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
1029
|
0 |
0 |
if (@_ == 1) { } |
1043
|
0 |
0 |
defined $args{'blocking'} ? : |
|
0 |
0 |
defined $args{'timeout'} ? : |
|
0 |
0 |
defined $args{'errmode'} ? : |
1057
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
1065
|
0 |
0 |
if @_ |
1067
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == "Control::CLI::Extreme"->can("device_more_paging_poll")) |
1071
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
1074
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
1094
|
0 |
0 |
defined $args{'blocking'} ? : |
|
0 |
0 |
defined $args{'timeout'} ? : |
|
0 |
0 |
defined $args{'errmode'} ? : |
1106
|
0 |
0 |
defined $args{'username'} ? : |
|
0 |
0 |
defined $args{'password'} ? : |
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
1109
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
1117
|
0 |
0 |
if @_ |
1119
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == "Control::CLI::Extreme"->can("device_peer_cpu_poll")) |
1123
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
1126
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
1137
|
0 |
0 |
unless (defined $fh) |
1140
|
0 |
0 |
unless (ref $fh or length $fh) |
1144
|
0 |
0 |
unless (ref $fh or defined fileno $fh) |
1147
|
0 |
0 |
unless open $fh, ">", "$logfile" |
1168
|
0 |
0 |
if (defined $newSetting) |
1180
|
0 |
0 |
if (defined $newSetting) |
1183
|
0 |
0 |
$newSetting ? : |
1184
|
0 |
0 |
$delayPrompt ? : |
1193
|
0 |
0 |
if defined $newSetting |
1201
|
0 |
0 |
if defined $newSetting |
1209
|
0 |
0 |
if defined $newSetting |
1217
|
0 |
0 |
if (defined $newSetting) |
1228
|
0 |
0 |
if (defined $newSetting) |
1239
|
0 |
0 |
if defined $newSetting |
1247
|
0 |
0 |
if defined $newSetting |
1255
|
0 |
0 |
if defined $newSetting |
1263
|
0 |
0 |
if defined $newSetting |
1271
|
0 |
0 |
if defined $newSetting |
1279
|
0 |
0 |
if (defined $newSetting and defined $sendChar || !$newSetting) |
1281
|
0 |
0 |
$newSetting ? : |
1282
|
0 |
0 |
"\n" eq $sendChar ? : |
1309
|
0 |
0 |
unless ($self->{'POLLING'}) |
1314
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
1321
|
0 |
0 |
if (@_ and not %args) |
1358
|
0 |
0 |
defined $args{'username'} ? : |
|
0 |
0 |
defined $args{'password'} ? : |
|
0 |
0 |
defined $args{'passphrase'} ? : |
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
0 |
0 |
defined $args{'login_timeout'} ? : |
|
0 |
0 |
defined $args{'read_attempts'} ? : |
|
0 |
0 |
defined $args{'data_with_error'} ? : |
|
0 |
0 |
defined $args{'wake_console'} ? : |
|
0 |
0 |
defined $args{'non_recognized_login'} ? : |
|
0 |
0 |
defined $args{'generic_login'} ? : |
|
0 |
0 |
$self->{'LOGINSTAGE'} ? : |
1363
|
0 |
0 |
if defined $connect->{'errmode'} |
1365
|
0 |
0 |
if ($connect->{'stage'} < 1) |
1386
|
0 |
0 |
unless $ok |
1388
|
0 |
0 |
unless defined $self->console |
1406
|
0 |
0 |
if $ok |
1416
|
0 |
0 |
unless ($self->{'POLLING'}) |
1421
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
1425
|
0 |
0 |
if (@_ and not %args) |
1450
|
0 |
0 |
defined $args{'username'} ? : |
|
0 |
0 |
defined $args{'password'} ? : |
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
0 |
0 |
defined $args{'read_attempts'} ? : |
|
0 |
0 |
defined $args{'data_with_error'} ? : |
|
0 |
0 |
defined $args{'wake_console'} ? : |
|
0 |
0 |
defined $args{'non_recognized_login'} ? : |
|
0 |
0 |
defined $args{'generic_login'} ? : |
1455
|
0 |
0 |
if defined $login->{'errmode'} |
1456
|
0 |
0 |
if $self->eof |
1461
|
0 |
0 |
if ($login->{'stage'} < 1) |
1463
|
0 |
0 |
if ($self->{'LOGINSTAGE'}) { } |
1471
|
0 |
0 |
if ($self->{'LOGINSTAGE'} eq 'username' and $login->{'username'}) { } |
|
0 |
0 |
elsif ($self->{'LOGINSTAGE'} eq 'password' and $login->{'password'}) { } |
|
0 |
0 |
elsif ($self->console and $login->{'wake_console'}) { } |
1472
|
0 |
0 |
unless $self->print("line", $login->{'username'}, "errmode", "return") |
1478
|
0 |
0 |
unless $self->print("line", $login->{'password'}, "errmode", "return") |
1485
|
0 |
0 |
unless $self->put("string", $login->{'wake_console'}, "errmode", "return") |
1489
|
0 |
0 |
if ($login->{'stage'} < 2) |
1495
|
0 |
0 |
unless $ok |
1499
|
0 |
0 |
$self->{'POLL'}{'read_buffer'} =~ /\n/ ? : |
1506
|
0 |
0 |
if (($patdepth = rindex($self->{'POLL'}{'read_buffer'}, $LoginPatterns{$key})) >= 0) |
1508
|
0 |
0 |
unless ($login->{'family_type'}) |
1510
|
0 |
0 |
if ($key eq 'banner' or $key eq 'menu' or $key eq 'submenu') { } |
|
0 |
0 |
elsif ($key eq 'srbanner') { } |
|
0 |
0 |
elsif ($key eq 'xlrbanner') { } |
|
0 |
0 |
elsif ($key eq 'ersbanner' or $key eq 'passportbanner' or $key eq 'pp1600banner') { } |
|
0 |
0 |
elsif ($key eq 'vspbanner' or $key eq 'fabengbanner') { } |
|
0 |
0 |
elsif ($key eq 'wlan9100banner') { } |
|
0 |
0 |
elsif ($key eq 'xos') { } |
|
0 |
0 |
elsif ($key eq 'switchEngine') { } |
|
0 |
0 |
elsif ($key eq 'isw') { } |
|
0 |
0 |
elsif ($key eq 'slx') { } |
1514
|
0 |
0 |
if ($key eq "banner") |
1515
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /\*\*\* ((?:[^\*\n]+?) (?:Switch|Controller|Platform) (?:WC)?\d+.*?)\s+/ |
1517
|
0 |
0 |
if ($self->{'POLL'}{'read_buffer'} =~ /FW:([\d\.]+)\s+SW:v([\d\.]+)/) |
1527
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /\((Secure Router \d+)\)/ |
1528
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /Version: (.+)/ |
1534
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /\* Software Release (?i:v|REL)?(.+?) / |
1540
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /\* Software Release (?i:v|REL)?(.+?) / |
1546
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /(?:Software(?: Release)?|Fabric Engine) Build (.+?) / |
1552
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /AvayaOS Version (.+?) / |
1575
|
0 |
0 |
if ($patdepth > $deepest) |
1580
|
0 |
0 |
if $deepest > -1 |
1583
|
0 |
0 |
if ($login->{'family_type'}) { } |
1584
|
0 |
0 |
if ($login->{'family_type'} eq $Prm{'pers'}) { } |
1587
|
0 |
0 |
if ($self->{'POLL'}{'local_buffer'} =~ /($InitPrompt{$promptType})/) |
1595
|
0 |
0 |
if ($self->{'POLL'}{'local_buffer'} =~ /($InitPrompt{$login->{'family_type'}})/) |
1603
|
0 |
0 |
if ($self->{'POLL'}{'local_buffer'} =~ /($InitPrompt{$key})/) |
1613
|
0 |
0 |
if ($capturedPrompt) |
1617
|
0 |
0 |
if ($login->{'family_type'} eq $Prm{'slx'}) |
1623
|
0 |
0 |
if $login->{'family_type'} eq $Prm{'pers'} |
1624
|
0 |
0 |
if ($login->{'detectionFromPrompt'}) |
1625
|
0 |
0 |
if ($login->{'family_type'} eq $Prm{'bstk'} or defined $cliType and $cliType eq 'nncli') { } |
1636
|
0 |
0 |
if ($self->{'POLL'}{'read_buffer'} =~ /$usernamePrompt/) { } |
|
0 |
0 |
elsif ($self->{'POLL'}{'read_buffer'} =~ /$passwordPrompt/) { } |
1646
|
0 |
0 |
if ($pattern eq 'banner' or $pattern eq 'bell') { } |
|
0 |
0 |
elsif ($pattern eq 'menu') { } |
|
0 |
0 |
elsif ($pattern eq 'submenu') { } |
|
0 |
0 |
elsif ($pattern =~ /^more\d$/) { } |
|
0 |
0 |
elsif ($pattern =~ /^consoleLogMsg\d$/) { } |
|
0 |
0 |
elsif ($pattern eq 'lastlogin') { } |
|
0 |
0 |
elsif ($pattern eq 'username') { } |
|
0 |
0 |
elsif ($pattern eq 'password') { } |
|
0 |
0 |
elsif ($pattern =~ /^localfail/) { } |
|
0 |
0 |
elsif ($pattern eq 'radiusfail') { } |
|
0 |
0 |
elsif ($pattern =~ /^radiustimeout\d$/) { } |
1648
|
0 |
0 |
unless $self->put("string", $CTRL_Y, "errmode", "return") |
1654
|
0 |
0 |
unless $self->put("string", "c", "errmode", "return") |
1660
|
0 |
0 |
unless $self->put("string", $CTRL_C, "errmode", "return") |
1666
|
0 |
0 |
unless $self->put("string", "q", "errmode", "return") |
1675
|
0 |
0 |
unless $self->print("errmode", "return") |
1682
|
0 |
0 |
unless $self->print("errmode", "return") |
1688
|
0 |
0 |
if ($login->{'login_attempted'}) |
1692
|
0 |
0 |
unless ($login->{'username'}) |
1693
|
0 |
0 |
if ($self->{'TYPE'} eq 'SSH') { } |
1697
|
0 |
0 |
unless ($login->{'prompt_credentials'}) |
1704
|
0 |
0 |
unless $self->print("line", $login->{'username'}, "errmode", "return") |
1712
|
0 |
0 |
if ($login->{'password_sent'}) |
1716
|
0 |
0 |
unless (defined $login->{'password'}) |
1717
|
0 |
0 |
unless ($login->{'prompt_credentials'}) |
1723
|
0 |
0 |
unless $self->print("line", $login->{'password'}, "errmode", "return") |
1739
|
0 |
0 |
if (not $login->{'family_type'} and $login->{'non_recognized_login'}) |
1743
|
0 |
0 |
if (not $login->{'generic_login'} and $login->{'family_type'} eq $Prm{'generic'} || $login->{'detectionFromPrompt'} && !($self->{'LASTPROMPT'} =~ /^@/)) { } |
1749
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
1751
|
0 |
0 |
if ($login->{'stage'} < 3) |
1753
|
0 |
0 |
unless $ok |
1755
|
0 |
0 |
if ($login->{'family_type'} eq $Prm{'generic'} and $self->{'errmode'} eq 'croak' || $self->{'errmode'} eq 'die') |
1760
|
0 |
0 |
if ($login->{'stage'} < 4) |
1761
|
0 |
0 |
if ($login->{'family_type'} eq $Prm{'pers'} or $login->{'family_type'} eq $Prm{'xlr'}) |
1762
|
0 |
0 |
$self->{'LASTPROMPT'} =~ /^@/ ? : |
1763
|
0 |
0 |
if $self->{'LASTPROMPT'} =~ /^@/ |
1765
|
0 |
0 |
if $login->{'detectionFromPrompt'} |
1769
|
0 |
0 |
if $login->{'login_attempted'} |
1779
|
0 |
0 |
unless ($self->{'POLLING'}) |
1784
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
1788
|
0 |
0 |
if (@_ and not %args) |
1792
|
0 |
0 |
if defined $args{'feed_list'} and !ref($args{'feed_list'}) eq "ARRAY" |
1820
|
0 |
0 |
defined $args{'prompt'} ? : |
|
0 |
0 |
defined $args{'more_prompt'} ? : |
|
0 |
0 |
defined $args{'more_prompt'} ? : |
|
0 |
0 |
defined $args{'more_pages'} ? : |
|
0 |
0 |
defined $args{'cmd_confirm_prompt'} ? : |
|
0 |
0 |
defined $args{'cmd_initiated_prompt'} ? : |
|
0 |
0 |
defined $args{'progress_dots'} ? : |
|
0 |
0 |
defined $args{'timeout'} ? : |
1826
|
0 |
0 |
if defined $cmd->{'errmode'} |
1827
|
0 |
0 |
if $self->eof |
1828
|
0 |
0 |
if $cmd->{'reset_prompt'} |
1832
|
0 |
0 |
if ($cmd->{'stage'} < 1) |
1834
|
0 |
0 |
if (defined $cmd->{'command'}) |
1837
|
0 |
0 |
if ($command =~ /\?\s*$/ and $self->{$Package}{'ATTRIB'}{'is_nncli'}) |
1838
|
0 |
0 |
if ($familyType eq $Prm{'sr'}) { } |
1845
|
0 |
0 |
unless $self->print("line", $command, "errmode", "return") |
1851
|
0 |
0 |
if ($cmd->{'stage'} == 1) { } |
|
0 |
0 |
elsif ($cmd->{'stage'} == 2) { } |
1853
|
0 |
0 |
if defined $ok and $ok == 0 |
1854
|
0 |
0 |
unless (defined $ok) |
1855
|
0 |
0 |
if ($cmd->{'alreadyCmdTimeout'} or not length $familyType or $familyType eq $Prm{'generic'}) |
1859
|
0 |
0 |
unless $self->print("errmode", "return") |
1865
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
1871
|
0 |
0 |
unless $ok |
1873
|
0 |
0 |
unless (length $self->{'POLL'}{'read_buffer'}) |
1876
|
0 |
0 |
if ($feed = shift @{$$cmd{'feed_data'};}) { } |
1880
|
0 |
0 |
if (++$cmd->{'cmdPromptCount'} > $self->{$Package}{'cmd_feed_timeout'}) |
1886
|
0 |
0 |
unless $self->print("line", $feed, "errmode", "return") |
1889
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
1895
|
0 |
0 |
unless $ok |
1900
|
0 |
0 |
if ($cmd->{'progress_dots'}) |
1901
|
0 |
0 |
unless defined $cmd->{'progress'} |
1902
|
0 |
0 |
if (($cmd->{'progress'} += length $self->{'POLL'}{'read_buffer'}) > $cmd->{'progress_dots'}) |
1908
|
0 |
0 |
unless ($cmd->{'cmdEchoRemoved'}) |
1910
|
0 |
0 |
if ($self->{'POLL'}{'local_buffer'} =~ s/(^.*\n)//) { } |
1913
|
0 |
0 |
if $familyType eq $Prm{'xirrus'} |
1917
|
0 |
0 |
unless length $self->{'POLL'}{'read_buffer'} |
1929
|
0 |
0 |
if length $output |
1932
|
0 |
0 |
if ($self->{$Package}{'noRefreshCmdPattern'} and not $cmd->{'noRefreshCmdDone'} and $output =~ /$self->{$Package}{'noRefreshCmdPattern'}/m) |
1934
|
0 |
0 |
unless $self->put("string", $self->{$Package}{'noRefreshCmdSend'}, "errmode", "return") |
1939
|
0 |
0 |
if (length $output) |
1942
|
0 |
0 |
if $familyType eq $Prm{'hive'} |
1943
|
0 |
0 |
if $familyType eq $Prm{'s200'} |
1944
|
0 |
0 |
if $familyType eq $Prm{'sr'} |
1945
|
0 |
0 |
if $familyType eq $Prm{'isw'} |
1946
|
0 |
0 |
if ($familyType eq $Prm{'slx'}) |
1951
|
0 |
0 |
if $familyType eq $Prm{'xos'} |
1952
|
0 |
0 |
if $cmd->{'noRefreshCmdDone'} and $familyType eq $Prm{'pers'} |
1953
|
0 |
0 |
if $cmd->{'noRefreshCmdDone'} and $familyType eq $Prm{'xos'} |
1954
|
0 |
0 |
if $familyType eq $Prm{'isw'} and $cmd->{'more_prompt'} |
1955
|
0 |
0 |
if ($familyType eq $Prm{'xirrus'}) |
1968
|
0 |
0 |
if length $output |
1969
|
0 |
0 |
if length $cmd->{'lastLine'} |
1971
|
0 |
0 |
if (length $output) |
1977
|
0 |
0 |
if (length $cmd->{'lastLine'} and $self->{'POLL'}{'local_buffer'} =~ s/\n\n$/\n/) { } |
1988
|
0 |
0 |
unless length $cmd->{'lastLine'} |
1990
|
0 |
0 |
if ($cmd->{'lastLine'} =~ s/($cmd->{'prompt'})//) |
1992
|
0 |
0 |
if $cmd->{'reset_prompt'} |
1993
|
0 |
0 |
$cmd->{'reset_prompt'} ? : |
1994
|
0 |
0 |
unless ($newLineLastLine and not length $cmd->{'lastLine'}) |
2000
|
0 |
0 |
if ($cmd->{'more_prompt_delay'} and not $cmd->{'morePromptDelayed'} and $cmd->{'lastLine'} =~ /(?:$cmd->{'more_prompt_delay'})$/) |
2004
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
2007
|
0 |
0 |
if ($cmd->{'more_prompt'} and $cmd->{'lastLine'} =~ s/(?:$cmd->{'more_prompt'})$//) |
2009
|
0 |
0 |
if ($cmd->{'lastLine'} =~ s/^\n//) |
2011
|
0 |
0 |
if $newLineLastLine |
2013
|
0 |
0 |
if $newLineLastLine |
2015
|
0 |
0 |
if (defined $MoreSkipWithin{$familyType} and $cmd->{'more_pages'} == 0) { } |
|
0 |
0 |
elsif ($cmd->{'more_pages'} == 0 or $cmd->{'more_pages'}-- > 1) { } |
2027
|
0 |
0 |
unless $self->put("string", $char, "errmode", "return") |
2029
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
2032
|
0 |
0 |
if ($cmd->{'yn_prompt'} and $cmd->{'lastLine'} =~ /$cmd->{'yn_prompt'}/) |
2033
|
0 |
0 |
if (++$cmd->{'ynPromptCount'} > $self->{$Package}{'cmd_feed_timeout'}) |
2037
|
0 |
0 |
unless $self->print("line", "y", "errmode", "return") |
2039
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
2042
|
0 |
0 |
if ($cmd->{'cmd_prompt'} and $cmd->{'lastLine'} =~ /$cmd->{'cmd_prompt'}/) |
2046
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
2051
|
0 |
0 |
if $cmd->{'lastLine'} =~ s/^\n// |
2063
|
0 |
0 |
unless ($self->{'POLLING'}) |
2068
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
2071
|
0 |
0 |
if (@_ and not %args) |
2089
|
0 |
0 |
if defined $attrib->{'errmode'} |
2090
|
0 |
0 |
if $self->eof |
2093
|
0 |
0 |
if ($attrib->{'stage'} < 1) |
2094
|
0 |
0 |
unless defined $attrib->{'attribute'} |
2095
|
0 |
0 |
unless $familyType |
2098
|
0 |
0 |
if ($attrib->{'reload'}) |
2099
|
0 |
0 |
if ($attrib->{'attribute'} eq 'family_type' or $attrib->{'attribute'} eq 'is_nncli' or $attrib->{'attribute'} eq 'is_acli' or $attrib->{'attribute'} eq 'is_master_cpu' or $attrib->{'attribute'} eq 'cpu_slot') { } |
2101
|
0 |
0 |
unless $self->print |
2110
|
0 |
0 |
if ($attrib->{'stage'} < 2) |
2112
|
0 |
0 |
unless $ok |
2116
|
0 |
0 |
if ($attrib->{'stage'} < 3) |
2118
|
0 |
0 |
if (defined $self->{$Package}{'ATTRIBFLAG'}{$attrib->{'attribute'}}) |
2123
|
0 |
0 |
if $familyType eq $Prm{'generic'} |
2128
|
0 |
0 |
if ($familyType eq $Prm{'pers'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'bstk'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'sr'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'trpz'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'xlr'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'xirrus'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'xos'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'isw'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'wing'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'slx'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'hive'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'ipanema'}) { } |
2129
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_ha") |
2131
|
0 |
0 |
unless $ok |
2132
|
0 |
0 |
if ($$outref =~ /Current CPU State : Disabled State./) { } |
|
0 |
0 |
elsif ($$outref =~ /Current CPU State/) { } |
2144
|
0 |
0 |
if ($attrib->{'attribute'} eq "sw_version") |
2146
|
0 |
0 |
unless $ok |
2147
|
0 |
0 |
if $$outref =~ /Version : Build (?i:v|REL)?(.+?) / |
2151
|
0 |
0 |
if ($attrib->{'attribute'} eq "fw_version") |
2152
|
0 |
0 |
if ($attrib->{'stage'} < 4) |
2154
|
0 |
0 |
unless $ok |
2155
|
0 |
0 |
if ($$outref =~ /Version:\s+(?i:v|REL)?(.+)/) { } |
2166
|
0 |
0 |
unless $ok |
2167
|
0 |
0 |
if ($$outref =~ /Version:\s+(?i:v|REL)?(.+)/) { } |
2176
|
0 |
0 |
if ($attrib->{'attribute'} eq "stp_mode") |
2178
|
0 |
0 |
unless $ok |
2179
|
0 |
0 |
if ($$outref =~ /flags spanning-tree-mode (mstp|rstp)/) { } |
2188
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate") |
2190
|
0 |
0 |
unless $ok |
2191
|
0 |
0 |
if ($$outref =~ /sio (?:console )?baud (\d+)/) |
2197
|
0 |
0 |
if ($attrib->{'attribute'} eq "max_baud") |
2198
|
0 |
0 |
if ($attrib->{'stage'} < 4) |
2200
|
0 |
0 |
unless $ok |
2204
|
0 |
0 |
if ($$outref =~ /(?:-|\.\.)\s?(\d+)[>}]/) { } |
2215
|
0 |
0 |
unless $ok |
2219
|
0 |
0 |
if ($$outref =~ /(?:-|\.\.)\s?(\d+)[>}]/) |
2225
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_master_cpu'}) { } |
2226
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_dual_cpu" or $attrib->{'attribute'} eq "base_mac") |
2228
|
0 |
0 |
unless $ok |
2229
|
0 |
0 |
if ($$outref =~ /SysDescr\s+: (.+?) \(/g) |
2231
|
0 |
0 |
if ($$outref =~ / BoxType: (.+)/cg) { } |
2242
|
0 |
0 |
if $$outref =~ /SysName\s+: (.+)/g |
2243
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_voss'}) { } |
2244
|
0 |
0 |
if ($$outref =~ /BrandName:?\s+: (.+)/cg) { } |
2256
|
0 |
0 |
if $$outref =~ /BaseMacAddr\s+: (.+)/g |
2257
|
0 |
0 |
if ($$outref =~ /CP.+ dormant / or $$outref =~ /\s1\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/ and $$outref =~ /\s2\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/) { } |
2267
|
0 |
0 |
if $$outref =~ /Virtual IP\s+: (.+)/g |
2276
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "is_apls" or $attrib->{'attribute'} eq "is_voss" or $attrib->{'attribute'} eq "is_fabric_engine" or $attrib->{'attribute'} eq "apls_box_type" or $attrib->{'attribute'} eq "brand_name" or not $self->{$Package}{'ATTRIBFLAG'}{'model'} and $attrib->{'attribute'} eq 'slots' || $attrib->{'attribute'} eq 'ports' or not $self->{$Package}{'ATTRIBFLAG'}{'is_voss'} and $attrib->{'attribute'} =~ /^(?:is_)?oob_/) |
2278
|
0 |
0 |
unless $ok |
2279
|
0 |
0 |
if ($$outref =~ /SysDescr\s+: (.+?) \(/g) |
2281
|
0 |
0 |
if ($$outref =~ / BoxType: (.+)/cg) { } |
2292
|
0 |
0 |
if $$outref =~ /SysName\s+: (.+)/g |
2293
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_voss'}) { } |
2294
|
0 |
0 |
if ($$outref =~ /BrandName:?\s+: (.+)/cg) { } |
2306
|
0 |
0 |
if $$outref =~ /BaseMacAddr\s+: (.+)/g |
2308
|
0 |
0 |
if ($$outref =~ /CP.+ dormant / or $$outref =~ /\s1\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/ and $$outref =~ /\s2\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/) { } |
|
0 |
0 |
elsif ($$outref =~ /System Error Info :/) { } |
2317
|
0 |
0 |
if $$outref =~ /Virtual IP\s+: (.+)/g |
2318
|
0 |
0 |
if ($attrib->{'attribute'} eq 'model' or $attrib->{'attribute'} eq 'sysname' or $attrib->{'attribute'} eq 'is_apls' or $attrib->{'attribute'} eq 'is_voss' or $attrib->{'attribute'} eq 'apls_box_type' or $attrib->{'attribute'} eq 'brand_name') { } |
2327
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
2328
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'} and $self->{$Package}{'ATTRIB'}{'model'} =~ /(?:Passport|ERS)-8[36]\d\d/) { } |
2329
|
0 |
0 |
if ($attrib->{'stage'} < 4) |
2331
|
0 |
0 |
unless $ok |
2337
|
0 |
0 |
unless $ok |
2344
|
0 |
0 |
unless $ok |
2350
|
0 |
0 |
if ($attrib->{'attribute'} =~ /^(?:is_)?oob_/) |
2351
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_voss'}) { } |
2353
|
0 |
0 |
unless $ok |
2355
|
0 |
0 |
if $$outref =~ /mgmt-oob\s+ ([\d\.]+)/g |
2356
|
0 |
0 |
if $$outref =~ /Portmgmt\s+ ([\d\.]+)/g |
2357
|
0 |
0 |
if $$outref =~ m[Port1/1\s+ ([\d\.]+)]g |
2358
|
0 |
0 |
if $$outref =~ /MgmtVirtIp\s+ ([\d\.]+)/g |
2359
|
0 |
0 |
if $$outref =~ m[Port2/1\s+ ([\d\.]+)]g |
2360
|
0 |
0 |
if $$outref =~ /Portmgmt2\s+ ([\d\.]+)/g |
2361
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'cpu_slot'} == 1) { } |
2373
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'} || defined $self->{$Package}{'ATTRIB'}{'oob_virt_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_virt_ip'}) ? : |
2379
|
0 |
0 |
if ($attrib->{'stage'} < 4) |
2381
|
0 |
0 |
unless $ok |
2383
|
0 |
0 |
if ($$outref =~ /CP.+ dormant / or $$outref =~ /\s1\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/ and $$outref =~ /\s2\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/) { } |
2392
|
0 |
0 |
if ($$outref =~ /Virtual IP\s+: (.+)/g) { } |
2402
|
0 |
0 |
unless $ok |
2404
|
0 |
0 |
if $$outref =~ m[^net mgmt ip ([\d\.]+)/[\d\.]+ *(?:cpu-slot [35])?$]m |
2405
|
0 |
0 |
if $$outref =~ m[^net mgmt ip ([\d\.]+)/[\d\.]+ cpu-slot 6$]m |
2406
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'cpu_slot'} < 5) { } |
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'cpu_slot'} == 5) { } |
2412
|
0 |
0 |
$self->{$Package}{'ATTRIB'}{'is_dual_cpu'} ? : |
2416
|
0 |
0 |
$self->{$Package}{'ATTRIB'}{'is_dual_cpu'} ? : |
2420
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'} || defined $self->{$Package}{'ATTRIB'}{'oob_virt_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_virt_ip'}) ? : |
2428
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_apls") |
2433
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_fabric_engine") |
2438
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_voss") |
2440
|
0 |
0 |
unless $ok |
2441
|
0 |
0 |
if ($$outref =~ m[Only devices /intflash]) { } |
2455
|
0 |
0 |
if ($attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "switch_mode" or $attrib->{'attribute'} eq "unit_number" or $attrib->{'attribute'} eq "base_unit" or $attrib->{'attribute'} eq "stack_size" or $attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "base_mac") |
2457
|
0 |
0 |
unless $ok |
2458
|
0 |
0 |
if ($$outref =~ /Operation Mode:\s+(Switch)/g) { } |
|
0 |
0 |
elsif ($$outref =~ /Operation Mode:\s+(Stack), Unit # (\d)/g) { } |
2472
|
0 |
0 |
if $$outref =~ /MAC Address:\s+(.+)/cg |
2473
|
0 |
0 |
if $$outref =~ /sysDescr:\s+(.+?)(?:\n|\s{4})/cg |
2475
|
0 |
0 |
if ($$outref =~ /FW:([\d\.]+)\s+SW:v([\d\.]+)/cg) |
2479
|
0 |
0 |
if $$outref =~ /sysName: +(\S.*)/cg |
2483
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
2485
|
0 |
0 |
unless $ok |
2490
|
0 |
0 |
if ($attrib->{'attribute'} eq "stp_mode") |
2492
|
0 |
0 |
unless $ok |
2493
|
0 |
0 |
if ($$outref =~ /Current STP Operation Mode: (STPG|MSTP|RSTP)/) { } |
2502
|
0 |
0 |
if ($attrib->{'attribute'} eq "mgmt_vlan") |
2504
|
0 |
0 |
unless $ok |
2505
|
0 |
0 |
if $$outref =~ /Management VLAN: (\d+)/ |
2509
|
0 |
0 |
if ($attrib->{'attribute'} eq "mgmt_ip" or $attrib->{'attribute'} eq "oob_ip" or $attrib->{'attribute'} eq "is_oob_connected") |
2511
|
0 |
0 |
unless $ok |
2512
|
0 |
0 |
if $$outref =~ /(?:Switch|Stack) IP Address:\s+[\d\.]+\s+([\d\.]+)\s+[\d\.]+/g |
2513
|
0 |
0 |
if ($$outref =~ /Mgmt (?:Switch|Stack) IP Address:\s+[\d\.]+\s+([\d\.]+)\s/g) { } |
2520
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'}) ? : |
2525
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate") |
2527
|
0 |
0 |
unless $ok |
2528
|
0 |
0 |
if ($$outref =~ /Terminal speed: (\d+)/) |
2534
|
0 |
0 |
if ($attrib->{'attribute'} eq "max_baud") |
2536
|
0 |
0 |
unless $ok |
2539
|
0 |
0 |
if not defined $baudRate or $1 > $baudRate |
2547
|
0 |
0 |
if ($attrib->{'attribute'} eq "model") |
2549
|
0 |
0 |
unless $ok |
2550
|
0 |
0 |
if $$outref =~ /Chassis Model: (.+)/ |
2554
|
0 |
0 |
if ($attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sw_version") |
2556
|
0 |
0 |
unless $ok |
2557
|
0 |
0 |
if $$outref =~ /Runtime: (.+)/g |
2558
|
0 |
0 |
if $$outref =~ /Boot: (.+?) / |
2562
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
2563
|
0 |
0 |
if ($attrib->{'stage'} < 4) |
2565
|
0 |
0 |
unless $ok |
2571
|
0 |
0 |
unless $ok |
2576
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname") |
2578
|
0 |
0 |
unless $ok |
2579
|
0 |
0 |
if $$outref =~ /HostName: (.+)/g |
2583
|
0 |
0 |
if ($attrib->{'attribute'} eq "base_mac") |
2585
|
0 |
0 |
unless $ok |
2586
|
0 |
0 |
if $$outref =~ /Mac Address\s+0x(.+)/g |
2592
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "base_mac") |
2594
|
0 |
0 |
unless $ok |
2595
|
0 |
0 |
if $$outref =~ /Product Name:\s+(.+)/g |
2596
|
0 |
0 |
if $$outref =~ /System Name:\s+(.+)/g |
2597
|
0 |
0 |
if $$outref =~ /System MAC:\s+(.+)/g |
2601
|
0 |
0 |
if ($attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sw_version") |
2603
|
0 |
0 |
unless $ok |
2604
|
0 |
0 |
if $$outref =~ /Version: (.+?) REL/g |
2605
|
0 |
0 |
if $$outref =~ /BootLoader:\s+(.+)/ |
2609
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
2611
|
0 |
0 |
unless $ok |
2618
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sw_version") |
2620
|
0 |
0 |
unless $ok |
2621
|
0 |
0 |
if $$outref =~ /# box type\s+: (.+)/g |
2622
|
0 |
0 |
if $$outref =~ /# boot monitor version\s+: v?(.+)/g |
2623
|
0 |
0 |
if $$outref =~ /# software version\s+: v?(.+)/g |
2627
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_dual_cpu" or $attrib->{'attribute'} eq "sysname") |
2629
|
0 |
0 |
unless $ok |
2630
|
0 |
0 |
if $$outref =~ /SysDescr\s+: (.+?) \(/g |
2631
|
0 |
0 |
if $$outref =~ /SysName\s+: (.+)/g |
2632
|
0 |
0 |
if ($$outref =~ /CPU.+ dormant /) { } |
2641
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
2643
|
0 |
0 |
unless $ok |
2651
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "base_mac" or $attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sw_version") |
2653
|
0 |
0 |
unless $ok |
2654
|
0 |
0 |
if $$outref =~ /Model: (.+?),/g |
2655
|
0 |
0 |
if $$outref =~ /IAPs\s+(.+?)-/g |
2656
|
0 |
0 |
if $$outref =~ /Boot Loader\s+(.+?) \(.+?\), Build: (.+)/g |
2657
|
0 |
0 |
if $$outref =~ /System Software\s+(.+?) \(.+?\), Build: (.+)/g |
2661
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname") |
2663
|
0 |
0 |
unless $ok |
2664
|
0 |
0 |
if $$outref =~ /Access Point Hostname\s*(.+)/g |
2668
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
2670
|
0 |
0 |
unless $ok |
2677
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "base_mac") |
2679
|
0 |
0 |
unless $ok |
2680
|
0 |
0 |
if $$outref =~ /SysName: (.+)/g |
2681
|
0 |
0 |
if $$outref =~ /System MAC: (.+)/g |
2682
|
0 |
0 |
if $$outref =~ /System Type: (?:VPEX )?(\S+)( \(Stack\))?/g |
2683
|
0 |
0 |
if defined $2 |
2684
|
0 |
0 |
if ($$outref =~ /Image Booted: (primary|secondary)/) |
2685
|
0 |
0 |
if ($1 eq 'primary') { } |
2686
|
0 |
0 |
if $$outref =~ /Primary ver: (\S+)/g |
2689
|
0 |
0 |
if $$outref =~ /Secondary ver: (\S+)/g |
2695
|
0 |
0 |
if ($attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version") |
2697
|
0 |
0 |
unless $ok |
2698
|
0 |
0 |
if $$outref =~ /Image : Extreme(?:XOS| Networks Switch Engine) version (.+) by /g |
2699
|
0 |
0 |
if $$outref =~ /BootROM : (?:Default )?(\S+)/g |
2703
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
2705
|
0 |
0 |
unless $ok |
2711
|
0 |
0 |
if ($attrib->{'attribute'} eq "switch_mode" or $attrib->{'attribute'} eq "stack_size" or $attrib->{'attribute'} eq "unit_number" or $attrib->{'attribute'} eq "master_unit") |
2713
|
0 |
0 |
unless $ok |
2714
|
0 |
0 |
if ($$outref =~ /(?:This node is not in an Active Topology|stacking-support:\s+\w+\s+Disabled|\*[\d:a-f]+ - Disabled)/) { } |
2725
|
0 |
0 |
if $1 eq "*" |
2726
|
0 |
0 |
if $3 eq "Master" |
2733
|
0 |
0 |
if ($attrib->{'attribute'} eq "stp_mode") |
2735
|
0 |
0 |
unless $ok |
2736
|
0 |
0 |
if ($$outref =~ /Operational Mode: (802.1D|802.1W|MSTP)/) { } |
2737
|
0 |
0 |
if $1 eq "802.1D" |
2738
|
0 |
0 |
if $1 eq "802.1W" |
2739
|
0 |
0 |
if $1 eq "MSTP" |
2747
|
0 |
0 |
if ($attrib->{'attribute'} eq "oob_ip" or $attrib->{'attribute'} eq "is_oob_connected") |
2749
|
0 |
0 |
unless $ok |
2750
|
0 |
0 |
if ($$outref =~ m[Primary IP: ([\d\.]+)/\d+]g) { } |
2757
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'}) ? : |
2765
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "base_mac" or $attrib->{'attribute'} eq "sw_version") |
2767
|
0 |
0 |
unless $ok |
2768
|
0 |
0 |
if $$outref =~ /MAC Address : (.+)/g |
2769
|
0 |
0 |
if $$outref =~ /System Name : (.+)/g |
2770
|
0 |
0 |
if $$outref =~ /Product : (.+)/g |
2771
|
0 |
0 |
if $$outref =~ /Board Type : (.+)/g |
2772
|
0 |
0 |
if $$outref =~ /Software Version : V?(.+)/g |
2776
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
2778
|
0 |
0 |
unless $ok |
2786
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "base_mac" or $attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version") |
2788
|
0 |
0 |
unless $ok |
2789
|
0 |
0 |
if $$outref =~ /Machine Model\.+ (.+)/g |
2790
|
0 |
0 |
if $$outref =~ /Burned In MAC Address\.+ (.+)/g |
2791
|
0 |
0 |
if $$outref =~ /Software Version\.+ (.+)/g |
2792
|
0 |
0 |
if $$outref =~ /Operating System\.+ Linux (.+)/g |
2796
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname") |
2798
|
0 |
0 |
unless $ok |
2800
|
0 |
0 |
if ($$outref =~ /System Description\.+ (.+?)-/g) |
2801
|
0 |
0 |
if ($$outref =~ /System Name\.+ (.+)/g) |
2802
|
0 |
0 |
if ($setSsysname) { } |
|
0 |
0 |
elsif ($defSsysname) { } |
2811
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
2813
|
0 |
0 |
unless $ok |
2819
|
0 |
0 |
if ($attrib->{'attribute'} eq "switch_mode" or $attrib->{'attribute'} eq "stack_size" or $attrib->{'attribute'} eq "unit_number" or $attrib->{'attribute'} eq "manager_unit") |
2821
|
0 |
0 |
unless $ok |
2825
|
0 |
0 |
if ($2 eq "Mgmt Sw") |
2830
|
0 |
0 |
if ($unitCount) { } |
2843
|
0 |
0 |
if ($attrib->{'attribute'} eq "stp_mode") |
2845
|
0 |
0 |
unless $ok |
2846
|
0 |
0 |
if ($$outref =~ /Mode: (stp|rstp|mstp)/) { } |
|
0 |
0 |
elsif ($$outref =~ /Spanning-tree enabled protocol (pvst|rpvst)/) { } |
2847
|
0 |
0 |
$1 eq 'stp' ? : |
2855
|
0 |
0 |
if ($attrib->{'attribute'} eq "oob_ip" or $attrib->{'attribute'} eq "is_oob_connected") |
2857
|
0 |
0 |
unless $ok |
2858
|
0 |
0 |
if ($$outref =~ /IP Address\.+ (.+)/g) { } |
2865
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'}) ? : |
2870
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate") |
2872
|
0 |
0 |
unless $ok |
2873
|
0 |
0 |
if ($$outref =~ /Baud Rate \(bps\)\.+ (\d+)/) |
2879
|
0 |
0 |
if ($attrib->{'attribute'} eq "max_baud") |
2881
|
0 |
0 |
unless $ok |
2884
|
0 |
0 |
if not defined $baudRate or $1 > $baudRate |
2893
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "base_mac" or $attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sysname") |
2895
|
0 |
0 |
unless $ok |
2896
|
0 |
0 |
if ($$outref =~ /(\S+) version (.+)/g) |
2901
|
0 |
0 |
if $$outref =~ /(\S+) uptime is/g |
2902
|
0 |
0 |
if $$outref =~ /Base ethernet MAC address is (.+)/g |
2906
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
2908
|
0 |
0 |
unless $ok |
2913
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate" or $attrib->{'attribute'} eq "max_baud") |
2921
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "base_mac") |
2923
|
0 |
0 |
$self->config_context ? : |
2924
|
0 |
0 |
unless $ok |
2925
|
0 |
0 |
if $$outref =~ /Stack MAC : (.+)/g |
2926
|
0 |
0 |
if $$outref =~ /Unit Name : (.+)/g |
2927
|
0 |
0 |
if ($$outref =~ /SLX-OS Version : (\d+([rsx])?.+)/g) |
2930
|
0 |
0 |
!defined($2) || $2 eq $rsx ? : |
|
0 |
0 |
if $rsx eq "r" |
2931
|
0 |
0 |
defined $2 && $2 eq $rsx ? : |
|
0 |
0 |
unless $rsx eq "r" |
2934
|
0 |
0 |
if ($self->{$Package}{'ATTRIBFLAG'}{'is_dual_mm'}) |
2936
|
0 |
0 |
$self->{$Package}{'ATTRIB'}{'is_dual_mm'} ? : |
|
0 |
0 |
if $$outref =~ /Management IP : (.+)/g |
2941
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "switch_type" or $attrib->{'attribute'} eq "baudrate") |
2942
|
0 |
0 |
$self->config_context ? : |
2943
|
0 |
0 |
unless $ok |
2944
|
0 |
0 |
if $$outref =~ /Chassis Name:(?:\t|\e\[\d\w)(?:(?:BR|EN)-)?(.+)/g |
2945
|
0 |
0 |
defined $self->{$Package}{'ATTRIB'}{'model'} && $self->{$Package}{'ATTRIB'}{'model'} =~ /9030/ ? : |
2946
|
0 |
0 |
if $$outref =~ /switchType: (\d+)/g |
2950
|
0 |
0 |
if ($attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} =~ /^is_slx_[rsx]$/) |
2951
|
0 |
0 |
$self->config_context ? : |
2952
|
0 |
0 |
unless $ok |
2953
|
0 |
0 |
if ($$outref =~ /Firmware name: (\d+([rsx])?.+)/g) |
2956
|
0 |
0 |
!defined($2) || $2 eq $rsx ? : |
|
0 |
0 |
if $rsx eq "r" |
2957
|
0 |
0 |
defined $2 && $2 eq $rsx ? : |
|
0 |
0 |
unless $rsx eq "r" |
2960
|
0 |
0 |
if $$outref =~ /Kernel: (.+)/g |
2964
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
2965
|
0 |
0 |
$self->config_context ? : |
2966
|
0 |
0 |
unless $ok |
2974
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_ha" or $attrib->{'attribute'} eq "mm_number" or $attrib->{'attribute'} eq "is_dual_mm" or $attrib->{'attribute'} eq "is_active_mm" or not $self->{$Package}{'ATTRIBFLAG'}{'mm_number'} and $attrib->{'attribute'} =~ /oob/) |
2975
|
0 |
0 |
$self->config_context ? : |
2976
|
0 |
0 |
unless $ok |
2978
|
0 |
0 |
if ($$outref =~ /M1: (Active|Standby)/g) |
2979
|
0 |
0 |
if ($$outref =~ /M2: (Active|Standby)/g) |
2980
|
0 |
0 |
if ($m1 and $m2) { } |
2982
|
0 |
0 |
$m1 ? : |
2987
|
0 |
0 |
$m1 || $m2 ? : |
2988
|
0 |
0 |
$m1 ? : |
|
0 |
0 |
$m2 ? : |
2995
|
0 |
0 |
if ($attrib->{'attribute'} eq "stp_mode") |
2996
|
0 |
0 |
$self->config_context ? : |
2997
|
0 |
0 |
unless $ok |
2998
|
0 |
0 |
if ($$outref =~ /Spanning-tree Mode: (.+)/g) { } |
2999
|
0 |
0 |
if $1 == "Multiple Spanning Tree Protocol" |
3000
|
0 |
0 |
if $1 == "Rapid Spanning Tree Protocol" |
3001
|
0 |
0 |
if $1 == "Spanning Tree Protocol" |
3002
|
0 |
0 |
if $1 == "Per-VLAN Spanning Tree Protocol" |
3003
|
0 |
0 |
if $1 == "Rapid Per-VLAN Spanning Tree Protocol" |
3011
|
0 |
0 |
if ($attrib->{'attribute'} eq "oob_ip" or $attrib->{'attribute'} eq "oob_standby_ip" or $attrib->{'attribute'} eq "is_oob_connected") |
3012
|
0 |
0 |
$self->config_context ? : |
3013
|
0 |
0 |
unless $ok |
3015
|
0 |
0 |
if ($$outref =~ /interface Management (\d)/g) |
3018
|
0 |
0 |
$mslot == $self->{$Package}{'ATTRIB'}{'mm_number'} ? : |
|
0 |
0 |
if $$outref =~ m[ip address \"static (.+)/]g |
3023
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'} || defined $self->{$Package}{'ATTRIB'}{'oob_virt_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_virt_ip'}) ? : |
3028
|
0 |
0 |
if ($attrib->{'attribute'} eq "oob_virt_ip") |
3029
|
0 |
0 |
$self->config_context ? : |
3030
|
0 |
0 |
unless $ok |
3031
|
0 |
0 |
if $$outref =~ m[chassis virtual-ip \"static (.+)/]g |
3037
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version") |
3039
|
0 |
0 |
unless $ok |
3040
|
0 |
0 |
if $$outref =~ /Version:\s+HiveOS (\S+) build-\d+/g |
3041
|
0 |
0 |
if $$outref =~ /Platform:\s+(\S+)/g |
3042
|
0 |
0 |
if $$outref =~ /Bootloader ver:\s+v(\S+)/g |
3046
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
3048
|
0 |
0 |
unless $ok |
3053
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname") |
3055
|
0 |
0 |
unless $ok |
3056
|
0 |
0 |
if $$outref =~ /hostname (\S+)/g |
3060
|
0 |
0 |
if ($attrib->{'attribute'} eq "base_mac") |
3062
|
0 |
0 |
unless $ok |
3063
|
0 |
0 |
if $$outref =~ /Ethernet MAC address:\s(.+)/g |
3067
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate" or $attrib->{'attribute'} eq "max_baud") |
3075
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version") |
3077
|
0 |
0 |
unless $ok |
3078
|
0 |
0 |
if $$outref =~ /Name : (\S+)/g |
3079
|
0 |
0 |
if $$outref =~ / Kernel : (\S+)/g |
3080
|
0 |
0 |
if $$outref =~ / Ipe : (\S+)/g |
3084
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports" or $attrib->{'attribute'} eq "base_mac") |
3086
|
0 |
0 |
unless $ok |
3090
|
0 |
0 |
if $$outref =~ /ether (\S+)/cg and $1 ne "00:00:00:00:00:00" |
3091
|
0 |
0 |
if $interface eq "isw0" |
3098
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname") |
3100
|
0 |
0 |
unless $ok |
3101
|
0 |
0 |
if $$outref =~ /\s+Hostname\s+: (\S+)/g |
3105
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate" or $attrib->{'attribute'} eq "max_baud") |
3122
|
0 |
0 |
unless ($self->{'POLLING'}) |
3127
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
3130
|
0 |
0 |
if (@_ and not %args) |
3150
|
0 |
0 |
$args{'baudrate'} eq 'max' ? : |
3155
|
0 |
0 |
if defined $changeBaud->{'errmode'} |
3158
|
0 |
0 |
if ($changeBaud->{'local_side_only'}) |
3170
|
0 |
0 |
if ($changeBaud->{'stage'} < 1) |
3171
|
0 |
0 |
unless ($self->connection_type eq "SERIAL") |
3174
|
0 |
0 |
unless (defined $self->baudrate) |
3177
|
0 |
0 |
unless (defined $changeBaud->{'baudrate'}) |
3180
|
0 |
0 |
unless ($familyType) |
3186
|
0 |
0 |
if ($changeBaud->{'stage'} < 2) |
3187
|
0 |
0 |
unless (defined $self->{$Package}{'ATTRIB'}{'baudrate'}) |
3189
|
0 |
0 |
unless $ok |
3191
|
0 |
0 |
unless (defined $self->{$Package}{'ATTRIB'}{'baudrate'}) |
3192
|
0 |
0 |
unless $changeBaud->{'maxMode'} |
3197
|
0 |
0 |
unless (defined $self->{$Package}{'ATTRIB'}{'max_baud'}) |
3199
|
0 |
0 |
unless $ok |
3201
|
0 |
0 |
if ($changeBaud->{'maxMode'} and not defined $self->{$Package}{'ATTRIB'}{'max_baud'}) |
3206
|
0 |
0 |
if $changeBaud->{'maxMode'} |
3208
|
0 |
0 |
if ($changeBaud->{'baudrate'} == $self->baudrate) |
3214
|
0 |
0 |
if ($familyType eq $Prm{'generic'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'bstk'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'pers'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
3218
|
0 |
0 |
unless ($changeBaud->{'baudrate'} == 9600 or $changeBaud->{'baudrate'} == 19200 or $changeBaud->{'baudrate'} == 38400) |
3223
|
0 |
0 |
unless ($changeBaud->{'baudrate'} == 9600 or $changeBaud->{'baudrate'} == 19200 or $changeBaud->{'baudrate'} == 38400 or $changeBaud->{'baudrate'} == 57600 or $changeBaud->{'baudrate'} == 115200) |
3229
|
0 |
0 |
unless ($changeBaud->{'baudrate'} == 9600 or $changeBaud->{'baudrate'} == 19200 or $changeBaud->{'baudrate'} == 38400 or $changeBaud->{'baudrate'} == 57600 or $changeBaud->{'baudrate'} == 115200) |
3235
|
0 |
0 |
unless $changeBaud->{'maxMode'} |
3243
|
0 |
0 |
if ($changeBaud->{'stage'} < 3) |
3244
|
0 |
0 |
if ($familyType eq $Prm{'pers'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
3245
|
0 |
0 |
unless (defined $self->{$Package}{'ATTRIB'}{'model'}) |
3247
|
0 |
0 |
unless $ok |
3249
|
0 |
0 |
if ($changeBaud->{'userExec'} = $self->last_prompt =~ />\s?$/) |
3251
|
0 |
0 |
unless $ok |
3255
|
0 |
0 |
if ($changeBaud->{'userExec'} = $self->last_prompt =~ />\s?$/) |
3257
|
0 |
0 |
unless $ok |
3263
|
0 |
0 |
if ($changeBaud->{'stage'} < 4) |
3264
|
0 |
0 |
if ($familyType eq $Prm{'pers'} and $self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
3265
|
0 |
0 |
if ($changeBaud->{'privExec'} = !$self->config_context) |
3267
|
0 |
0 |
unless $ok |
3268
|
0 |
0 |
unless $$resref |
3272
|
0 |
0 |
if ($changeBaud->{'privExec'} = !$self->config_context) |
3274
|
0 |
0 |
unless $ok |
3275
|
0 |
0 |
unless $$resref |
3281
|
0 |
0 |
if ($changeBaud->{'stage'} < 5) |
3282
|
0 |
0 |
if ($familyType eq $Prm{'bstk'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'pers'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
3283
|
0 |
0 |
unless $self->print("line", "terminal speed $changeBaud->{'baudrate'}", "errmode", "return") |
3287
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'model'} =~ /(?:Passport|ERS)-(?:83|16)\d\d/) { } |
3288
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
3289
|
0 |
0 |
unless $self->print("line", "boot config sio baud $changeBaud->{'baudrate'}", "errmode", "return") |
3293
|
0 |
0 |
unless $self->print("line", "config bootconfig sio baud $changeBaud->{'baudrate'}", "errmode", "return") |
3298
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
3299
|
0 |
0 |
unless $self->print("line", "boot config sio console baud $changeBaud->{'baudrate'}", "errmode", "return") |
3303
|
0 |
0 |
unless $self->print("line", "config bootconfig sio console baud $changeBaud->{'baudrate'}", "errmode", "return") |
3309
|
0 |
0 |
unless $self->print("line", "serial baudrate $changeBaud->{'baudrate'}", "errmode", "return") |
3316
|
0 |
0 |
if ($changeBaud->{'stage'} < 6) |
3318
|
0 |
0 |
unless $ok |
3319
|
0 |
0 |
if (length $self->{'POLL'}{'read_buffer'} and $self->{'POLL'}{'read_buffer'} =~ /$self->{$Package}{'prompt_qr'}/) |
3321
|
0 |
0 |
unless $changeBaud->{'maxMode'} |
3326
|
0 |
0 |
if (defined $self->{$Package}{'ORIGBAUDRATE'}) { } |
3327
|
0 |
0 |
if $self->{$Package}{'ORIGBAUDRATE'} == $changeBaud->{'baudrate'} |
3335
|
0 |
0 |
if ($changeBaud->{'stage'} < 7) |
3340
|
0 |
0 |
unless $ok |
3346
|
0 |
0 |
if ($changeBaud->{'stage'} < 8) |
3348
|
0 |
0 |
unless $ok |
3352
|
0 |
0 |
if ($changeBaud->{'stage'} < 9) |
3353
|
0 |
0 |
if ($familyType eq $Prm{'pers'} and $self->{$Package}{'ATTRIB'}{'is_nncli'} or $familyType eq $Prm{'s200'}) |
3354
|
0 |
0 |
if ($changeBaud->{'privExec'}) |
3356
|
0 |
0 |
unless $ok |
3357
|
0 |
0 |
unless $$resref |
3363
|
0 |
0 |
if ($changeBaud->{'stage'} < 10) |
3365
|
0 |
0 |
if ($familyType eq $Prm{'pers'} and $self->{$Package}{'ATTRIB'}{'is_nncli'} or $familyType eq $Prm{'s200'}) |
3366
|
0 |
0 |
if ($changeBaud->{'userExec'}) |
3368
|
0 |
0 |
if (defined $ExitPrivExec{$familyType}) { } |
3380
|
0 |
0 |
if ($changeBaud->{'stage'} < 11) |
3381
|
0 |
0 |
if ($familyType eq $Prm{'pers'} and $self->{$Package}{'ATTRIB'}{'is_nncli'} or $familyType eq $Prm{'s200'}) |
3382
|
0 |
0 |
if ($changeBaud->{'userExec'}) |
3384
|
0 |
0 |
unless $ok |
3385
|
0 |
0 |
unless $$resref |
3399
|
0 |
0 |
unless ($self->{'POLLING'}) |
3404
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
3407
|
0 |
0 |
if (@_ and not %args) |
3421
|
0 |
0 |
defined $args{'password'} ? : |
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
3426
|
0 |
0 |
if defined $enable->{'errmode'} |
3427
|
0 |
0 |
if $self->eof |
3433
|
0 |
0 |
if ($enable->{'stage'} < 1) |
3435
|
0 |
0 |
unless $familyType |
3436
|
0 |
0 |
unless $self->{$Package}{'ATTRIB'}{'is_nncli'} |
3437
|
0 |
0 |
unless $self->last_prompt =~ />\s?$/ |
3441
|
0 |
0 |
unless $self->print("line", "enable", "errmode", "return") |
3448
|
0 |
0 |
unless $ok |
3451
|
0 |
0 |
if $self->{'POLL'}{'local_buffer'} =~ /error: Access denied/ |
3452
|
0 |
0 |
if ($self->{'POLL'}{'local_buffer'} =~ /$passwordPrompt/) |
3454
|
0 |
0 |
if (defined $enable->{'enable_password'}) { } |
3455
|
0 |
0 |
if ($enable->{'login_attempted'} == 1) { } |
3458
|
0 |
0 |
unless $self->print("line", $enablePwd, "errmode", "return") |
3464
|
0 |
0 |
unless $self->print("errmode", "return") |
3469
|
0 |
0 |
if ($enable->{'login_attempted'} == 1) { } |
|
0 |
0 |
elsif ($enable->{'login_attempted'} == 2) { } |
3472
|
0 |
0 |
unless $self->print("errmode", "return") |
3478
|
0 |
0 |
unless $self->print("line", $enablePwd, "errmode", "return") |
3482
|
0 |
0 |
if ($enable->{'prompt_credentials'}) { } |
3484
|
0 |
0 |
unless $self->print("line", $enablePwd, "errmode", "return") |
3490
|
0 |
0 |
unless $self->print("errmode", "return") |
3499
|
0 |
0 |
if $enable->{'login_failed'} |
3500
|
0 |
0 |
if $self->last_prompt =~ />\s?$/ |
3501
|
0 |
0 |
if defined $enablePwd |
3511
|
0 |
0 |
unless ($self->{'POLLING'}) |
3516
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
3519
|
0 |
0 |
if (@_ and not %args) |
3536
|
0 |
0 |
if defined $devMorePage->{'errmode'} |
3537
|
0 |
0 |
if $self->eof |
3540
|
0 |
0 |
unless $familyType |
3541
|
0 |
0 |
if ($familyType eq $Prm{'bstk'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'pers'} or $familyType eq $Prm{'xlr'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'sr'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'trpz'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'xirrus'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'xos'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'isw'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'wing'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'slx'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'hive'}) { } |
3542
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3544
|
0 |
0 |
unless $ok |
3545
|
0 |
0 |
unless $$resref |
3548
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
3549
|
0 |
0 |
if ($devMorePage->{'stage'} < 1) |
3550
|
0 |
0 |
unless (defined $self->{$Package}{'ATTRIB'}{'model'}) |
3552
|
0 |
0 |
unless $ok |
3554
|
0 |
0 |
if (defined $self->{$Package}{'ATTRIB'}{'model'} and $self->{$Package}{'ATTRIB'}{'model'} =~ /(?:Passport|ERS)-83\d\d/) { } |
3561
|
0 |
0 |
if ($devMorePage->{'stage'} < 2) |
3562
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3564
|
0 |
0 |
unless $ok |
3565
|
0 |
0 |
if not $$resref and defined $self->{$Package}{'ATTRIB'}{'model'} |
3567
|
0 |
0 |
if $$resref |
3570
|
0 |
0 |
if ($devMorePage->{'stage'} < 3) |
3571
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3573
|
0 |
0 |
unless $ok |
3574
|
0 |
0 |
unless $$resref |
3578
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3580
|
0 |
0 |
unless $ok |
3581
|
0 |
0 |
unless $$resref |
3585
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3587
|
0 |
0 |
unless $ok |
3588
|
0 |
0 |
unless $$resref |
3591
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3593
|
0 |
0 |
unless $ok |
3594
|
0 |
0 |
unless $$resref |
3597
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3599
|
0 |
0 |
unless $ok |
3600
|
0 |
0 |
unless $$resref |
3603
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3605
|
0 |
0 |
unless $ok |
3606
|
0 |
0 |
unless $$resref |
3609
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3611
|
0 |
0 |
unless $ok |
3612
|
0 |
0 |
unless $$resref |
3615
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3616
|
0 |
0 |
$self->config_context ? : |
3617
|
0 |
0 |
unless $ok |
3618
|
0 |
0 |
unless $$resref |
3621
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3622
|
0 |
0 |
$self->config_context ? : |
3623
|
0 |
0 |
unless $ok |
3624
|
0 |
0 |
unless $$resref |
3627
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3628
|
0 |
0 |
$self->config_context ? : |
3629
|
0 |
0 |
unless $ok |
3630
|
0 |
0 |
unless $$resref |
3633
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
3635
|
0 |
0 |
unless $ok |
3636
|
0 |
0 |
unless $$resref |
3650
|
0 |
0 |
unless ($self->{'POLLING'}) |
3655
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
3658
|
0 |
0 |
if (@_ and not %args) |
3671
|
0 |
0 |
defined $args{'username'} ? : |
|
0 |
0 |
defined $args{'password'} ? : |
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
3676
|
0 |
0 |
if defined $devPeerCpu->{'errmode'} |
3677
|
0 |
0 |
if $self->eof |
3680
|
0 |
0 |
if ($devPeerCpu->{'stage'} < 1) |
3681
|
0 |
0 |
unless ($familyType) |
3684
|
0 |
0 |
unless ($familyType eq $Prm{'pers'}) |
3687
|
0 |
0 |
unless ($devPeerCpu->{'username'} and $devPeerCpu->{'password'} or $devPeerCpu->{'prompt_credentials'}) |
3693
|
0 |
0 |
if ($devPeerCpu->{'stage'} < 2) |
3695
|
0 |
0 |
unless $ok |
3697
|
0 |
0 |
unless $self->print("line", "peer telnet", "errmode", "return") |
3702
|
0 |
0 |
if ($devPeerCpu->{'stage'} < 3) |
3704
|
0 |
0 |
unless defined $ok |
3705
|
0 |
0 |
unless $ok |
3707
|
0 |
0 |
unless defined $devPeerCpu->{'username'} |
3708
|
0 |
0 |
unless $self->print("line", $devPeerCpu->{'username'}, "errmode", "return") |
3713
|
0 |
0 |
if ($devPeerCpu->{'stage'} < 4) |
3715
|
0 |
0 |
unless defined $ok |
3716
|
0 |
0 |
unless $ok |
3718
|
0 |
0 |
unless defined $devPeerCpu->{'password'} |
3719
|
0 |
0 |
unless $self->print("line", $devPeerCpu->{'password'}, "errmode", "return") |
3726
|
0 |
0 |
unless $ok |
3730
|
0 |
0 |
$self->{'LASTPROMPT'} =~ /^@/ ? : |
3731
|
0 |
0 |
if $self->{'LASTPROMPT'} =~ /^@/ |
3741
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
3752
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
3753
|
0 |
0 |
if ($cmdPrivExec->{'stage'} < 1) |
3754
|
0 |
0 |
if ($self->{'WRITEFLAG'}) |
3756
|
0 |
0 |
unless $ok |
3760
|
0 |
0 |
if ($cmdPrivExec->{'stage'} < 2) |
3761
|
0 |
0 |
if ($cmdPrivExec->{'userExec'} = $self->last_prompt =~ />\s?$/) |
3763
|
0 |
0 |
unless $ok |
3767
|
0 |
0 |
if ($cmdPrivExec->{'stage'} < 3) |
3769
|
0 |
0 |
unless $ok |
3774
|
0 |
0 |
if ($cmdPrivExec->{'stage'} < 4) |
3776
|
0 |
0 |
if ($cmdPrivExec->{'userExec'}) |
3778
|
0 |
0 |
if (defined $ExitPrivExec{$familyType}) { } |
3789
|
0 |
0 |
if ($cmdPrivExec->{'stage'} < 5) |
3790
|
0 |
0 |
if ($cmdPrivExec->{'userExec'}) |
3792
|
0 |
0 |
unless $ok |
3802
|
0 |
0 |
unless $ok |
3814
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
3826
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
3827
|
0 |
0 |
if ($cmdConfig->{'stage'} < 1) |
3828
|
0 |
0 |
if ($self->{'WRITEFLAG'}) |
3830
|
0 |
0 |
unless $ok |
3834
|
0 |
0 |
if ($cmdConfig->{'stage'} < 2) |
3835
|
0 |
0 |
if ($cmdConfig->{'userExec'} = $self->last_prompt =~ />\s?$/) |
3837
|
0 |
0 |
unless $ok |
3841
|
0 |
0 |
if ($cmdConfig->{'stage'} < 3) |
3842
|
0 |
0 |
if ($cmdConfig->{'privExec'} = !$self->config_context) |
3843
|
0 |
0 |
$familyType eq 'WLAN9100' || $familyType eq 'Series200' ? : |
3845
|
0 |
0 |
unless $ok |
3846
|
0 |
0 |
unless $$resref |
3850
|
0 |
0 |
if ($cmdConfig->{'stage'} < 4) |
3852
|
0 |
0 |
unless $ok |
3857
|
0 |
0 |
if ($cmdConfig->{'stage'} < 5) |
3858
|
0 |
0 |
if ($cmdConfig->{'privExec'}) |
3860
|
0 |
0 |
unless $ok |
3865
|
0 |
0 |
if ($cmdConfig->{'stage'} < 6) |
3867
|
0 |
0 |
if ($cmdConfig->{'userExec'}) |
3869
|
0 |
0 |
if (defined $ExitPrivExec{$familyType}) { } |
3880
|
0 |
0 |
if ($cmdConfig->{'stage'} < 7) |
3881
|
0 |
0 |
if ($cmdConfig->{'userExec'}) |
3883
|
0 |
0 |
unless $ok |
3892
|
0 |
0 |
unless $cmdcli =~ /^config / |
3894
|
0 |
0 |
unless $ok |
3906
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
3917
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 1) |
3918
|
0 |
0 |
if ($self->{'WRITEFLAG'}) |
3920
|
0 |
0 |
unless $ok |
3924
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 2) |
3926
|
0 |
0 |
if (($cmdIpanema->{'virtualRt'}) = $self->last_prompt =~ /\.rt(\d):/g or ($cmdIpanema->{'virtualRtCli'}) = $self->last_prompt =~ /\.rt(\d)\]/g) |
3934
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 3) |
3935
|
0 |
0 |
if ($cmdIpanema->{'virtualRt'} or $cmdIpanema->{'virtualRtCli'}) |
3937
|
0 |
0 |
unless $ok |
3942
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 4) |
3944
|
0 |
0 |
unless $ok |
3949
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 5) |
3952
|
0 |
0 |
if ($cmdIpanema->{'virtualRt'}) { } |
|
0 |
0 |
elsif ($cmdIpanema->{'virtualRtCli'}) { } |
3958
|
0 |
0 |
if (defined $virtualRtCmd) |
3963
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 6) |
3964
|
0 |
0 |
if ($cmdIpanema->{'virtualRt'}) |
3966
|
0 |
0 |
unless $ok |
3980
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
3987
|
0 |
0 |
if ($discDevice->{'stage'} < 1) |
3993
|
0 |
0 |
if ($discDevice->{'stage'} < 2) |
3996
|
0 |
0 |
unless $ok |
4006
|
0 |
0 |
if ($discDevice->{'stage'} < 3) |
4009
|
0 |
0 |
unless $ok |
4011
|
0 |
0 |
if ($$outref =~ /\s+Configured\s+In Use\s+Last BootP/) |
4018
|
0 |
0 |
if ($$outref =~ /^\? Unknown command \(try "help"\)\.$/) |
4025
|
0 |
0 |
if ($discDevice->{'stage'} < 4) |
4028
|
0 |
0 |
unless $ok |
4030
|
0 |
0 |
if ($$outref =~ /^\s+auto-recover-delay :/m) |
4037
|
0 |
0 |
if ($discDevice->{'stage'} < 5) |
4039
|
0 |
0 |
$self->config_context ? : |
4040
|
0 |
0 |
unless $ok |
4042
|
0 |
0 |
if ($$outref =~ /^Chassis Name:(?:\t|\e\[\d\w)(?:(?:BR|EN)-)?(.+)/m) |
4046
|
0 |
0 |
defined $self->{$Package}{'ATTRIB'}{'model'} && $self->{$Package}{'ATTRIB'}{'model'} =~ /9030/ ? : |
4047
|
0 |
0 |
if $$outref =~ /switchType: (\d+)/g |
4053
|
0 |
0 |
if ($discDevice->{'stage'} < 6) |
4056
|
0 |
0 |
unless $ok |
4058
|
0 |
0 |
if ($$outref =~ /^Image : Extreme(XOS| Networks Switch Engine) version (.+) by /m) |
4059
|
0 |
0 |
$1 eq 'XOS' ? : |
4061
|
0 |
0 |
if $$outref =~ /^BootROM :(.+)$/m |
4067
|
0 |
0 |
if ($discDevice->{'stage'} < 7) |
4070
|
0 |
0 |
unless $ok |
4072
|
0 |
0 |
if ($$outref =~ /^(Product |Board Type) : (.+)(?:, PoE Switch)?/m) |
4081
|
0 |
0 |
if ($discDevice->{'stage'} < 8) |
4084
|
0 |
0 |
unless $ok |
4086
|
0 |
0 |
if ($$outref =~ /^(\S+) version (.+)\nCopyright \(c\) [\d-]+ Extreme Networks/m) |
4090
|
0 |
0 |
if $$outref =~ /^(\S+) uptime is/m |
4091
|
0 |
0 |
if $$outref =~ /^Base ethernet MAC address is (.+)$/m |
4097
|
0 |
0 |
if ($discDevice->{'stage'} < 9) |
4100
|
0 |
0 |
unless $ok |
4102
|
0 |
0 |
if ($$outref =~ /^Version: HiveOS (\S+) build-\d+/m) |
4104
|
0 |
0 |
if $$outref =~ /^Platform:\s+(\S+)/m |
4105
|
0 |
0 |
if $$outref =~ /^Bootloader ver: v(\S+)/m |
4111
|
0 |
0 |
if ($discDevice->{'stage'} < 10) |
4114
|
0 |
0 |
unless $ok |
4116
|
0 |
0 |
if ($$outref =~ /^ \[LAN\] IPaddr : /m) |
4118
|
0 |
0 |
if $$outref =~ /^\s+Hostname\s+: (\S+)/m |
4124
|
0 |
0 |
if ($discDevice->{'stage'} < 11) |
4127
|
0 |
0 |
unless $ok |
4129
|
0 |
0 |
if ($$outref =~ m[^\d(?:/\d)?\s+\S+\s+\S+\s+\S+\s+Extreme\s+(\S+)]m) |
4138
|
0 |
0 |
if ($discDevice->{'stage'} < 12) |
4141
|
0 |
0 |
unless $ok |
4143
|
0 |
0 |
if ($$outref =~ /^Version:\s+(?i:v|REL)?(.+)/m) |
4152
|
0 |
0 |
if ($discDevice->{'stage'} < 13) |
4155
|
0 |
0 |
unless $ok |
4157
|
0 |
0 |
if ($$outref =~ /^Access Point Hostname\s*(.+)$/m) |
4166
|
0 |
0 |
if ($discDevice->{'stage'} < 14) |
4169
|
0 |
0 |
unless $ok |
4171
|
0 |
0 |
if ($$outref =~ /^Chassis Model: (.+)$/m) |
4180
|
0 |
0 |
if ($discDevice->{'stage'} < 15) |
4183
|
0 |
0 |
unless $ok |
4185
|
0 |
0 |
if ($$outref =~ /Product Name:\s+(.+)/g) |
4189
|
0 |
0 |
if $$outref =~ /System Name:\s+(.+)/g |
4190
|
0 |
0 |
if $$outref =~ /System MAC:\s+(.+)/g |
4196
|
0 |
0 |
if ($discDevice->{'stage'} < 16) |
4199
|
0 |
0 |
unless $ok |
4201
|
0 |
0 |
if ($$outref =~ /^\s+NVRamSize:/m) |
4218
|
0 |
0 |
if (shift() & $self->{'debug'}) |
4222
|
0 |
0 |
if ($self->{$Package}{'DEBUGLOGFH'}) { } |
4239
|
0 |
0 |
unless ($attrib->{'debugMsg'}) |
4240
|
0 |
0 |
$#$cmd ? : |
4241
|
0 |
0 |
defined $pages ? : |
4245
|
0 |
0 |
if $#$cmd and $cmdConfig |
4246
|
0 |
0 |
if $#$cmd |
4247
|
0 |
0 |
if $familyType eq $Prm{'ipanema'} |
4256
|
0 |
0 |
if (defined $keyType) { } |
4264
|
0 |
0 |
if ($actualPrompt) |
4271
|
0 |
0 |
defined $MorePromptDelay{$keyType} ? : |
4272
|
0 |
0 |
if defined $RefreshCommands{$keyType} |
4281
|
0 |
0 |
if (defined $configContext) { } |
4287
|
0 |
0 |
if ($self->{'LASTPROMPT'} =~ /$regex/) |
4293
|
0 |
0 |
unless $match |
4303
|
0 |
0 |
if (defined $Attribute{$family}) { } |
4311
|
0 |
0 |
if (%attribList) |
4324
|
0 |
0 |
if $self->{$Package}{'ATTRIBFLAG'}{'slots'} |
4325
|
0 |
0 |
if $self->{$Package}{'ATTRIBFLAG'}{'ports'} |
4328
|
0 |
0 |
if (defined $1 and !defined($currentSlot) || $1 != $currentSlot) |
4330
|
0 |
0 |
unless grep {$_ eq $currentSlot;} @slots |
4332
|
0 |
0 |
if (defined $currentSlot) { } |
4333
|
0 |
0 |
unless grep {$_ eq lc $2;} @{$ports[$currentSlot];} |
4336
|
0 |
0 |
unless grep {$_ eq lc $2;} @ports |
4338
|
0 |
0 |
unless defined $1 |
4351
|
0 |
0 |
if $self->{$Package}{'ATTRIBFLAG'}{'slots'} |
4352
|
0 |
0 |
if $self->{$Package}{'ATTRIBFLAG'}{'ports'} |
4354
|
0 |
0 |
if (not defined $currentHash or $1 ne $currentHash) |
4356
|
0 |
0 |
unless grep {$_ eq $currentHash;} @slots |
4358
|
0 |
0 |
unless grep {$_ eq $2;} @{$ports{$currentHash};} |
4373
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'bstk'}) { } |
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'pers'}) { } |
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'sr'}) { } |
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'trpz'}) { } |
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'xirrus'}) { } |
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'isw'}) { } |
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'is_apls'}) { } |
4412
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'pers'}) |
4414
|
0 |
0 |
if ($model =~ /FabricEngine$/) { } |
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'is_apls'} or $model =~ /^(?:VSP|XA)/ or $model =~ /VOSS$/) { } |
4466
|
0 |
0 |
if ($attrib eq 'is_nncli' or $attrib eq 'is_acli') { } |
4476
|
0 |
0 |
if (defined $value) { } |
4490
|
0 |
0 |
unless $familyType = $self->{$Package}{'ATTRIB'}{'family_type'} |
4491
|
0 |
0 |
if $familyType eq $Prm{'generic'} |
4492
|
0 |
0 |
if ($$outref =~ /$ErrorPatterns{$familyType}/m) { } |
4508
|
0 |
0 |
if (defined $self->baudrate and defined(my $origBaud = $self->{$Package}{'ORIGBAUDRATE'})) |
4510
|
0 |
0 |
if ($familyType eq $Prm{'bstk'}) { } |
|
0 |
0 |
elsif ($familyType eq $Prm{'pers'}) { } |
4517
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |