File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -567,8 +567,7 @@ def create_pod_object(
567
567
),
568
568
)
569
569
570
- def get_tank_ipv4 (self , index : int ) -> str | None :
571
- pod_name = self .get_pod_name (index , ServiceType .BITCOIN )
570
+ def get_ipv4 (self , pod_name : str , service_type : ServiceType ) -> str | None :
572
571
pod = self .get_pod (pod_name )
573
572
if pod :
574
573
return pod .status .pod_ip
Original file line number Diff line number Diff line change 10
10
import networkx
11
11
12
12
from .backend .kubernetes_backend import KubernetesBackend
13
+ from .services import ServiceType
13
14
from .tank import Tank
14
15
from .utils import gen_config_dir , load_schema , validate_graph_schema
15
16
@@ -132,7 +133,8 @@ def from_network(cls, network_name):
132
133
if "services" in self .graph .graph :
133
134
self .services = self .graph .graph ["services" ].split ()
134
135
for tank in self .tanks :
135
- tank .ipv4 = self .container_interface .get_tank_ipv4 (tank .index )
136
+ pod_name = self .container_interface .get_pod_name (tank .index , ServiceType .BITCOIN )
137
+ tank .ipv4 = self .container_interface .get_ipv4 (pod_name , ServiceType .BITCOIN )
136
138
return self
137
139
138
140
def tanks_from_graph (self ):
You can’t perform that action at this time.
0 commit comments