예제 #1
0
파일: lsnmanager.py 프로젝트: pjh03/quantum
 def lsn_port_delete(self, context, lsn_id, lsn_port_id):
     lsn_db.lsn_port_remove(context, lsn_port_id)
     super(PersistentLsnManager,
           self).lsn_port_delete(context, lsn_id, lsn_port_id)
예제 #2
0
 def test_lsn_port_remove(self):
     lsn_db.lsn_add(self.ctx, self.net_id, self.lsn_id)
     lsn_db.lsn_port_remove(self.ctx, self.lsn_port_id)
     q = (self.ctx.session.query(lsn_db.LsnPort).
          filter_by(lsn_port_id=self.lsn_port_id))
     self.assertRaises(orm.exc.NoResultFound, q.one)
예제 #3
0
 def lsn_port_delete(self, context, lsn_id, lsn_port_id):
     lsn_db.lsn_port_remove(context, lsn_port_id)
     super(PersistentLsnManager, self).lsn_port_delete(
         context, lsn_id, lsn_port_id)
예제 #4
0
 def test_lsn_port_remove(self):
     lsn_db.lsn_add(self.ctx, self.net_id, self.lsn_id)
     lsn_db.lsn_port_remove(self.ctx, self.lsn_port_id)
     q = (self.ctx.session.query(
         lsn_db.LsnPort).filter_by(lsn_port_id=self.lsn_port_id))
     self.assertRaises(orm.exc.NoResultFound, q.one)