Change length of cert_id field to 128

Patch https://review.openstack.org/#/c/259534 have modified the length
of the id fields for the certificates in neutron-lbaas.
Id field in vmware-nsx should match the length in neutron.

Change-Id: I25d868747c79dcaaeb5691b8cc1cf3cacf804de7
This commit is contained in:
Kobi Samoray 2016-02-29 09:59:08 +02:00
parent 3f37015b08
commit 2da087a8a2
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ def upgrade():
'hm_id', 'edge_id'))
op.create_table(
'nsxv_lbaas_certificate_bindings',
sa.Column('cert_id', sa.String(length=36), nullable=False),
sa.Column('cert_id', sa.String(length=128), nullable=False),
sa.Column('edge_id', sa.String(length=36), nullable=False),
sa.Column('edge_cert_id', sa.String(length=36), nullable=False),
sa.PrimaryKeyConstraint('cert_id', 'edge_id'))

View File

@ -307,7 +307,7 @@ class NsxvLbaasCertificateBinding(model_base.BASEV2):
__tablename__ = 'nsxv_lbaas_certificate_bindings'
cert_id = sa.Column(sa.String(36), primary_key=True)
cert_id = sa.Column(sa.String(128), primary_key=True)
edge_id = sa.Column(sa.String(36), primary_key=True)
edge_cert_id = sa.Column(sa.String(36), nullable=False)