Skip to content

Commit a6030ad

Browse files
kaiseroOliver Kaiser
and
Oliver Kaiser
authored
v1.0.5 (#48)
Co-authored-by: Oliver Kaiser <ok@on.at>
1 parent 9e0d086 commit a6030ad

File tree

85 files changed

+395
-372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+395
-372
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ exclude =
99
docs/source/conf.py,
1010
old,
1111
build,
12-
dist
12+
dist

CHANGELOG.md

Lines changed: 103 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,45 @@
1+
# 1.0.5 [2020-03-19]
2+
3+
## Fixed
4+
5+
* `ChildResource` missing uuid by name lookup functionality (#45)
6+
* Custom params causing container lookup by name to fail (#45)
7+
* `job.taskstatuses` accessibility from `fmc` object (#47)
8+
* Incorrect Namespace references in `update`, `upgradepackage` and `deployabledevices` Resources (#46)
9+
10+
## Fixed
11+
112
# 1.0.4
213

3-
## Bugfixes
14+
## Fixed
415

5-
Fixed issue with container name resolution that caused incorrect params to be passed to GET_BY_ID operations
6-
Fixed an issue where HTTPErrors where incorrectly raised, causing confusing exceptions
16+
* Fixed issue with container name resolution that caused incorrect params to be passed to GET_BY_ID operations
17+
* Fixed an issue where HTTPErrors where incorrectly raised, causing confusing exceptions
718

819
# 1.0.3
920

10-
## Enhancements
21+
## Changed
1122

12-
Added dry_mode switch to FMC object. When using dry_mode PUT, POST and DELETE
13-
operations are not executed and only logged to FireREST logger
23+
* Added dry_mode switch to FMC object. When using dry_mode PUT, POST and DELETE
24+
* Operations are not executed and only logged to FireREST logger
1425

15-
## Bugfixes
26+
## Fixed
1627

17-
Added missing `Override` reference to host object
28+
* Added missing `Override` reference to host object
1829

1930
# 1.0.2
2031

21-
## Enhancements
32+
## New
2233

23-
Added `Override` resource to all objects that support object overrides
34+
* Added `Override` resource to all objects that support object overrides
2435

2536
# 1.0.1
2637

27-
## Bugfixes
38+
## Fixed
2839

29-
Fixed an issue where simplejson installation cause FireREST to be unusable
30-
due to requests library using simplejson instead of built-in json library
31-
causing simplejson exception to be thrown instead of json.DecodeError exception
40+
* Fixed an issue where simplejson installation cause FireREST to be unusable
41+
due to requests library using simplejson instead of built-in json library
42+
causing simplejson exception to be thrown instead of json.DecodeError exception
3243

3344
# 1.0.0
3445

@@ -37,140 +48,142 @@ refactor the whole project to provide a more structured way to interact with
3748
FMC. Before 1.0.0 all calls to FMC were provided by a `Client` object which was
3849
replaced by `FMC` that provides a hierarchical access to all resources on FMC.
3950

40-
## Enhancements
51+
## Changed
4152

42-
Replaced `Client` object with `FMC`
43-
Provide structured access to api objects. e.g. `fmc.policy.accesspolicy.get`
44-
Provide more granular error handling using custom exceptions
53+
* Replaced `Client` object with `FMC`
54+
* Provide structured access to api objects. e.g. `fmc.policy.accesspolicy.get`
55+
* Provide more granular error handling using custom exceptions
4556

4657
# 0.1.8
4758

48-
## Bugfixes
59+
## New
4960

50-
Fixed various s2svpn related operations that missed string interpolation
61+
* Filtering options to all supported api calls
5162

52-
## Enhancements
63+
## Fixed
5364

54-
Added filtering options to all supported api calls
65+
* Various s2svpn related operations that missed string interpolation
5566

5667
# 0.1.7
5768

58-
## Bugfixes
59-
60-
Fixed issue where reauth was not triggered correctly
69+
## New
6170

62-
## Enhancements
71+
* Health alert api calls for 6.7.0
72+
* Additional id_by_name operations
73+
* Better logging for requests
6374

64-
Added health alert api calls for 6.7.0
65-
Added additional id_by_name operations
66-
Added better logging for requests
75+
## Fixed
6776

68-
# 0.1.6
77+
* Reauth was not triggered correctly when authentication failed
6978

70-
## Bugfixes
7179

72-
Fixed issue with incorrect default id values
80+
# 0.1.6
7381

74-
## Enhancements
82+
## New
7583

76-
Added ResourceNotFound exception for 404 errors
84+
* ResourceNotFound exception for 404 errors
85+
* Additional api calls
86+
* S2svpn
87+
* vlaninterfaces
88+
* interfaceevents
89+
* devicecopyrequests
90+
* virtualrouter
91+
* inlinesets
92+
* prefilterpolicy
93+
* prefilterpolicy rules
94+
* accesspolicy defaultaction
95+
* device metrics
96+
* device commands
7797

78-
Added additional api calls
79-
* s2svpn
80-
* vlaninterfaces
81-
* interfaceevents
82-
* devicecopyrequests
83-
* virtualrouter
84-
* inlinesets
85-
* prefilterpolicy
86-
* prefilterpolicy rules
87-
* accesspolicy defaultaction
88-
* device metrics
89-
* device commands
98+
## Fixed
9099

91-
Added vrf support for applicable device api calls
100+
* Issue with incorrect default id values
92101

93-
Renamed get_id functions (removed _by_name suffix)
94102

95103
# 0.1.5
96104

97-
## Bugfixes
105+
## Changed
98106

99-
Fixed issue with id_by_name helper functions caused by incorrect cache impl (#28)
100-
Fixed missing interface_id param for interface PUT operations (#30)
107+
* Added additional unit tests for id_by_name operations
108+
* Merged and enhanced hitcount implementation by @arnydo (#29)
101109

102-
## Enhancements
110+
## Fixed
103111

104-
Added additional unit tests for id_by_name operations
105-
Merged and enhanced hitcount implementation by @arnydo (#29)
112+
* Issue with id_by_name helper functions caused by incorrect cache impl (#28)
113+
* Nissing interface_id param for interface PUT operations (#30)
106114

107115
# 0.1.4
108116

109-
## Bugfixes
117+
## Changed
118+
119+
* Added various tests for better qa
110120

111-
Added a fix to correctly sanitize payloads for put operations
112-
Corrected cache_result condition that did not match correctly
121+
## Fixed
113122

114-
## Enhancements
123+
* Correctly sanitize payloads for put operations
124+
* Corrected cache_result condition that did not match correctly
115125

116-
Added various tests for better qa
117126

118127
# 0.1.3
119128

120-
## Bugfixes
129+
## Fixed
121130

122-
Fixed missing conversion from dict to json in _request helper
131+
* Missing conversion from dict to json in _request helper
123132

124133
# 0.1.2
125134

126-
## Bugfixes
135+
## Fixed
127136

128-
Corrected api call for getting audit records (#24)
129-
Corrected incorrect base api calls by removing positional args (#23)
137+
* Api call for getting audit records (#24)
138+
* Incorrect base api calls by removing positional args (#23)
130139

131140
# 0.1.1
132141

133-
## Enhancements
142+
## Changed
134143

135-
Changed dependency version pinning to minimum required software versions
144+
* Dependency version pinning to minimum required software versions
136145

137146
# 0.1.0
138147

139-
## Bugfixes
148+
## Fixed
140149

141-
Fixed a KeyError that occured when get request was launched that yielded an empty result (no items)
142-
Fixed a incorrect function call that caused getter for obj overrides to fail
150+
* KeyError that occured when get request was launched that yielded an empty result (no items)
151+
* Incorrect function call that caused getter for obj overrides to fail
143152

144153
# 0.0.9
145154

146-
## Bugfixes
155+
## Changed
147156

148-
Fixed issue mentioned in (#19)
157+
* Added version pinning for all dependencies
158+
* Added tox integration for testing new releases
159+
* Added cache option for costly getbyid operations using cache flag
160+
* Added sessions so tcp connections are being reused for subsequent api calls
161+
* Added better error handling and better retrying for rate limiting exception
162+
* Added prefilterpolicy related crud operations
163+
* Added minimum version requirements to api calls
164+
* Rewrote tests with pytest instead of unittest
165+
* Restructured project and moved default, exceptions and utils into their own files
166+
* Renamed accesscontrolpolicy related crud operations
149167

150-
## Enhancements
168+
## Fixed
151169

152-
Added version pinning for all dependencies
153-
Added tox integration for testing new releases
154-
Added cache option for costly getbyid operations using cache flag
155-
Added sessions so tcp connections are being reused for subsequent api calls
156-
Added better error handling and better retrying for rate limiting exception
157-
Added prefilterpolicy related crud operations
158-
Added minimum version requirements to api calls
159-
Rewrote tests with pytest instead of unittest
160-
Restructured project and moved default, exceptions and utils into their own files
161-
Renamed accesscontrolpolicy related crud operations
170+
* #19
162171

163172
# 0.0.4
164173

165-
## Bugfixes
174+
## New
166175

167-
* getbyid operations fails due to incorrect limit param
168-
* api calls for ftd ipv4/ipv6 static routing fails due to incorrect URLs
169-
* update ftd sub interface fails due to missing param
176+
* Changelog for new software releases
177+
* Api calls for hapair monitoredinterfaces (read, update)
178+
* Helper function to get primary device id from hapair
179+
* Expandable option for get_depoyable_deployable_devices
170180

171-
## Enhancements
181+
## Changed
172182

173-
* Add api calls for hapair monitoredinterfaces (read, update)
174-
* Add helper function to get primary device id from hapair
175-
* Add expandable option for get_depoyable_deployable_devices
176183
* Default paging change from 25 to 100
184+
185+
## Fixed
186+
187+
* Getbyid operations fails due to incorrect limit param
188+
* Api calls for ftd ipv4/ipv6 static routing fails due to incorrect URLs
189+
* Update ftd sub interface fails due to missing param

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![python3](https://img.shields.io/badge/python-3.7+-blue.svg)](https://github.com/kaisero/fireREST/) [![pypi](https://img.shields.io/pypi/v/fireREST)](https://pypi.org/project/fireREST/) [![license](https://img.shields.io/badge/license-GPL%20v3.0-brightgreen.svg)](https://github.com/kaisero/fireREST/blob/master/LICENSE) [![status](https://img.shields.io/badge/status-alpha-blue.svg)](https://github.com/kaisero/fireREST/) [![published](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-published.svg)](https://developer.cisco.com/codeexchange/github/repo/kaisero/fireREST)
1+
[![python3](https://img.shields.io/badge/python-3.7+-blue.svg)](https://github.com/kaisero/fireREST/) [![pypi](https://img.shields.io/pypi/v/fireREST)](https://pypi.org/project/fireREST/) [![license](https://img.shields.io/badge/license-GPL%20v3.0-brightgreen.svg)](https://github.com/kaisero/fireREST/blob/master/LICENSE) [![status](https://img.shields.io/badge/status-beta-blue.svg)](https://github.com/kaisero/fireREST/) [![published](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-published.svg)](https://developer.cisco.com/codeexchange/github/repo/kaisero/fireREST)
22

33

44
# FireREST

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
# built documents.
7373
#
7474
# The full version, including alpha/beta/rc tags.
75-
release = __version__
75+
release = __version__ # noqa: F821
7676
# The short X.Y version.
77-
version = __version__
77+
version = __version__ # noqa: F821
7878

7979
# The language for content autogenerated by Sphinx. Refer to documentation
8080
# for a list of supported languages.

fireREST/__init__.py

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,26 @@
22

33
import logging
44

5-
from . import defaults
6-
from . import exceptions as exc
7-
from . import utils
8-
from .fmc import Connection, Resource
9-
from .fmc.assignment import Assignment
10-
from .fmc.audit import Audit
11-
from .fmc.device import Device
12-
from .fmc.devicecluster import DeviceCluster
13-
from .fmc.devicehapair import DeviceHAPair
14-
from .fmc.devicegroup import DeviceGroup
15-
from .fmc.deployment import Deployment
16-
from .fmc.health import Health
17-
from .fmc.integration import Integration
18-
from .fmc.intelligence import Intelligence
19-
from .fmc.object import Object
20-
from .fmc.policy import Policy
21-
from .fmc.system import System
22-
from .fmc.update import Update
23-
from .fmc.user import User
5+
from fireREST import defaults
6+
from fireREST import exceptions as exc
7+
from fireREST import utils
8+
from fireREST.fmc import Connection, Resource
9+
from fireREST.fmc.assignment import Assignment
10+
from fireREST.fmc.audit import Audit
11+
from fireREST.fmc.deployment import Deployment
12+
from fireREST.fmc.device import Device
13+
from fireREST.fmc.devicecluster import DeviceCluster
14+
from fireREST.fmc.devicehapair import DeviceHAPair
15+
from fireREST.fmc.devicegroup import DeviceGroup
16+
from fireREST.fmc.health import Health
17+
from fireREST.fmc.integration import Integration
18+
from fireREST.fmc.intelligence import Intelligence
19+
from fireREST.fmc.job import Job
20+
from fireREST.fmc.object import Object
21+
from fireREST.fmc.policy import Policy
22+
from fireREST.fmc.system import System
23+
from fireREST.fmc.update import Update
24+
from fireREST.fmc.user import User
2425

2526

2627
logger = logging.getLogger(__name__)
@@ -47,11 +48,12 @@ def __init__(
4748
self.deployment = Deployment(self.conn)
4849
self.device = Device(self.conn)
4950
self.devicecluster = DeviceCluster(self.conn)
50-
self.devicehapair = DeviceHAPair(self.conn)
5151
self.devicegroup = DeviceGroup(self.conn)
52+
self.devicehapair = DeviceHAPair(self.conn)
5253
self.health = Health(self.conn)
5354
self.integration = Integration(self.conn)
5455
self.intelligence = Intelligence(self.conn)
56+
self.job = Job(self.conn)
5557
self.object = Object(self.conn)
5658
self.policy = Policy(self.conn)
5759
self.system = System(self.conn)

0 commit comments

Comments
 (0)