hio.core.coring
hio.core.coring Module
Module Contents
- hio.core.coring.normalizeHost(host)
Returns ip address host string in normalized dotted form or empty string converts host parameter which may be the dns name or ip address Prefers ipv4 addresses over ipv6 in that it will only return the ipv6 address if no ipv4 address equivalent is available
- hio.core.coring.arpCreate(ether, host, interface='en0', temp=True)
Create arp entry for ethernet mac address ether at ip address host on interface If temp is false then the entry is permanent otherwise its temporary
Assumes added /etc/sudoers entry to run arp with no password for user’s group $ sudo visudo
## Group to run arp as root with no password Cmnd_Alias ARP = /usr/sbin/arp %arp_group ALL=(ALL) NOPASSWD: ARP
- hio.core.coring.arpDelete(host, interface='en0')
Delete arp entry for ip address host on interface
Assumes added /etc/sudoers entry to run arp with no password for user’s group $ sudo visudo
## Group to run arp as root with no password Cmnd_Alias ARP = /usr/sbin/arp %arp_group ALL=(ALL) NOPASSWD: ARP