1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: vrf: fix typo in vrf default attribute name get at init

Ticket: CM-9105
Reviewed By: trivial
Testing Done: tested vrf bringup and default attributes at boot

also change some policy manager errors to info
This commit is contained in:
Roopa Prabhu
2016-03-13 18:04:23 -07:00
parent 6f2890fcf4
commit 83841a5136
2 changed files with 5 additions and 3 deletions

View File

@@ -54,9 +54,10 @@ class policymanager():
self.logger.debug('reading %s system policy defaults config' \
% filename)
except Exception, e:
self.logger.debug('could not read %s system policy defaults config' \
self.logger.info('could not read %s system policy defaults config' \
% filename)
self.logger.debug(' exception is %s' % str(e))
self.logger.info(' exception is %s' % str(e))
for module in system_array.keys():
if self.system_policy_array.has_key(module):
self.logger.debug('warning: overwriting system module %s from file %s' \
@@ -170,6 +171,7 @@ class policymanager():
We first check the user_policy_array and return that value. But if
the user did not specify an override, we use the system_policy_array.
'''
if (not attr or not module_name):
return None
# users can specify defaults to override the systemwide settings