[ovs-dev] [PATCH V3 1/2] utilities: On RHEL 7 systems clean up after upgrade
Gregory Rose
gvrose8192 at gmail.com
Fri Jun 29 20:15:44 UTC 2018
On 6/29/2018 11:32 AM, Justin Pettit wrote:
>> On Jun 29, 2018, at 11:18 AM, Greg Rose <gvrose8192 at gmail.com> wrote:
> You don't need to respin it, but do you mind if I add the following text to the actions? Or do you have better suggestions?
Your suggestions below are fine.
Thanks!
- Greg
>
>> + # Older releases may be using the rtnetlink interface while a
>> + # newer release will want to use the internal compat interface
>> + # for geneve and vxlan.
>> + if test -e /sys/class/net/genev_sys_6081; then
>> + action "ip link del link genev_sys_6081 dev genev_sys_6081" \
>> + ip link del link genev_sys_6081 dev genev_sys_6081
> "Removing geneve device"
>
>> + fi
>> + if test -e /sys/class/net/vxlan_sys_4789; then
>> + action "ip link del link vxlan_sys_4789 dev vxlan_sys_4789" \
>> + ip link del link vxlan_sys_4789 dev vxlan_sys_4789
> "Removing vxlan device"
>
>> + fi
>> +
>> + if test -e /sys/module/geneve; then
>> + action "rmmod geneve" rmmod geneve
> "Removing geneve kernel module"
>
>> + fi
>> + if test -e /sys/module/vxlan; then
>> + action "rmmod vxlan" rmmod vxlan
> "Removing geneve kernel module"
>
> I'll wait for Aaron's feedback before committing it.
>
> --Justin
>
>
More information about the dev
mailing list