Re: [openstack-dev] Validation of IP

2014-01-21 Thread Assaf Muller
('Yup!') Assaf Muller, Cloud Networking Engineer Red Hat - Original Message - From: "iKhan" To: "openstack-dev" Sent: Tuesday, January 21, 2014 4:55:05 AM Subject: [openstack-dev] Validation of IP Hi, I am planning to validate an IP which is accepte

[openstack-dev] Validation of IP

2014-01-20 Thread iKhan
Hi, I am planning to validate an IP which is accepted part of input from user in cinder, I need to verify if IP address is valid and it is up in the network. The dirty way or only way that I know as of now is to create a socket object and perform inet_aton()and gethostbyaddr() Jut worried if thes