Discussion:
I.P Address Format
Haider Khalil
2014-04-08 22:57:47 UTC
Permalink
Hello Experts,
I need advice on removing check on I.P address Format for devices. I want to use port numbers with I.P address while Adding I.P under any device.
Is there any way to do that. Can you please point me in right direction.


Argument 'ip' of value '10.120.6.131:6028' is invalid (Invalid IP address).


Thanks,Haider
Michał Sochoń
2014-04-09 09:27:54 UTC
Permalink
You better define new custom field and set port there.
Then you can alter code or write a plugin to merge ip and port together.

Don't touch ip table.
Post by Haider Khalil
Hello Experts,
I need advice on removing check on I.P address Format for devices. I want
to use port numbers with I.P address while Adding I.P under any device.
Is there any way to do that. Can you please point me in right direction.
Argument 'ip' of value '10.120.6.131:6028' is invalid (Invalid IP address).
Thanks,
Haider
--
Michal Sochoń
alias _KaszpiR_ kaszpir-***@public.gmane.org
IRC: _KaszpiR_ @ freenode.net
Tyler J. Wagner
2014-04-09 16:03:26 UTC
Permalink
Post by Haider Khalil
I need advice on removing check on I.P address Format for devices. I want
to use port numbers with I.P address while Adding I.P under any device.
Is there any way to do that. Can you please point me in right direction.
I don't think that's wise. Michal's suggestion of a custom field is best.
Remember also that there is no such thing as "port number". But there is
"TCP port number", and "UDP port number", as well as many other protocols'
port numbers.

Regards,
Tyler
--
"All that is necessary for the triumph of evil is that good men do
nothing."
-- Attributed to Edmund Burke
Haider Khalil
2014-04-09 16:21:22 UTC
Permalink
Thank you for your reply.
Can I take off the check from I.P address field to 4 octets and should have "." between each octet ?
I am not much of a coder to create a custom filed and then add it to the PHP code and SQL.
Thanks,HK
Date: Wed, 9 Apr 2014 09:03:26 -0700
Subject: [racktables-users] Re: I.P Address Format
Post by Haider Khalil
I need advice on removing check on I.P address Format for devices. I want
to use port numbers with I.P address while Adding I.P under any device.
Is there any way to do that. Can you please point me in right direction.
I don't think that's wise. Michal's suggestion of a custom field is best.
Remember also that there is no such thing as "port number". But there is
"TCP port number", and "UDP port number", as well as many other protocols'
port numbers.
Regards,
Tyler
--
"All that is necessary for the triumph of evil is that good men do
nothing."
-- Attributed to Edmund Burke
Tyler J. Wagner
2014-04-09 16:27:44 UTC
Permalink
Haider,

The IP field is more than just a text entry. Several other attributes and
page views key off it. DO NOT attempt to modify it the way you propose.

Regards,
Tyler
Post by Haider Khalil
Thank you for your reply.
Can I take off the check from I.P address field to 4 octets and should have
"." between each octet ?
I am not much of a coder to create a custom filed and then add it to the PHP code and SQL.
Thanks,
HK
Date: Wed, 9 Apr 2014 09:03:26 -0700
Subject: [racktables-users] Re: I.P Address Format
Post by Haider Khalil
I need advice on removing check on I.P address Format for devices. I want
to use port numbers with I.P address while Adding I.P under any device.
Is there any way to do that. Can you please point me in right direction.
I don't think that's wise. Michal's suggestion of a custom field is best.
Remember also that there is no such thing as "port number". But there is
"TCP port number", and "UDP port number", as well as many other protocols'
port numbers.
Regards,
Tyler
--
"All that is necessary for the triumph of evil is that good men do
nothing."
-- Attributed to Edmund Burke
--
"All that is necessary for the triumph of evil is that good men do
nothing."
-- Attributed to Edmund Burke
Loading...