acex-devkit 1.4.0__tar.gz → 1.5.0__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 (25) hide show
  1. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/PKG-INFO +1 -1
  2. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/pyproject.toml +1 -1
  3. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/models/composed_configuration.py +9 -1
  4. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/README.md +0 -0
  5. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/__init__.py +0 -0
  6. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/configdiffer/__init__.py +0 -0
  7. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/configdiffer/command.py +0 -0
  8. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/configdiffer/configdiffer.py +0 -0
  9. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/configdiffer/diff.py +0 -0
  10. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/configdiffer/old_configdiffer.py +0 -0
  11. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/configdiffer/old_diff.py +0 -0
  12. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/drivers/__init__.py +0 -0
  13. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/drivers/base.py +0 -0
  14. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/drivers/base_driver.py +0 -0
  15. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/exceptions/__init__.py +0 -0
  16. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/models/__init__.py +0 -0
  17. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/models/acl_model.py +0 -0
  18. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/models/attribute_value.py +0 -0
  19. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/models/container_entry.py +0 -0
  20. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/models/external_value.py +0 -0
  21. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/models/logging.py +0 -0
  22. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/models/ned.py +0 -0
  23. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/models/node_response.py +0 -0
  24. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/src/acex_devkit/models/spanning_tree.py +0 -0
  25. {acex_devkit-1.4.0 → acex_devkit-1.5.0}/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.4.0
3
+ Version: 1.5.0
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.4.0"
3
+ version = "1.5.0"
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"
@@ -120,6 +120,13 @@ class LldpConfigAttributes(BaseModel):
120
120
  suppress_tlv_advertisement: Optional[AttributeValue[List[str]]] = None # Comma-separated list of TLVs to suppress in advertisements. Values depend on device and vendor, but common ones include "system_name", "system_description", "system_capabilities", "management_address", etc.
121
121
  interfaces: Optional[Dict[str, Reference]] = {}
122
122
 
123
+ class CdpConfigAttributes(BaseModel):
124
+ enabled: Optional[AttributeValue[bool]] = None
125
+ transmit_interval: Optional[AttributeValue[int]] = None
126
+ hold_time: Optional[AttributeValue[int]] = None
127
+ advertise_v2: Optional[AttributeValue[bool]] = None # Whether to advertise CDP version 2
128
+ interfaces: Optional[Dict[str, Reference]] = {}
129
+
123
130
  #class Lldp(BaseModel):
124
131
  # config: Optional[LldpConfigAttributes] = LldpConfigAttributes()
125
132
  # #interfaces: Optional[Dict[str, LldpInterfaceConfigAttributes]] = {}
@@ -178,7 +185,7 @@ class EthernetCsmacdInterface(Interface):
178
185
  mtu: Optional[AttributeValue[int]] = None # No default set as it differs between devices and vendors
179
186
  negotiation: Optional[AttributeValue[bool]] = None
180
187
  #lldp_enabled: Optional[AttributeValue[bool]] = None
181
- cdp_enabled: Optional[AttributeValue[bool]] = None
188
+ #cdp_enabled: Optional[AttributeValue[bool]] = None
182
189
 
183
190
  # LACP relaterade attribut
184
191
  aggregate_id: Optional[AttributeValue[int]] = None
@@ -721,6 +728,7 @@ class ComposedConfiguration(BaseModel):
721
728
  system: Optional[System] = System()
722
729
  acl: Optional[Acl] = Acl()
723
730
  lldp: Optional[LldpConfigAttributes] = LldpConfigAttributes()
731
+ cdp: Optional[CdpConfigAttributes] = CdpConfigAttributes()
724
732
  lacp: Optional[Lacp] = Lacp()
725
733
  interfaces: Dict[str, InterfaceType] = {}
726
734
  network_instances: Dict[str, NetworkInstance] = {"global": NetworkInstance(name="global")}
File without changes