-
Open a PowerShell prompt as Administrator
-
Enable Hyper-V
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
| #!/bin/sh | |
| # | |
| # Lab / Testing CA | |
| # | |
| # generates: | |
| # - a local authority | |
| # - signs a server cert with a CN matching the hostname | |
| # - client server for auth | |
| # | |
| # config: |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/aristanetworks/goeapi" | |
| ) | |
| type ShowRibRouteIp struct { | |
| RibRoutesByProtocol map[string]Protocol |
| ! **Make sure to change the common-name to match your environment** | |
| security pki certificate generate self-signed switch.crt key switch.key generate rsa 2048 validity 30000 parameters common-name myswitch.lab.lan | |
| ! | |
| configure | |
| ! | |
| management security | |
| ssl profile SELFSIGNED | |
| certificate switch.crt key switch.key | |
| ! | |
| management api gnmi |
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2017 Arista Networks, Inc. All rights reserved. | |
| # Arista Networks, Inc. Confidential and Proprietary. | |
| """ | |
| Example: | |
| >>> sess = ssh.Session() | |
| >>> sess.open("ck327", auth=("admin", "")) | |
| >>> print(sess.send("show ver")) |
| # Example: | |
| # | |
| # source ceoslab.rc | |
| # | |
| # run-netc ceos1-net | |
| # run-netc ceos2-net | |
| # | |
| # for i in `seq 1 16` | |
| # do | |
| # link-netc ceos1-net ceos2-net eth${i} eth${i} |
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| "github.com/aristanetworks/goeapi" | |
| ) | |
| type ShowIsisDatabase struct { |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2020 Arista Networks, Inc. All rights reserved. | |
| # Arista Networks, Inc. Confidential and Proprietary. | |
| """Simple EAPI Client | |
| API Usage: | |
| import eapiclient |