@@ -438,7 +438,6 @@ private void ParseNetworks()
438438 {
439439 ConversionIncidentType = ConversionIncidentType . Informative ;
440440 ConversionIncidentMessage = "An Object (network) can only hold one fqdn, host, range or subnet" ;
441- Console . WriteLine ( ConversionIncidentMessage ) ;
442441 }
443442 }
444443
@@ -502,7 +501,6 @@ private void ParseServices()
502501 {
503502 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
504503 ConversionIncidentMessage = "Unrecognized service protocol (" + ServiceProtocol + ")" ;
505- Console . WriteLine ( ConversionIncidentMessage ) ;
506504 }
507505 break ;
508506 }
@@ -513,7 +511,6 @@ private void ParseServices()
513511 {
514512 ConversionIncidentType = ConversionIncidentType . Informative ;
515513 ConversionIncidentMessage = "An Object (service) can only hold one service" ;
516- Console . WriteLine ( ConversionIncidentMessage ) ;
517514 }
518515 }
519516 }
@@ -546,7 +543,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
546543 {
547544 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
548545 ConversionIncidentMessage = "Invalid host IP address (" + HostAddress + "). Using IP 1.1.1.1." ;
549- Console . WriteLine ( ConversionIncidentMessage ) ;
550546
551547 HostAddress = "1.1.1.1" ;
552548 }
@@ -578,7 +574,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
578574 {
579575 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
580576 ConversionIncidentMessage = "Invalid IP subnet (" + Network + "/" + Netmask + "). Using IP subnet 1.1.1.0/255.255.255.0." ;
581- Console . WriteLine ( ConversionIncidentMessage ) ;
582577
583578 Network = "1.1.1.0" ;
584579 Netmask = "255.255.255.0" ;
@@ -602,7 +597,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
602597 {
603598 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
604599 ConversionIncidentMessage = "Invalid range starting IP address (" + RangeFrom + "). Using IP 0.0.0.0." ;
605- Console . WriteLine ( ConversionIncidentMessage ) ;
606600
607601 RangeFrom = "0.0.0.0" ;
608602 }
@@ -612,7 +606,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
612606 {
613607 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
614608 ConversionIncidentMessage = "Invalid range ending IP address (" + RangeTo + "). Using IP 255.255.255.255." ;
615- Console . WriteLine ( ConversionIncidentMessage ) ;
616609
617610 RangeTo = "255.255.255.255" ;
618611 }
@@ -685,7 +678,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
685678 // "service tcp source eq ssh destination eq ssh" ---> wrong!!! ---> ignore source!!!
686679 ConversionIncidentType = ConversionIncidentType . Informative ;
687680 ConversionIncidentMessage = "Cannot convert a service defined as both source service and destination service. Ignoring source service." ;
688- Console . WriteLine ( ConversionIncidentMessage ) ;
689681
690682 IsDestination = true ;
691683 Operator = command . GetParam ( nextParamId + 1 ) ;
@@ -724,7 +716,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
724716 {
725717 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
726718 ConversionIncidentMessage = "Unrecognized service protocol (" + Protocol + ")" ;
727- Console . WriteLine ( ConversionIncidentMessage ) ;
728719 }
729720 break ;
730721 }
@@ -767,7 +758,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
767758 {
768759 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
769760 ConversionIncidentMessage = "Invalid IP address (" + IpAddress + "). Using IP 1.1.1.1." ;
770- Console . WriteLine ( ConversionIncidentMessage ) ;
771761
772762 IpAddress = "1.1.1.1" ;
773763 }
@@ -796,7 +786,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
796786 {
797787 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
798788 ConversionIncidentMessage = "Invalid IP subnet (" + IpAddress + "/" + Netmask + "). Using IP subnet 1.1.1.0/255.255.255.0." ;
799- Console . WriteLine ( ConversionIncidentMessage ) ;
800789
801790 IpAddress = "1.1.1.0" ;
802791 Netmask = "255.255.255.0" ;
@@ -921,7 +910,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
921910 // "service-object tcp source eq ssh destination eq ssh" ---> wrong!!! ---> ignore source!!!
922911 ConversionIncidentType = ConversionIncidentType . Informative ;
923912 ConversionIncidentMessage = "Cannot convert a service defined as both source service and destination service. Ignoring source service." ;
924- Console . WriteLine ( ConversionIncidentMessage ) ;
925913
926914 IsDestination = true ;
927915 Operator = command . GetParam ( nextParamId + 1 ) ;
@@ -960,7 +948,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
960948 {
961949 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
962950 ConversionIncidentMessage = "Unrecognized service protocol (" + Protocol + ")" ;
963- Console . WriteLine ( ConversionIncidentMessage ) ;
964951 }
965952 break ;
966953 }
@@ -1456,7 +1443,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
14561443 {
14571444 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
14581445 ConversionIncidentMessage = "Invalid IP subnet (" + IpAddress + "/" + Netmask + ")." ;
1459- Console . WriteLine ( ConversionIncidentMessage ) ;
14601446 }
14611447 break ;
14621448 }
@@ -1520,7 +1506,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
15201506 {
15211507 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
15221508 ConversionIncidentMessage = "Cannot resolve route destination IP address (" + command . GetParam ( 2 ) + "). Using IP 1.1.1.1." ;
1523- Console . WriteLine ( ConversionIncidentMessage ) ;
15241509
15251510 DestinationIp = "1.1.1.1" ;
15261511 DestinationNetmask = "255.255.255.255" ;
@@ -1530,7 +1515,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
15301515 {
15311516 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
15321517 ConversionIncidentMessage = "Invalid IP address (" + DestinationIp + "). Using IP 1.1.1.1." ;
1533- Console . WriteLine ( ConversionIncidentMessage ) ;
15341518
15351519 DestinationIp = "1.1.1.1" ;
15361520 DestinationNetmask = "255.255.255.255" ;
@@ -1717,7 +1701,6 @@ private void ParseObjectNatCommand(CiscoCommand command, CiscoCommand prevComman
17171701
17181702 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
17191703 ConversionIncidentMessage = "Unrecognized service protocol (" + ServiceProtocol + ")" ;
1720- Console . WriteLine ( ConversionIncidentMessage ) ;
17211704 }
17221705 }
17231706 break ;
@@ -1738,7 +1721,6 @@ private void ParseObjectNatCommand(CiscoCommand command, CiscoCommand prevComman
17381721 {
17391722 ConversionIncidentType = ConversionIncidentType . Informative ;
17401723 ConversionIncidentMessage = "Interface fall-back for dynamic object NAT is not supported" ;
1741- Console . WriteLine ( ConversionIncidentMessage ) ;
17421724 }
17431725 break ;
17441726 }
@@ -1786,7 +1768,6 @@ private void ParseRegularNatCommand(CiscoCommand command, CiscoCommand prevComma
17861768 {
17871769 ConversionIncidentType = ConversionIncidentType . Informative ;
17881770 ConversionIncidentMessage = "Not handling NAT with dynamic destination" ;
1789- Console . WriteLine ( ConversionIncidentMessage ) ;
17901771 return ;
17911772 }
17921773
@@ -1805,7 +1786,6 @@ private void ParseRegularNatCommand(CiscoCommand command, CiscoCommand prevComma
18051786 {
18061787 ConversionIncidentType = ConversionIncidentType . Informative ;
18071788 ConversionIncidentMessage = "Not handling NAT with dynamic source" ;
1808- Console . WriteLine ( ConversionIncidentMessage ) ;
18091789 }
18101790 }
18111791 }
@@ -1847,15 +1827,13 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
18471827 break ;
18481828
18491829 default :
1850- Console . WriteLine ( "Error: unknown access-group traffic direction (" + command . GetParam ( 2 ) + ")." ) ;
18511830 break ;
18521831 }
18531832
18541833 if ( Direction != DirectionType . Inbound && Direction != DirectionType . Global )
18551834 {
18561835 ConversionIncidentType = ConversionIncidentType . Informative ;
18571836 ConversionIncidentMessage = "Outbound ACLs will not be converted" ;
1858- Console . WriteLine ( ConversionIncidentMessage ) ;
18591837 }
18601838 }
18611839 }
@@ -2343,7 +2321,6 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
23432321 ProtocolReference = strProtocol ;
23442322 ConversionIncidentType = ConversionIncidentType . ManualActionRequired ;
23452323 ConversionIncidentMessage = "Unrecognized service protocol (" + strProtocol + ")" ;
2346- Console . WriteLine ( ConversionIncidentMessage ) ;
23472324 }
23482325 break ;
23492326 }
0 commit comments