Skip to content

Commit

Permalink
[vlanmgr]: Fix the incorrect ip link del command for vlan remove (son…
Browse files Browse the repository at this point in the history
…ic-net#474)

Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
  • Loading branch information
jipanyang authored and lguohan committed Apr 16, 2018
1 parent a97f3ce commit 880c1e9
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 880c1e9

Please sign in to comment.