Forum Discussion
Aug 27, 2021
Hello Wyko.
This command give you a JSON structure with all the configuration sets located in "mynode".
mynode = session.tm.ltm.nodes.node.load(name='mynode', partition='Common')
For creation of a new object, you need to specify all the configuration parameters that you would like to use from the other object.
mynode = session.tm.ltm.nodes.node.create(name='mynode', address='5.5.5.5', partition='Common', ... etc ...)
-------
Bash execution is possible with Python SDK
command = session.tm.util.bash.exec_cmd('run', utilCmdArgs='-c "netstat -rn"')
print(command.commandResult)
Regards,
Dario.