Skip to content

Commit 91bb4c9

Browse files
authored
add Type to IPSet (#194)
Signed-off-by: FingerLeader <[email protected]>
1 parent 6118c19 commit 91bb4c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/core/network.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ const (
8080
NetworkPortOccupiedAction = "occupied"
8181
NetworkNICDownAction = "down"
8282
NetworkFloodAction = "flood"
83+
84+
NetIPSet = "hash:net"
8385
)
8486

8587
func (n *NetworkCommand) Validate() error {
@@ -492,6 +494,7 @@ func (n *NetworkCommand) ToIPSet(name string) (*pb.IPSet, error) {
492494
return &pb.IPSet{
493495
Name: name,
494496
Cidrs: cidrs,
497+
Type: NetIPSet,
495498
}, nil
496499
}
497500

0 commit comments

Comments
 (0)