Merge: Fix for SOL-708. Adding rmmod before modprobe in case of package upgrade

This commit is contained in:
Bilal Baqar 2015-11-19 00:49:47 -08:00
commit 9b14998e5d
2 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ def config_changed():
pkgs = determine_packages() pkgs = determine_packages()
for pkg in pkgs: for pkg in pkgs:
apt_install(pkg, options=['--force-yes'], fatal=True) apt_install(pkg, options=['--force-yes'], fatal=True)
remove_iovisor()
load_iovisor() load_iovisor()
ensure_mtu() ensure_mtu()
add_lcm_key() add_lcm_key()

View File

@ -166,6 +166,7 @@ def remove_iovisor():
''' '''
_exec_cmd(cmd=['rmmod', 'iovisor'], _exec_cmd(cmd=['rmmod', 'iovisor'],
error_msg='Error Loading IOVisor Kernel Module') error_msg='Error Loading IOVisor Kernel Module')
time.sleep(1)
def get_mgmt_interface(): def get_mgmt_interface():