MCPcopy Index your code
hub / github.com/SpaceNetLab/StarryNet / print_conf

Method print_conf

starrynet/sn_observer.py:428–435  ·  view source on GitHub ↗
(self, sat_node_number, fac_node_number, ID, Q, remote_ftp)

Source from the content-addressed store, hash-verified

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":

Callers 1

generate_confMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected