NSX|v: Fix error on service insertion config

Change-Id: I564fa7de87dd6d6a6dd3d101b639f9950659b622
This commit is contained in:
Adit Sarfaty 2017-07-12 14:37:47 +03:00
parent 92246b7f19
commit c3c3feeeeb

View File

@ -66,7 +66,8 @@ class NsxvFlowClassifierDriver(fc_driver.FlowClassifierDriverBase):
rules from the nsx configuration and verify that it exists on backend. rules from the nsx configuration and verify that it exists on backend.
""" """
if not cfg.CONF.nsxv.service_insertion_profile_id: if not cfg.CONF.nsxv.service_insertion_profile_id:
raise cfg.RequiredOptError("service_profile_id") raise cfg.RequiredOptError("service_insertion_profile_id",
group=cfg.OptGroup('nsxv'))
self._profile_id = cfg.CONF.nsxv.service_insertion_profile_id self._profile_id = cfg.CONF.nsxv.service_insertion_profile_id
# Verify that this moref exists # Verify that this moref exists