Here is my code
from pox.lib.addresses import IPAddr
def ip_atoi(st):
"""
function to convert ip address to integer value
"""
st=st.split(".")
return int("%02x%02x%02x%02x"%(int(st[0]),int(st[1]),int(st[2]),int(st[3])),16)
when i run this script in pox controller i am getting error saying
AttributeError: 'IPAddr' object has no attribute 'split'