Skip to content

Commit

Permalink
Add state as a member of SR Policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Motok1 committed Jun 8, 2024
1 parent 30c3edf commit 24a62c5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/pkg/table/sr_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ import (
"strconv"
)

// sr-policy state
type PolicyState string

const (
POLICY_DOWN = PolicyState("down")
POLICY_UP = PolicyState("up")
POLICY_ACTIVE = PolicyState("active")
POLICY_UNKNOWN = PolicyState("unknown")
)

type SRPolicy struct {
PlspID uint32
Name string
Expand All @@ -20,6 +30,7 @@ type SRPolicy struct {
Color uint32
Preference uint32
LspID uint16
State PolicyState
}

type Segment interface {
Expand Down

0 comments on commit 24a62c5

Please sign in to comment.