| 426 | return True |
| 427 | |
| 428 | def print_conf(self, sat_node_number, fac_node_number, ID, Q, remote_ftp): |
| 429 | filename = self.file_path + "/conf/bird-" + \ |
| 430 | str(sat_node_number) + "-" + str(fac_node_number) + "/B%d.conf" % ID |
| 431 | fout = open(self.configuration_file_path + "/" + filename, 'w+') |
| 432 | for item in Q: |
| 433 | fout.write(str(item) + "\n") |
| 434 | fout.close() |
| 435 | remote_ftp.put(self.configuration_file_path + "/" + filename, filename) |
| 436 | |
| 437 | def generate_conf(self, remote_ssh, remote_ftp): |
| 438 | if self.intra_routing != "OSPF" and self.intra_routing != "ospf": |