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:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user