Skip to content

Commit

Permalink
Set internal class state to reflect the actual state (#2410)
Browse files Browse the repository at this point in the history
*Set internal class variable to set to STANDBY.
*Default value was set to INIT and not modified after setting to standby.
  • Loading branch information
prsunny authored and yxieca committed Aug 11, 2022
1 parent 87e98eb commit 3f69944
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions orchagent/muxorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ MuxCable::MuxCable(string name, IpPrefix& srv_ip4, IpPrefix& srv_ip6, IpAddress

/* Set initial state to "standby" */
stateStandby();
state_ = MuxState::MUX_STATE_STANDBY;
}

bool MuxCable::stateInitActive()
Expand Down

0 comments on commit 3f69944

Please sign in to comment.