summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/table/path.go b/table/path.go
index 4ef9c070..269f6129 100644
--- a/table/path.go
+++ b/table/path.go
@@ -34,7 +34,7 @@ type Path interface {
setSourceVerNum(sourceVerNum int)
getSourceVerNum() int
setWithdraw(withdraw bool)
- isWithdraw() bool
+ IsWithdraw() bool
GetNlri() bgp.AddrPrefixInterface
getPrefix() net.IP
setMedSetByTargetNeighbor(medSetByTargetNeighbor bool)
@@ -119,7 +119,7 @@ func (pd *PathDefault) setWithdraw(withdraw bool) {
pd.withdraw = withdraw
}
-func (pd *PathDefault) isWithdraw() bool {
+func (pd *PathDefault) IsWithdraw() bool {
return pd.withdraw
}
@@ -171,7 +171,7 @@ func (pi *PathDefault) String() string {
str := fmt.Sprintf("IPv4Path Source: %d, ", pi.getSourceVerNum())
str = str + fmt.Sprintf(" NLRI: %s, ", pi.getPrefix().String())
str = str + fmt.Sprintf(" nexthop: %s, ", pi.getNexthop().String())
- str = str + fmt.Sprintf(" withdraw: %s, ", pi.isWithdraw())
+ str = str + fmt.Sprintf(" withdraw: %s, ", pi.IsWithdraw())
//str = str + fmt.Sprintf(" path attributes: %s, ", pi.getPathAttributeMap())
return str
}
@@ -266,7 +266,7 @@ func (ipv6p *IPv6Path) String() string {
str := fmt.Sprintf("IPv6Path Source: %d, ", ipv6p.getSourceVerNum())
str = str + fmt.Sprintf(" NLRI: %s, ", ipv6p.getPrefix().String())
str = str + fmt.Sprintf(" nexthop: %s, ", ipv6p.getNexthop().String())
- str = str + fmt.Sprintf(" withdraw: %s, ", ipv6p.isWithdraw())
+ str = str + fmt.Sprintf(" withdraw: %s, ", ipv6p.IsWithdraw())
//str = str + fmt.Sprintf(" path attributes: %s, ", ipv6p.getPathAttributeMap())
return str
}