diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-21 21:27:26 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-21 21:27:26 -0800 |
commit | c90dc7bcf1caadb23119e638ef7ed576e1c97187 (patch) | |
tree | ca9fb0cfae17045b503b2a0940367e609e567228 /table/path.go | |
parent | d84250491a53d3aefc00fe643d5bb45aea83b757 (diff) |
table: sends updates from AdjRibOut when FSM_ESTABLISHED
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/path.go')
-rw-r--r-- | table/path.go | 8 |
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 } |