add last_octet method

returns the last octet of a ip address. used in building keepalived
routers