Skip to content

Commit

Permalink
multicast, udn: Add unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Llorente <ellorent@redhat.com>
Co-authored-by: Dumitru Ceara <dceara@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
  • Loading branch information
qinqon and dceara committed Oct 24, 2024
1 parent 74756e2 commit 7d7735d
Show file tree
Hide file tree
Showing 4 changed files with 519 additions and 135 deletions.
14 changes: 9 additions & 5 deletions go-controller/pkg/ovn/master_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1842,16 +1842,20 @@ func newNetworkClusterPortGroup(netControllerName string) *nbdb.PortGroup {
return pg
}

func newNetworkRouterPortGroup(netControllerName string) *nbdb.PortGroup {
fakeController := getFakeController(netControllerName)
pgIDs := fakeController.getClusterPortGroupDbIDs(types.ClusterRtrPortGroupNameBase)
pg := libovsdbutil.BuildPortGroup(pgIDs, nil, nil)
pg.UUID = pgIDs.String()
return pg
}

func newClusterPortGroup() *nbdb.PortGroup {
return newNetworkClusterPortGroup(DefaultNetworkControllerName)
}

func newRouterPortGroup() *nbdb.PortGroup {
fakeController := getFakeController(DefaultNetworkControllerName)
pgIDs := fakeController.getClusterPortGroupDbIDs(types.ClusterRtrPortGroupNameBase)
pg := libovsdbutil.BuildPortGroup(pgIDs, nil, nil)
pg.UUID = pgIDs.String()
return pg
return newNetworkRouterPortGroup(DefaultNetworkControllerName)
}

func newOVNClusterRouter() *nbdb.LogicalRouter {
Expand Down
Loading

0 comments on commit 7d7735d

Please sign in to comment.