Skip to content

Commit

Permalink
Fix panic accessing ulStatus in ACLDependList
Browse files Browse the repository at this point in the history
Tripped on this failure while testing offline mode.

Signed-off-by: eriknordmark <erik@zededa.com>
(cherry picked from commit 9441624)
  • Loading branch information
eriknordmark committed Sep 15, 2021
1 parent 10e3cc2 commit df1df0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/pillar/cmd/zedrouter/zedrouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,11 @@ func updateACLIPAddr(ctx *zedrouterContext, changedDepend []types.ACLDepend) {
}
for i := range config.UnderlayNetworkList {
ulConfig := &config.UnderlayNetworkList[i]
if len(status.UnderlayNetworkList) <= i {
log.Noticef("updateACLIPAddr skipping ul %d %s: no status",
i, config.Key())
continue
}
ulStatus := &status.UnderlayNetworkList[i]
if ulStatus.ACLDependList == nil {
log.Tracef("updateACLIPAddr skipping ul %d %s: ACLDependList",
Expand Down

0 comments on commit df1df0e

Please sign in to comment.