SR.attach ported to the new boilerplate

Signed-off-by: David Scott <dave.scott@citrix.com>