mac_vlan_profile and test_fileio: Allow user to specify resource and shelf for eth ports

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-12-15 15:51:35 -08:00
parent a82db47ee9
commit 1f0b3e7ff1
2 changed files with 12 additions and 6 deletions

View File

@@ -19,14 +19,16 @@ class MACVLANProfile(LFCliBase):
local_realm,
macvlan_parent="eth1",
num_macvlans=1,
shelf=1,
resource=1,
dhcp=False,
debug_=False):
super().__init__(lfclient_host, lfclient_port, debug_)
self.local_realm = local_realm
self.num_macvlans = num_macvlans
self.macvlan_parent = macvlan_parent
self.resource = 1
self.shelf = 1
self.resource = resource
self.shelf = shelf
self.desired_macvlans = []
self.created_macvlans = []
self.dhcp = dhcp