Skip to content

Commit a1b6fa3

Browse files
jipanyanglguohan
authored andcommitted
[vlanmgr]: Fix the incorrect ip link del command for vlan remove (#474)
Signed-off-by: Jipan Yang <[email protected]>
1 parent 66287cf commit a1b6fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cfgmgr/vlanmgr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ bool VlanMgr::removeHostVlan(int vlan_id)
9797
// /sbin/bridge vlan del vid {{vlan_id}} dev Bridge self"
9898
const std::string cmds = std::string("")
9999
+ BASH_CMD + " -c \""
100-
+ IP_CMD + " link add del " + VLAN_PREFIX + std::to_string(vlan_id) + " && "
100+
+ IP_CMD + " link del " + VLAN_PREFIX + std::to_string(vlan_id) + " && "
101101
+ BRIDGE_CMD + " vlan del vid " + std::to_string(vlan_id) + " dev " + DOT1Q_BRIDGE_NAME + " self\"";
102102

103103
std::string res;

0 commit comments

Comments
 (0)