Skip to content

Commit

Permalink
server: remove ipv4 from network repr
Browse files Browse the repository at this point in the history
  • Loading branch information
willcl-ark committed Aug 19, 2024
1 parent 3cef078 commit 373a61b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions src/warnet/tank.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ def suffix(self):

@property
def ipv4(self):
if self._ipv4 is None:
self._ipv4 = generate_ipv4_addr(self.warnet.subnet)
return self._ipv4

@property
Expand Down
6 changes: 1 addition & 5 deletions src/warnet/warnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,15 @@ def _warnet_dict_representation(self) -> dict:
# Warnet
repr["warnet_headers"] = [
"Temp dir",
"Bitcoin network",
"Network name",
"Docker network",
"Subnet",
"Graph",
]
repr["warnet"] = [
[
str(self.config_dir),
self.bitcoin_network,
self.network_name,
self.subnet,
str(self.graph),
]
]
Expand All @@ -55,7 +53,6 @@ def _warnet_dict_representation(self) -> dict:
tank_headers = [
"Index",
"Version",
"IPv4",
"bitcoin conf",
"tc_netem",
"LN",
Expand All @@ -68,7 +65,6 @@ def _warnet_dict_representation(self) -> dict:
tank_data = [
tank.index,
tank.version if tank.version else tank.image,
tank.ipv4,
tank.bitcoin_config,
tank.netem,
]
Expand Down

0 comments on commit 373a61b

Please sign in to comment.