1
0
mirror of https://github.com/bgp/stayrtr.git synced 2024-05-06 15:54:54 +00:00

Add GetMaxLen to the prefixfile api

This commit is contained in:
Louis Poinsignon
2019-10-25 12:47:12 -07:00
parent 3884afa8de
commit 0846db6160

View File

@ -110,6 +110,10 @@ func (roa *ROAJson) GetPrefix() *net.IPNet {
return prefix
}
func (roa *ROAJson) GetMaxLen() int {
return int(roa.Length)
}
func (roa *ROAJson) String() string {
return fmt.Sprintf("%v/%v/%v", roa.Prefix, roa.Length, roa.ASN)
}