This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = "http://%s:19399/simengine/rest/export/%s?updated=1" % ( | |
STD_SERVER, simulation_id) | |
topology = do_rest_call(auth_data, url) | |
print "Got topology for %s" % simulation_id | |
import xml.etree.ElementTree as ET | |
root = ET.fromstring(str(response)) | |
ET.register_namespace("virl", "http://www.cisco.com/VIRL") | |
virl_ns = "{http://www.cisco.com/VIRL}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
def main(): | |
import autonetkit | |
anm = autonetkit.initialize("multi_edge.json") | |
print anm['input'].nodes() | |
print anm['input'].edges() | |
autonetkit.update_http(anm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bgp2.txt: | |
router bgp 1 | |
bgp router-id 192.168.0.1 | |
network 10.0.0.0/16 | |
neighbor 192.168.0.2 remote-as 1 | |
neighbor 192.168.0.2 update-source 192.168.0.1 | |
neighbor 192.168.0.2 next-hop-self | |
neighbor 192.168.0.3 remote-as 1 | |
neighbor 192.168.0.3 update-source 192.168.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@netkit:~$ ./mininet-extreme/util/m c1 vtysh -c \"show run\" | |
Building configuration... | |
Current configuration: | |
! | |
! | |
password bgpuser | |
! | |
router bgp 300 | |
bgp router-id 172.0.0.21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "ank" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pip install hg+http://networkx.lanl.gov/hg/networkx |