#NEWLINE# def create_router_assoc( self , context , bgpvpn_id , router_association ) : #NEWLINE# #INDENT# with context . session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# assoc = self . bgpvpn_db . create_router_assoc ( context , bgpvpn_id , router_association ) #NEWLINE# self . create_router_assoc_precommit ( context , assoc ) #NEWLINE# #UNINDENT# self . create_router_assoc_postcommit ( context , assoc ) #NEWLINE# return assoc