summaryrefslogtreecommitdiffhomepage
path: root/policy
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-30 14:04:52 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-30 14:04:52 +0900
commitc81fad9103e7bda297590040befbbce25f351d53 (patch)
tree5e9ee08e71d3335d3fae095c2c2220e66dd4b239 /policy
parentbafc6171067c3f836a4d140d6308fb676608b35e (diff)
policy: remove useless DefaultAction
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'policy')
-rw-r--r--policy/policy.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/policy/policy.go b/policy/policy.go
index 80598c9e..988b70ca 100644
--- a/policy/policy.go
+++ b/policy/policy.go
@@ -991,15 +991,7 @@ type Action interface {
apply(*table.Path) *table.Path
}
-type DefaultAction struct {
-}
-
-func (a *DefaultAction) apply(path *table.Path) *table.Path {
- return path
-}
-
type RoutingAction struct {
- DefaultAction
AcceptRoute bool
}
@@ -1019,7 +1011,6 @@ func (r *RoutingAction) apply(path *table.Path) *table.Path {
}
type CommunityAction struct {
- DefaultAction
Values []uint32
ext []byte
action config.BgpSetCommunityOptionType
@@ -1147,7 +1138,6 @@ E:
type ActionType int
type MedAction struct {
- DefaultAction
Value int64
action ActionType
}
@@ -1235,7 +1225,6 @@ func (a *MedAction) apply(path *table.Path) *table.Path {
}
type AsPathPrependAction struct {
- DefaultAction
asn uint32
useLeftMost bool
repeat uint8