def create_vlanids():
 LOG.debug(_('create_vlanids() called'))
 session = db.get_session()
 try:
  vlanid = session.query(network_models_v2.VlanID).one()
 except exc.MultipleResultsFound:
  pass
 except exc.NoResultFound:
  start = int(conf.VLAN_START)
  end = int(conf.VLAN_END)
  while (start <= end):
   vlanid = network_models_v2.VlanID(start)
   session.add(vlanid)
   start += 1
  session.flush()
 return

def create_vlanids ( ) : LOG . debug ( _ ( 'create_vlanids() called' ) ) session = db . get_session ( ) try : vlanid = session . query ( network_models_v2 . VlanID ) . one ( ) except exc . MultipleResultsFound : pass except exc . NoResultFound : start = int ( conf . VLAN_START ) end = int ( conf . VLAN_END ) while ( start <= end ) : vlanid = network_models_v2 . VlanID ( start ) session . add ( vlanid ) start += 1 session . flush ( ) return
prepopulates the vlan_bindings table .