Merge pull request #66 from tomking2/master

Including Network-Other option for API
pull/30/head
Raphaël Vinot 2016-10-20 14:32:18 +02:00 committed by GitHub
commit 9f1b765480
1 changed files with 5 additions and 0 deletions

View File

@ -606,6 +606,11 @@ class PyMISP(object):
attributes.append(self._prepare_full_attribute(category, 'snort', snort, to_ids, comment, distribution))
return self._send_attributes(event, attributes, proposal)
def add_net_other(self, event, netother, category='Network activity', to_ids=True, comment=None, distribution=None, proposal=False):
attributes = []
attributes.append(self._prepare_full_attribute(category, 'other', netother, to_ids, comment, distribution))
return self._send_attributes(event, attributes, proposal)
# ##### Email attributes #####
def add_email_src(self, event, email, to_ids=True, comment=None, distribution=None, proposal=False):