예제 #1
0
 def amf_start(self):
     connector = RemoteConnect(self.amf_instance_ip)
     cmds = ['sudo nohup ./stage3/bin/amf\n', 'exit\n']
     print('Start to activate AMF')
     connector.ssh_jump(cmds)
     cmds = ['sudo service VnfDetect start\n', 'exit\n']
     connector.ssh_jump(cmds)
     print('Finish activate AMF')
예제 #2
0
 def nssf_start(self):
     connector = RemoteConnect(self.nssf_instance_ip)
     cmds = ['sudo nohup ./stage3/bin/nssf\n', 'exit\n']
     print('Start to activate NSSF')
     connector.ssh_jump(cmds)
     #time.sleep(1)
     cmds = ['sudo service VnfDetect start\n', 'exit\n']
     connector.ssh_jump(cmds)
     print('Finish activate NSSF')
예제 #3
0
 def upf_start(self):
     print('Start to activate UPF')
     connector = RemoteConnect(self.upf_instance_ip)
     connector.transport_dir()
     cmds = [
         'chmod 777 stage3/src/upf/build/bin/free5gc-upfd\n',
         'cd /home/ubuntu/stage3/gtp5g\n', 'make\n', 'sudo make install\n',
         'cd /home/ubuntu/stage3/src/upf/build\n',
         'sudo nohup ./bin/free5gc-upfd\n', 'exit\n'
     ]
     connector.ssh_jump(cmds)
     #time.sleep(1)
     cmds = ['sudo service VnfDetect start\n', 'exit\n']
     connector.ssh_jump(cmds)
     print('Finish activate UPF')