Skip to content

Commit

Permalink
v1.0.8 (#52)
Browse files Browse the repository at this point in the history
* v1.0.5

* v1.0.6

* v1.0.7

* fixed missing hitcount filter impl

Co-authored-by: Oliver Kaiser <[email protected]>
  • Loading branch information
kaisero and Oliver Kaiser authored Aug 3, 2021
1 parent 69bef1a commit a2009cc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fireREST/fmc/object/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from fireREST.fmc import Connection, Resource
from fireREST.fmc import Connection
from fireREST.fmc.object.anyprotocolportobject import AnyProtocolPortObject
from fireREST.fmc.object.anyconnectcustomattribute import AnyconnectCustomAttribute
from fireREST.fmc.object.anyconnectpackage import AnyconnectPackage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Hitcount(ChildResource):
CONTAINER_NAME = 'AccessPolicy'
CONTAINER_PATH = '/policy/accesspolicies/{uuid}'
PATH = '/policy/accesspolicies/{container_uuid}/operational/hitcounts/{uuid}'
SUPPORTED_FILTERS = []
SUPPORTED_FILTERS = ['device_id', 'ids', 'fetch_zero_hitcount']
SUPPORTED_PARAMS = []
MINIMUM_VERSION_REQUIRED_GET = '6.4.0'
MINIMUM_VERSION_REQUIRED_UPDATE = '6.4.0'
Expand All @@ -19,8 +19,8 @@ def update(self):
return

@utils.support_params
def get(self):
return
def get(self, container_uuid, device_id=None, ids=None, fetch_zero_hitcount=None, params=None):
return super().get(container_uuid, params=params)

@utils.support_params
def delete(self):
Expand Down
2 changes: 2 additions & 0 deletions fireREST/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@
'original_destination_port': 'originalDestinationPort',
'translated_source_port': 'translatedSourcePort',
'translated_destination_port': 'translatedDestinationPort',
'ids': 'ids',
'fetch_zero_hitcount': 'fetchZeroHitCount',
}

PARAMS = {
Expand Down
1 change: 1 addition & 0 deletions fireREST/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ def search_filter(items=None):
for item in items:
for k, v in item.items():
if v:
v = str(v).lower() if type(v) == bool else v
filter_str += f'{k}:{v};'
return filter_str.rstrip(';')
return ''
Expand Down

0 comments on commit a2009cc

Please sign in to comment.