$OpenBSD: patch-salt_modules_network_py,v 1.4 2015/01/16 13:19:48 ajacoutot Exp $

https://github.com/saltstack/salt/commit/294ea72d9419e69f3f613e951a7cfd5f4840c66f

--- salt/modules/network.py.orig	Wed Jan 14 19:38:21 2015
+++ salt/modules/network.py	Fri Jan 16 13:29:58 2015
@@ -417,7 +417,12 @@ def arp():
         comps = line.split()
         if len(comps) < 4:
             continue
-        ret[comps[3]] = comps[1].strip('(').strip(')')
+        if not __grains__['kernel'] == 'OpenBSD':
+           ret[comps[3]] = comps[1].strip('(').strip(')')
+        else:
+           if comps[0] == 'Host' or comps[1] == '(incomplete)':
+               continue
+           ret[comps[1]] = comps[0]
     return ret
 
 
@@ -611,6 +616,9 @@ def mod_hostname(hostname):
                     fh.write(i)
     elif __grains__['os_family'] == 'Debian':
         with salt.utils.fopen('/etc/hostname', 'w') as fh:
+            fh.write(hostname + '\n')
+    elif __grains__['os_family'] == 'OpenBSD':
+        with salt.utils.fopen('/etc/myname', 'w') as fh:
             fh.write(hostname + '\n')
 
     return True
