def init_vpc_entries(nexus_ip, vpc_list):
LOG.debug("<STR_LIT>")<EOL>if not vpc_list:<EOL><INDENT>return<EOL><DEDENT>session = bc.get_writer_session()<EOL>for vpc in vpc_list:<EOL><INDENT>vpc_alloc = nexus_models_v2.NexusVPCAlloc(<EOL>switch_ip=nexus_ip,<EOL>vpc_id=vpc,<EOL>learned=False,<EOL>active=False)<EOL>session.add(vpc_alloc)<EOL><DEDENT>session.flush()<EOL>
Initialize switch/vpc entries in vpc alloc data base.

    param: nexus_ip  ip addr of the nexus switch for this interface
    param: vpc_list  list of vpc integers to create