Ensure MTU is set on VF when starting up
This commit is contained in:
parent
6cd0ccf0ad
commit
26dd24e3f5
|
@ -41,9 +41,11 @@ class SRIOVVFInstance(object):
|
||||||
|
|
||||||
self.pf = self.zkhandler.read(('node.sriov.vf', self.myhostname, 'sriov_vf.pf', self.vf))
|
self.pf = self.zkhandler.read(('node.sriov.vf', self.myhostname, 'sriov_vf.pf', self.vf))
|
||||||
self.mtu = self.zkhandler.read(('node.sriov.vf', self.myhostname, 'sriov_vf.mtu', self.vf))
|
self.mtu = self.zkhandler.read(('node.sriov.vf', self.myhostname, 'sriov_vf.mtu', self.vf))
|
||||||
|
|
||||||
self.vfid = self.vf.replace('{}v'.format(self.pf), '')
|
self.vfid = self.vf.replace('{}v'.format(self.pf), '')
|
||||||
|
|
||||||
|
self.logger.out('Setting MTU to {}'.format(self.mtu), state='i', prefix='SR-IOV VF {}'.format(self.vf))
|
||||||
|
common.run_os_command('ip link set {} mtu {}'.format(self.vf, self.mtu))
|
||||||
|
|
||||||
# These properties are set via the DataWatch functions, to ensure they are configured on the system
|
# These properties are set via the DataWatch functions, to ensure they are configured on the system
|
||||||
self.mac = None
|
self.mac = None
|
||||||
self.vlan_id = None
|
self.vlan_id = None
|
||||||
|
|
Loading…
Reference in New Issue