@decorators.which('arp')
def arp():
 ret = {}
 out = __salt__['cmd.run']('arp -an')
 for line in out.splitlines():
  comps = line.split()
  if (len(comps) < 4):
   continue
  if (__grains__['kernel'] == 'SunOS'):
   if (':' not in comps[(-1)]):
    continue
   ret[comps[(-1)]] = comps[1]
  elif (__grains__['kernel'] == 'OpenBSD'):
   if ((comps[0] == 'Host') or (comps[1] == '(incomplete)')):
    continue
   ret[comps[1]] = comps[0]
  else:
   ret[comps[3]] = comps[1].strip('(').strip(')')
 return ret

@ decorators . which ( 'arp' ) def arp ( ) : ret = { } out = __salt__ [ 'cmd.run' ] ( 'arp -an' ) for line in out . splitlines ( ) : comps = line . split ( ) if ( len ( comps ) < 4 ) : continue if ( __grains__ [ 'kernel' ] == 'SunOS' ) : if ( ':' not in comps [ ( - 1 ) ] ) : continue ret [ comps [ ( - 1 ) ] ] = comps [ 1 ] elif ( __grains__ [ 'kernel' ] == 'OpenBSD' ) : if ( ( comps [ 0 ] == 'Host' ) or ( comps [ 1 ] == '(incomplete)' ) ) : continue ret [ comps [ 1 ] ] = comps [ 0 ] else : ret [ comps [ 3 ] ] = comps [ 1 ] . strip ( '(' ) . strip ( ')' ) return ret
return the arp table from the minion .