set adapter api for hash which is copied from quagga