teach logger mech driver vlan transparency

add check_vlan_transparency method to logger mechanism driver.
Without this patch and with logger mechanism driver enabled,
vlan transparency is always rejected by logger mechanism driver.

Closes-Bug: #1673876
Change-Id: I954f3c0ba9d14d0800af26650d9ba2f088698aaf
(cherry picked from commit 650a4d8d29)
This commit is contained in:
Isaku Yamahata 2017-03-17 12:50:05 -07:00 committed by Ihar Hrachyshka
parent 7b67e63e97
commit 34a43f87f6
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ class LoggerMechanismDriver(api.MechanismDriver):
def delete_network_postcommit(self, context):
self._log_network_call("delete_network_postcommit", context)
def check_vlan_transparency(self, context):
self._log_network_call("check_vlan_transparency", context)
return True
def _log_subnet_call(self, method_name, context):
LOG.info(_("%(method)s called with subnet settings %(current)s "
"(original settings %(original)s)"),