renamed netclient create_interface to set_interface_master to better describe its purpose
This commit is contained in:
parent
10fd844397
commit
8ad3f7961a
3 changed files with 7 additions and 8 deletions
|
@ -251,7 +251,7 @@ class LinuxNetClient:
|
|||
self.device_down(name)
|
||||
self.run(f"{IP_BIN} link delete {name} type bridge")
|
||||
|
||||
def create_interface(self, bridge_name: str, interface_name: str) -> None:
|
||||
def set_interface_master(self, bridge_name: str, interface_name: str) -> None:
|
||||
"""
|
||||
Assign interface master to a Linux bridge.
|
||||
|
||||
|
@ -330,7 +330,7 @@ class OvsNetClient(LinuxNetClient):
|
|||
self.device_down(name)
|
||||
self.run(f"{OVS_BIN} del-br {name}")
|
||||
|
||||
def create_interface(self, bridge_name: str, interface_name: str) -> None:
|
||||
def set_interface_master(self, bridge_name: str, interface_name: str) -> None:
|
||||
"""
|
||||
Create an interface associated with a network bridge.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue