Skip to content

Commit f778ccd

Browse files
committed
[vlanmgr]Solve the problem that When the mac address of vlan is modified, the mac address of bridge is also modified.
Signed-off-by: liting <[email protected]>
1 parent f1c0a75 commit f778ccd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cfgmgr/vlanmgr.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ bool VlanMgr::setHostVlanMac(int vlan_id, const string &mac)
202202
// The command should be generated as:
203203
// /sbin/ip link set Vlan{{vlan_id}} address {{mac}}
204204
ostringstream cmds;
205-
cmds << IP_CMD " link set " VLAN_PREFIX + std::to_string(vlan_id) + " address " << shellquote(mac) << " && "
206-
IP_CMD " link set " DOT1Q_BRIDGE_NAME " address " << shellquote(mac);
205+
cmds << IP_CMD " link set " VLAN_PREFIX + std::to_string(vlan_id) + " address " << shellquote(mac);
207206

208207
std::string res;
209208
EXEC_WITH_ERROR_THROW(cmds.str(), res);

0 commit comments

Comments
 (0)