Exemple #1
0
 def set_conf(self, v, hi, di, r, a, m, o, t, dr, bdr):
     self.version = v
     self.hello_interval = hi
     self.dead_interval = di
     self.area = util.ip2int(a)
     self.rid = util.ip2int(r)
     self.netmask = util.ip2int(m)
     self.options = self.convert_options_to_int(o)
     self.link_type = t
     self.drip = dr
     self.bdrip = bdr
Exemple #2
0
 def set_conf(self, v, hi, di, r, a, m, o, t, dr, bdr):
     self.version = v
     self.hello_interval = hi
     self.dead_interval = di
     self.area = util.ip2int(a)
     self.rid = util.ip2int(r)
     self.netmask = util.ip2int(m)
     self.options = self.convert_options_to_int(o)
     self.link_type = t
     self.drip = dr
     self.bdrip = bdr
Exemple #3
0
 def set_ospf_header(self, v, a, r, o):
     self.version = v
     self.area = util.ip2int(a)
     self.rid = util.ip2int(r)
     self.options = self.convert_options_to_int(o)