Merge "Fix ML2 VXLAN TypeDriver DB migration"
This commit is contained in:
commit
cae08ee0b8
@ -55,9 +55,9 @@ def upgrade(active_plugins=None, options=None):
|
||||
op.create_table(
|
||||
'ml2_vxlan_endpoints',
|
||||
sa.Column('ip_address', sa.String(length=64)),
|
||||
sa.Column('udp_port', sa.Integer(), nullable=False),
|
||||
sa.PrimaryKeyConstraint('ip_address'),
|
||||
sa.PrimaryKeyConstraint('udp_port')
|
||||
sa.Column('udp_port', sa.Integer(), nullable=False,
|
||||
autoincrement=False),
|
||||
sa.PrimaryKeyConstraint('ip_address', 'udp_port')
|
||||
)
|
||||
|
||||
|
||||
|
@ -59,7 +59,8 @@ class VxlanEndpoints(model_base.BASEV2):
|
||||
__tablename__ = 'ml2_vxlan_endpoints'
|
||||
|
||||
ip_address = sa.Column(sa.String(64), primary_key=True)
|
||||
udp_port = sa.Column(sa.Integer, primary_key=True, nullable=False)
|
||||
udp_port = sa.Column(sa.Integer, primary_key=True, nullable=False,
|
||||
autoincrement=False)
|
||||
|
||||
def __repr__(self):
|
||||
return "<VxlanTunnelEndpoint(%s)>" % self.ip_address
|
||||
|
Loading…
Reference in New Issue
Block a user