Merge "Use neutron-lib add_validator for registration"

changes/85/344085/3
Jenkins 6 years ago committed by Gerrit Code Review
commit 5f69b4dedd
  1. 4
      networking_l2gw/extensions/l2gateway.py

@ -18,6 +18,8 @@ from neutron.api import extensions
from neutron.api.v2 import attributes
from neutron.api.v2 import resource_helper
from neutron_lib.api import validators
import networking_l2gw.extensions
from networking_l2gw.services.l2gateway.common import constants
from networking_l2gw.services.l2gateway.common import l2gw_validators
@ -42,7 +44,7 @@ RESOURCE_ATTRIBUTE_MAP = {
}
validator_func = l2gw_validators.validate_gwdevice_list
attributes.validators['type:l2gwdevice_list'] = validator_func
validators.add_validator('l2gwdevice_list', validator_func)
class L2gateway(extensions.ExtensionDescriptor):

Loading…
Cancel
Save