nl_tokens: Create a new policy that wraps the provided child policy but only allow hosts from the provided while list .
pl_tokens: function WhiteListPolicy ( childPolicy , whiteList ) { if ( ! childPolicy ) { throw new Error ( "You must specify a child load balancing policy" ) ; } if ( ! util . isArray ( whiteList ) ) { throw new Error ( "You must provide the white list of host addresses" ) ; } this . childPolicy = childPolicy ; const map = { } ; whiteList . forEach ( function ( <mask> ) { map [ address ] = true ; } ) ; this . whiteList = map ; }