def set_proxy_bypass(domains, network_service='Ethernet'):
 servers_str = ' '.join(domains)
 cmd = 'networksetup -setproxybypassdomains {0} {1}'.format(network_service, servers_str)
 out = __salt__['cmd.run'](cmd)
 return ('error' not in out)

def set_proxy_bypass ( domains , network_service = 'Ethernet' ) : servers_str = ' ' . join ( domains ) cmd = 'networksetup -setproxybypassdomains {0} {1}' . format ( network_service , servers_str ) out = __salt__ [ 'cmd.run' ] ( cmd ) return ( 'error' not in out )
sets the domains that can bypass the proxy domains an array of domains allowed to bypass the proxy network_service the network service to apply the changes to .