MCPcopy
hub / github.com/osrg/gobgp / NewRoutingPolicy

Function NewRoutingPolicy

internal/pkg/table/policy.go:4693–4701  ·  view source on GitHub ↗
(logger *slog.Logger)

Source from the content-addressed store, hash-verified

4691}
4692
4693func NewRoutingPolicy(logger *slog.Logger) *RoutingPolicy {
4694 return &RoutingPolicy{
4695 definedSetMap: make(map[DefinedType]map[string]DefinedSet),
4696 policyMap: make(map[string]*Policy),
4697 statementMap: make(map[string]*Statement),
4698 assignmentMap: make(map[string]*Assignment),
4699 logger: logger,
4700 }
4701}
4702
4703func CanImportToVrf(v *Vrf, path *Path) bool {
4704 extComms := path.GetExtCommunities()

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…