Commit e197c49a authored by Tomas Hlavacek's avatar Tomas Hlavacek

Add BIRD local instance a name selection.

Add possibility to set a name of the BIRD router in BirdRouterLocal
object.
parent b41dd3ec
......@@ -391,10 +391,10 @@ class BirdRouter(ulgmodel.Router):
]
class BirdRouterLocal(ulgmodel.LocalRouter,BirdRouter):
def __init__(self,sock=defaults.default_bird_sock,commands=None,proto_fltr=None,asn='My ASN'):
def __init__(self,sock=defaults.default_bird_sock,commands=None,proto_fltr=None,asn='My ASN',name='localhost'):
ulgmodel.LocalRouter.__init__(self)
self.sock = sock
self.setName('localhost')
self.setName(name)
self.setASN(asn)
if(proto_fltr):
self.proto_fltr = proto_fltr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment