NSX|V fix exception & typo in vpn driver

TrivialFix

Change-Id: I2b52fb1c3220245e4fed6a9658d022d80cbc3a18
This commit is contained in:
Adit Sarfaty 2017-11-08 09:23:54 +02:00
parent 5e9d41ac17
commit 5aafe4d0f4

View File

@ -37,7 +37,7 @@ class IPsecValidator(vpn_validator.VpnReferenceValidator):
if version != 'v1': if version != 'v1':
msg = _("Unsupported ike policy %s! only v1 " msg = _("Unsupported ike policy %s! only v1 "
"is supported right now.") % version "is supported right now.") % version
raise nsxv_exc.NsxIPsecVpnError(details=msg) raise nsxv_exc.NsxVpnValidationError(details=msg)
def validate_ikepolicy_pfs(self, policy_info): def validate_ikepolicy_pfs(self, policy_info):
# Check whether pfs is allowed. # Check whether pfs is allowed.
@ -52,7 +52,7 @@ class IPsecValidator(vpn_validator.VpnReferenceValidator):
encryption = policy_info['encryption_algorithm'] encryption = policy_info['encryption_algorithm']
if encryption not in nsxv_constants.ENCRYPTION_ALGORITHM_MAP: if encryption not in nsxv_constants.ENCRYPTION_ALGORITHM_MAP:
msg = _("Unsupported encryption_algorithm: %(algo)s! please " msg = _("Unsupported encryption_algorithm: %(algo)s! please "
"select one of the followoing supported algorithms: " "select one of the following supported algorithms: "
"%(supported_algos)s") % { "%(supported_algos)s") % {
'algo': encryption, 'algo': encryption,
'supported_algos': 'supported_algos':