Skip to content

Commit

Permalink
Update hyperv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SRIKKANTH committed Jan 27, 2025
1 parent fd1e50d commit 508476d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lisa/tools/hyperv.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import time
from dataclasses import dataclass
from enum import Enum
from typing import Dict, Optional
from typing import Dict, Optional, Set

from assertpy import assert_that
from dataclasses_json import dataclass_json
Expand Down Expand Up @@ -36,7 +36,7 @@ class HyperV(Tool):
IP_REGEX = r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"
_default_switch: Optional[VMSwitch] = None
_external_forwarding_port_start = 50000
_assigned_nat_ports: set[int] = set()
_assigned_nat_ports: Set[int] = set()

@property
def command(self) -> str:
Expand Down Expand Up @@ -295,7 +295,6 @@ def create_nat(self, name: str, ip_range: str) -> None:
force_run=True,
)


def add_nat_mapping(self, nat_name: str, internal_ip: str) -> int:
external_port = self._get_next_available_nat_port()

Expand Down

0 comments on commit 508476d

Please sign in to comment.