TRITON-2331: sdc-ufds-m2s fails to parse IP addresses

Details

Issue Type:Bug
Priority:5 - Low
Status:Open
Created at:2022-09-12T16:10:55.692Z
Updated at:2022-09-13T14:55:21.788Z

People

Created by:Brian Bennett
Reported by:Brian Bennett
Assigned to:Brian Bennett

Related Links

Description

After providing a valid IP, it responds A valid network number (n.n.n.n) must be provided and prompts again.

Comments

Comment by Travis Paul
Created at 2022-09-12T16:54:40.510Z

Extracted the function and threw some IPv4s at it, seems to do what’s expected\! +1’d

tpaul@d59e0fe0-2b1f-4272-9285-40a14859c70a:~$ ./test.sh                                                                                                                                  
1
tpaul@d59e0fe0-2b1f-4272-9285-40a14859c70a:~$ ./test.sh 192.168.0.0                                                                                                                      
0
tpaul@d59e0fe0-2b1f-4272-9285-40a14859c70a:~$ ./test.sh 10.0.0.0                                                                                                                         
0
tpaul@d59e0fe0-2b1f-4272-9285-40a14859c70a:~$ ./test.sh 255.255.255.255                                                                                                                  
0
tpaul@d59e0fe0-2b1f-4272-9285-40a14859c70a:~$ ./test.sh 1.1.1.256                                                                                                                        
1
tpaul@d59e0fe0-2b1f-4272-9285-40a14859c70a:~$ ./test.sh 1.0                                                                                                                              
1
tpaul@d59e0fe0-2b1f-4272-9285-40a14859c70a:~$ ./test.sh a.b.c.d                                                                                                                          
1