Skip to content

Commit

Permalink
bug fix + remove bogus XMPP logs
Browse files Browse the repository at this point in the history
  • Loading branch information
advornic committed Jul 8, 2014
1 parent fa1b48c commit 977ee5d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions client/bootstrap
Expand Up @@ -104,6 +104,12 @@ xmpp_client = None #pylint: disable=C0103
# Uncomment this section in order to enable XMPP debug logging
# logging.basicConfig(level=logging.DEBUG,
# format='%(levelname)-8s %(message)s')

# You will also have to uncomment the following lines:
for logger in ['sleekxmpp.xmlstream.xmlstream',
'sleekxmpp.basexmpp']:
xmpp_log = logging.getLogger(logger)
xmpp_log.addHandler(logging.NullHandler())
#---------------------------------XMPP------------------------

# ------------------4.12.x support----------------------------
Expand Down Expand Up @@ -272,10 +278,12 @@ class Node(object):
return result

def disable_copp(self):
self.api_enable_cmds(['enable',
'configure',
'control-plane',
'no service-policy input copp-system-policy'])
# COPP does not apply to vEOS
if self.system()['model'] != 'vEOS':
self.api_enable_cmds(['enable',
'configure',
'control-plane',
'no service-policy input copp-system-policy'])

def system(self):
result = {}
Expand Down

0 comments on commit 977ee5d

Please sign in to comment.