Spom Link Create -
sysadmin@remote-node:~$ spom-agent link create --hub-url="https://centralmanagement.internal" --token="A9x82Fdfk9102LKsjdhf" --mode=full-control Use code with caution. Step 4: Verify the Handshake
def create_spom_link(device_ip, username, password, interface, neighbor_ip): with manager.connect(host=device_ip, port=830, username=username, password=password, hostkey_verify=False) as m: config = f""" <config> <interfaces> <interface> <name>interface</name> <unit> <name>0</name> <family> <inet> <address> <name>neighbor_ip/31</name> </address> </inet> <mpls/> </family> </unit> </interface> </interfaces> <protocols> <mpls> <interface>interface.0</interface> </mpls> <ldp> <interface>interface.0</interface> </ldp> </protocols> </config> """ m.edit_config(target="running", config=config) print(f"SPoM link created on device_ip: interface -> neighbor_ip") spom link create
You may not have permission to view or edit related records. Contact your system administrator. neighbor_ip): with manager.connect(host=device_ip


