mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-30 18:27:53 +00:00 
			
		
		
		
	Port: fixes parsing dash or space tokens
This commit is contained in:
		| @@ -276,7 +276,7 @@ sub decode { | |||||||
|  |  | ||||||
|          $i++; |          $i++; | ||||||
|          $ln = $ta[$i]; |          $ln = $ta[$i]; | ||||||
|          if ( $ln =~ /\s+DNS Servers:\s+(.*)/ ) { |          if ( $ln =~ /\s+DNS[ -]Servers:\s+(.*)/ ) { | ||||||
|             $self->dns_servers($i); |             $self->dns_servers($i); | ||||||
|             $i++; |             $i++; | ||||||
|             $ln = $ta[$i]; |             $ln = $ta[$i]; | ||||||
| @@ -340,7 +340,7 @@ sub decode { | |||||||
|  |  | ||||||
|          #   MAC: 00:c0:95:e2:4c:0e  DEV: eth5  MTU: 1500  TX Queue Len: 400 |          #   MAC: 00:c0:95:e2:4c:0e  DEV: eth5  MTU: 1500  TX Queue Len: 400 | ||||||
|          if ( $ln =~ |          if ( $ln =~ | ||||||
| /\s+MAC:\s+(\S+)\s+DEV:\s+(\S+)\s+MTU:\s+(\d+)\s+TX Queue Len:\s+(\d+)/ | /\s+MAC:\s+(\S+)\s+DEV:\s+(\S+)\s+MTU:\s+(\d+)\s+TX[ -]Queue[ -]Len:\s+(\d+)/ | ||||||
|            ) |            ) | ||||||
|          { |          { | ||||||
|             $self->mac_addr($1); |             $self->mac_addr($1); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jed Reynolds
					Jed Reynolds