Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions sdcclient/_secure.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def get_falco_macro_id(self, id):
verify=self.ssl_verify)
return self._request_result(res)

def add_falco_macro(self, name, condition):
def add_falco_macro(self, name, condition, append=False):
'''**Description**
Create a new macro
Expand All @@ -822,7 +822,8 @@ def add_falco_macro(self, name, condition):
"condition": {
"components": [],
"condition": condition
}
},
"append": append
}
res = requests.post(self.url + '/api/secure/falco/macros', data=json.dumps(macro), headers=self.hdrs,
verify=self.ssl_verify)
Expand Down Expand Up @@ -908,7 +909,7 @@ def get_falco_list_id(self, id):
verify=self.ssl_verify)
return self._request_result(res)

def add_falco_list(self, name, items):
def add_falco_list(self, name, items, append=False):
'''**Description**
Create a new list
Expand All @@ -923,7 +924,8 @@ def add_falco_list(self, name, items):
"name": name,
"items": {
"items": items
}
},
"append": append
}
res = requests.post(self.url + '/api/secure/falco/lists', data=json.dumps(flist), headers=self.hdrs,
verify=self.ssl_verify)
Expand Down