Skip to content

Commit

Permalink
Merge pull request #355 from fabric-testbed/1.7-examples
Browse files Browse the repository at this point in the history
1.7 examples
  • Loading branch information
kthare10 authored Aug 5, 2024
2 parents fbc3468 + ae264c9 commit 2a30c79
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@ changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [1.7.1] - 07/19/2024
## [1.7.3] - 08/05/2024
### Fixed
- Add kali linux user name and prefix subinterface name with Node name (Issue [#356](https://github.com/fabric-testbed/fabrictestbed-extensions/issues/356))

## [1.7.2] - 07/22/2024
### Fixed
- Post Boot config check to run for current slices (PR [#353](https://github.com/fabric-testbed/fabrictestbed-extensions/pull/353))

## [1.7.1] - 07/19/2024

### Fixed
- Use cached resource information unless fresh information explicitly requested (Issue [#352](https://github.com/fabric-testbed/fabrictestbed-extensions/issues/352))

# [1.7.0] - 07/18/2024
## [1.7.0] - 07/18/2024

### Fixed
- Error *may* be inaccurate or wrong when I issue an invalid configuration. (Issue [#304](https://github.com/fabric-testbed/fabrictestbed-extensions/issues/304))
Expand Down
8 changes: 8 additions & 0 deletions docs/source/resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ resources
.. autoclass:: fabrictestbed_extensions.fablib.resources.Resources
:members:
:special-members: __str__

.. autoclass:: fabrictestbed_extensions.fablib.resources.Links
:members:
:special-members: __str__

.. autoclass:: fabrictestbed_extensions.fablib.resources.FacilityPorts
:members:
:special-members: __str__
3 changes: 3 additions & 0 deletions fabrictestbed_extensions/fablib/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,9 @@ def add_sub_interface(self, name: str, vlan: str, bw: int = 10):
f"{Constants.CMP_NIC_ConnectX_5}, {Constants.CMP_NIC_ConnectX_6}"
)

# Hack for finding interfaces
name = f"{self.get_name()}-{name}"

if self.get_fim():
child_interface = self.get_fim().add_child_interface(
name=name, labels=Labels(vlan=vlan)
Expand Down
2 changes: 2 additions & 0 deletions fabrictestbed_extensions/fablib/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,8 @@ def set_username(self, username: str = None):
self.username = "freebsd"
elif "openbsd" in self.get_image():
self.username = "openbsd"
elif "kali" in self.get_image():
self.username = "kali"
else:
self.username = None

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "fabrictestbed-extensions"
version = "1.7.2"
version = "1.7.3"
description = "FABRIC Python Client Library and CLI Extensions"
authors = [
{ name = "Paul Ruth", email = "[email protected]" },
Expand All @@ -20,7 +20,7 @@ dependencies = [
"ipyleaflet",
"ipycytoscape",
"tabulate",
"fabrictestbed==1.7.1",
"fabrictestbed==1.7.2",
"paramiko",
"jinja2>=3.0.0",
"pandas",
Expand Down

0 comments on commit 2a30c79

Please sign in to comment.