Skip to content

Commit

Permalink
[vlanmgr]: Fix the incorrect ip link del command for vlan remove (#474)
Browse files Browse the repository at this point in the history
Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
  • Loading branch information
jipanyang authored and lguohan committed May 18, 2018
1 parent 66287cf commit a1b6fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfgmgr/vlanmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ bool VlanMgr::removeHostVlan(int vlan_id)
// /sbin/bridge vlan del vid {{vlan_id}} dev Bridge self"
const std::string cmds = std::string("")
+ BASH_CMD + " -c \""
+ IP_CMD + " link add del " + VLAN_PREFIX + std::to_string(vlan_id) + " && "
+ IP_CMD + " link del " + VLAN_PREFIX + std::to_string(vlan_id) + " && "
+ BRIDGE_CMD + " vlan del vid " + std::to_string(vlan_id) + " dev " + DOT1Q_BRIDGE_NAME + " self\"";

std::string res;
Expand Down

0 comments on commit a1b6fa3

Please sign in to comment.