Skip to content

Commit

Permalink
Set internal class state to reflect the actual state (sonic-net#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 Aug 10, 2022
1 parent 8dae356 commit 7ddde97
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 7ddde97

Please sign in to comment.