File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,22 @@ def to_dict(self) -> None:
6868
6969 # End of generated code
7070
71+ def wait_for_network_ready (self , timeout : int = 30 ) -> None :
72+ """
73+ Wait for the network to be ready.
74+
75+ Args:
76+ timeout (int, optional): Maximum time to wait in seconds. Defaults to 30.
77+
78+ Raises:
79+ TimeoutExpiredError: If the network is not ready within the specified timeout.
80+ """
81+ self .wait_for_condition (
82+ condition = self .Condition .NETWORK_READY ,
83+ status = self .Condition .Status .TRUE ,
84+ timeout = timeout ,
85+ )
86+
7187
7288class Layer2UserDefinedNetwork (UserDefinedNetwork ):
7389 """
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ class Condition:
2727 RECONCILE_COMPLETE : str = "ReconcileComplete"
2828 READY : str = "Ready"
2929 FAILING : str = "Failing"
30+ NETWORK_READY = "NetworkReady"
3031
3132 class Status :
3233 TRUE : str = "True"
You can’t perform that action at this time.
0 commit comments