acex-devkit 1.0.2__tar.gz → 1.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/PKG-INFO +1 -1
  2. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/pyproject.toml +1 -1
  3. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/models/composed_configuration.py +21 -0
  4. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/README.md +0 -0
  5. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/__init__.py +0 -0
  6. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/configdiffer/__init__.py +0 -0
  7. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/configdiffer/configdiffer.py +0 -0
  8. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/drivers/__init__.py +0 -0
  9. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/drivers/base.py +0 -0
  10. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/drivers/base_driver.py +0 -0
  11. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/exceptions/__init__.py +0 -0
  12. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/models/__init__.py +0 -0
  13. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/models/attribute_value.py +0 -0
  14. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/models/external_value.py +0 -0
  15. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/models/logging.py +0 -0
  16. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/models/ned.py +0 -0
  17. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/models/node_response.py +0 -0
  18. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/models/spanning_tree.py +0 -0
  19. {acex_devkit-1.0.2 → acex_devkit-1.0.4}/src/acex_devkit/types/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: acex-devkit
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: ACE-X DevKit - Development kit for building ACE-X drivers and plugins
5
5
  License: AGPL-3.0
6
6
  Keywords: automation,devkit,sdk,drivers,plugins
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "acex-devkit"
3
- version = "1.0.2"
3
+ version = "1.0.4"
4
4
  description = "ACE-X DevKit - Development kit for building ACE-X drivers and plugins"
5
5
  authors = ["Johan Lahti <johan.lahti@acebit.se>"]
6
6
  readme = "README.md"
@@ -45,6 +45,8 @@ class SystemConfig(BaseModel):
45
45
  domain_name: Optional[AttributeValue[str]] = None
46
46
  hostname: Optional[AttributeValue[str]] = None
47
47
  location: Optional[AttributeValue[str]] = None
48
+ login_banner: Optional[AttributeValue[str]] = None
49
+ motd_banner: Optional[AttributeValue[str]] = None
48
50
 
49
51
  class TripleA(BaseModel): ...
50
52
 
@@ -213,6 +215,24 @@ class ManagementInterface(Interface):
213
215
  # Mgmt har inte vlan
214
216
  vlan_id: Optional[int] = None
215
217
 
218
+ class StaticRouteNextHop(BaseModel):
219
+ index: Optional[AttributeValue[int]] = None
220
+ next_hop: AttributeValue[str] # can be an IP address or an interface. Reference will be handled in config component
221
+ metric: Optional[AttributeValue[int]] = None
222
+ static_route: Optional[AttributeValue[str]] = None # Reference to parent static route, used for easier access in config component
223
+ network_instance: Optional[AttributeValue[str]] = None
224
+
225
+
226
+ class StaticRoute(BaseModel):
227
+ route_name: Optional[AttributeValue[str]] = None
228
+ prefix: AttributeValue[str]
229
+ next_hops: Optional[Dict[str, StaticRouteNextHop]] = {}
230
+ network_instance: Optional[AttributeValue[str]] = None
231
+
232
+ class Protocols(BaseModel):
233
+ static_routes: Optional[Dict[str, StaticRoute]] = {}
234
+ # OSPF, BGP, etc. can be added here as needed
235
+
216
236
  class RouteTarget(BaseModel):
217
237
  value: str # TODO: Add constraints and validators...
218
238
 
@@ -229,6 +249,7 @@ class NetworkInstance(BaseModel):
229
249
  vlans: Optional[Dict[str, Vlan]] = {}
230
250
  interfaces: Optional[Dict[str, Reference]] = {}
231
251
  inter_instance_policies: Optional[Dict[str, InterInstancePolicy]] = {}
252
+ protocols: Optional[Protocols] = Protocols()
232
253
 
233
254
  class LacpConfig(BaseModel):
234
255
  system_priority: Optional[AttributeValue[int]] = None
File without changes