Skip to content
Snippets Groups Projects
Commit 338c7eb3 authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark Committed by Malte Bauch
Browse files

Make the venv-manager usable again


See merge request !651

Co-authored-by: default avatarMalte Bauch <malte.bauch@stud.h-da.de>
parent a0641d85
Branches
Tags
1 merge request!651Make the venv-manager usable again
Pipeline #174283 passed
......@@ -195,7 +195,7 @@ func saveStreamToFile(sc StreamClient, filename string, id uuid.UUID) (err error
}
// create the directory hierarchy based on the path
if err := os.MkdirAll(filepath.Dir(path), 0600); err != nil {
if err := os.MkdirAll(filepath.Dir(path), 0700); err != nil {
return err
}
// create the gostructs.go file at path
......
......@@ -151,7 +151,7 @@
"transport_username": "admin",
"transport_password": "admin",
"transport_option": 1,
"plugin": "f3b474c2-6482-4010-b0d8-679dff73153b",
"plugin": "d1c269a2-6482-4010-b0d8-679dff73153b",
"Model": "{\n \"openconfig-interfaces:interfaces\": {\n \"interface\": [\n {\n \"config\": {\n \"enabled\": true,\n \"loopback-mode\": false,\n \"mtu\": 0,\n \"name\": \"Ethernet1\",\n \"openconfig-vlan:tpid\": \"openconfig-vlan-types:TPID_0X8100\",\n \"type\": \"iana-if-type:ethernetCsmacd\"\n },\n \"name\": \"Ethernet1\",\n \"openconfig-if-ethernet:ethernet\": {\n \"config\": {\n \"mac-address\": \"00:00:00:00:00:00\",\n \"port-speed\": \"openconfig-if-ethernet:SPEED_UNKNOWN\"\n }\n },\n \"subinterfaces\": {\n \"subinterface\": [\n {\n \"config\": {\n \"enabled\": true,\n \"index\": 0\n },\n \"index\": 0,\n \"openconfig-if-ip:ipv4\": {\n \"addresses\": {\n \"address\": [\n {\n \"config\": {\n \"ip\": \"10.13.37.1\",\n \"prefix-length\": 24\n },\n \"ip\": \"10.13.37.1\"\n }\n ]\n },\n \"config\": {\n \"enabled\": true\n }\n }\n }\n ]\n }\n },\n {\n \"config\": {\n \"enabled\": true,\n \"loopback-mode\": false,\n \"mtu\": 0,\n \"name\": \"Ethernet2\",\n \"openconfig-vlan:tpid\": \"openconfig-vlan-types:TPID_0X8100\",\n \"type\": \"iana-if-type:ethernetCsmacd\"\n },\n \"name\": \"Ethernet2\",\n \"openconfig-if-ethernet:ethernet\": {\n \"config\": {\n \"mac-address\": \"00:00:00:00:00:00\",\n \"port-speed\": \"openconfig-if-ethernet:SPEED_UNKNOWN\"\n }\n },\n \"subinterfaces\": {\n \"subinterface\": [\n {\n \"config\": {\n \"enabled\": true,\n \"index\": 0\n },\n \"index\": 0,\n \"openconfig-if-ip:ipv4\": {\n \"addresses\": {\n \"address\": [\n {\n \"config\": {\n \"ip\": \"10.0.23.1\",\n \"prefix-length\": 24\n },\n \"ip\": \"10.0.23.1\"\n }\n ]\n },\n \"config\": {\n \"enabled\": true\n }\n }\n }\n ]\n }\n },\n {\n \"config\": {\n \"mtu\": 0,\n \"name\": \"Management0\",\n \"type\": \"iana-if-type:ethernetCsmacd\"\n },\n \"name\": \"Management0\",\n \"openconfig-if-ethernet:ethernet\": {\n \"config\": {\n \"mac-address\": \"00:00:00:00:00:00\",\n \"port-speed\": \"openconfig-if-ethernet:SPEED_UNKNOWN\"\n }\n },\n \"subinterfaces\": {\n \"subinterface\": [\n {\n \"index\": 0,\n \"openconfig-if-ip:ipv4\": {\n \"addresses\": {\n \"address\": [\n {\n \"config\": {\n \"ip\": \"172.100.0.11\",\n \"prefix-length\": 16\n },\n \"ip\": \"172.100.0.11\"\n }\n ]\n },\n \"neighbors\": {\n \"neighbor\": [\n {\n \"config\": {\n \"ip\": \"172.100.0.1\"\n },\n \"ip\": \"172.100.0.1\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n },\n \"openconfig-lldp:lldp\": {\n \"config\": {\n \"arista-lldp-augments:management-address\": {\n \"interface\": \"\",\n \"network-instance\": \"default\",\n \"transmit-mode\": \"BEST\"\n },\n \"hello-timer\": \"30\",\n \"system-description\": \"Arista Networks EOS version 4.28.2F-28369039.4282F (engineering build) running on an Arista cEOSLab\",\n \"system-name\": \"ceos0\"\n },\n \"interfaces\": {\n \"interface\": [\n {\n \"config\": {\n \"name\": \"Ethernet1\"\n },\n \"name\": \"Ethernet1\"\n },\n {\n \"config\": {\n \"name\": \"Ethernet2\"\n },\n \"name\": \"Ethernet2\"\n },\n {\n \"config\": {\n \"name\": \"Management0\"\n },\n \"name\": \"Management0\"\n }\n ]\n }\n },\n \"openconfig-network-instance:network-instances\": {\n \"network-instance\": [\n {\n \"config\": {\n \"enabled\": true,\n \"name\": \"default\",\n \"type\": \"openconfig-network-instance-types:DEFAULT_INSTANCE\"\n },\n \"mpls\": {\n \"global\": {\n \"reserved-label-blocks\": {\n \"reserved-label-block\": [\n {\n \"config\": {\n \"local-id\": \"bgp-sr\",\n \"lower-bound\": 900000,\n \"upper-bound\": 965535\n },\n \"local-id\": \"bgp-sr\"\n },\n {\n \"config\": {\n \"local-id\": \"dynamic\",\n \"lower-bound\": 100000,\n \"upper-bound\": 362143\n },\n \"local-id\": \"dynamic\"\n },\n {\n \"config\": {\n \"local-id\": \"isis-sr\",\n \"lower-bound\": 900000,\n \"upper-bound\": 965535\n },\n \"local-id\": \"isis-sr\"\n },\n {\n \"config\": {\n \"local-id\": \"l2evpn\",\n \"lower-bound\": 1036288,\n \"upper-bound\": 1048575\n },\n \"local-id\": \"l2evpn\"\n },\n {\n \"config\": {\n \"local-id\": \"l2evpnSharedEs\",\n \"lower-bound\": 1031072,\n \"upper-bound\": 1032095\n },\n \"local-id\": \"l2evpnSharedEs\"\n },\n {\n \"config\": {\n \"local-id\": \"srlb\",\n \"lower-bound\": 965536,\n \"upper-bound\": 1031071\n },\n \"local-id\": \"srlb\"\n },\n {\n \"config\": {\n \"local-id\": \"static\",\n \"lower-bound\": 16,\n \"upper-bound\": 99999\n },\n \"local-id\": \"static\"\n }\n ]\n }\n },\n \"signaling-protocols\": {\n \"rsvp-te\": {\n \"global\": {\n \"hellos\": {\n \"config\": {\n \"hello-interval\": 10000\n }\n },\n \"soft-preemption\": {\n \"config\": {\n \"enable\": true\n }\n }\n }\n }\n }\n },\n \"name\": \"default\",\n \"protocols\": {\n \"protocol\": [\n {\n \"bgp\": {\n \"global\": {\n \"afi-safis\": {\n \"afi-safi\": [\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4_UNICAST\",\n \"config\": {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4_UNICAST\"\n }\n },\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV6_UNICAST\",\n \"config\": {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV6_UNICAST\"\n }\n }\n ]\n }\n }\n },\n \"config\": {\n \"identifier\": \"openconfig-policy-types:BGP\",\n \"name\": \"BGP\"\n },\n \"identifier\": \"openconfig-policy-types:BGP\",\n \"name\": \"BGP\"\n },\n {\n \"config\": {\n \"identifier\": \"openconfig-policy-types:DIRECTLY_CONNECTED\",\n \"name\": \"DIRECTLY_CONNECTED\"\n },\n \"identifier\": \"openconfig-policy-types:DIRECTLY_CONNECTED\",\n \"name\": \"DIRECTLY_CONNECTED\"\n },\n {\n \"config\": {\n \"identifier\": \"openconfig-policy-types:STATIC\",\n \"name\": \"STATIC\"\n },\n \"identifier\": \"openconfig-policy-types:STATIC\",\n \"name\": \"STATIC\",\n \"static-routes\": {\n \"static\": [\n {\n \"config\": {\n \"prefix\": \"0.0.0.0/0\"\n },\n \"next-hops\": {\n \"next-hop\": [\n {\n \"config\": {\n \"index\": \"AUTO_1_172-100-0-1\",\n \"metric\": 1,\n \"next-hop\": \"172.100.0.1\"\n },\n \"index\": \"AUTO_1_172-100-0-1\"\n }\n ]\n },\n \"prefix\": \"0.0.0.0/0\"\n }\n ]\n }\n }\n ]\n },\n \"segment-routing\": {\n \"srgbs\": {\n \"srgb\": [\n {\n \"config\": {\n \"dataplane-type\": \"MPLS\",\n \"local-id\": \"isis-sr\",\n \"mpls-label-blocks\": [\n \"isis-sr\"\n ]\n },\n \"local-id\": \"isis-sr\"\n }\n ]\n },\n \"srlbs\": {\n \"srlb\": [\n {\n \"config\": {\n \"dataplane-type\": \"MPLS\",\n \"local-id\": \"srlb\",\n \"mpls-label-block\": \"srlb\"\n },\n \"local-id\": \"srlb\"\n }\n ]\n }\n },\n \"tables\": {\n \"table\": [\n {\n \"address-family\": \"openconfig-types:IPV4\",\n \"config\": {\n \"address-family\": \"openconfig-types:IPV4\",\n \"protocol\": \"openconfig-policy-types:DIRECTLY_CONNECTED\"\n },\n \"protocol\": \"openconfig-policy-types:DIRECTLY_CONNECTED\"\n },\n {\n \"address-family\": \"openconfig-types:IPV6\",\n \"config\": {\n \"address-family\": \"openconfig-types:IPV6\",\n \"protocol\": \"openconfig-policy-types:DIRECTLY_CONNECTED\"\n },\n \"protocol\": \"openconfig-policy-types:DIRECTLY_CONNECTED\"\n },\n {\n \"address-family\": \"openconfig-types:IPV4\",\n \"config\": {\n \"address-family\": \"openconfig-types:IPV4\",\n \"protocol\": \"openconfig-policy-types:STATIC\"\n },\n \"protocol\": \"openconfig-policy-types:STATIC\"\n },\n {\n \"address-family\": \"openconfig-types:IPV6\",\n \"config\": {\n \"address-family\": \"openconfig-types:IPV6\",\n \"protocol\": \"openconfig-policy-types:STATIC\"\n },\n \"protocol\": \"openconfig-policy-types:STATIC\"\n }\n ]\n },\n \"vlans\": {\n \"vlan\": [\n {\n \"config\": {\n \"name\": \"default\",\n \"vlan-id\": 1\n },\n \"vlan-id\": 1\n }\n ]\n }\n }\n ]\n },\n \"openconfig-platform:components\": {\n \"component\": [\n {\n \"config\": {\n \"name\": \"Aboot\"\n },\n \"name\": \"Aboot\"\n },\n {\n \"config\": {\n \"name\": \"BIOS\"\n },\n \"name\": \"BIOS\"\n },\n {\n \"config\": {\n \"name\": \"CPU0\"\n },\n \"name\": \"CPU0\"\n },\n {\n \"config\": {\n \"name\": \"CPU1\"\n },\n \"name\": \"CPU1\"\n },\n {\n \"config\": {\n \"name\": \"CPU10\"\n },\n \"name\": \"CPU10\"\n },\n {\n \"config\": {\n \"name\": \"CPU11\"\n },\n \"name\": \"CPU11\"\n },\n {\n \"config\": {\n \"name\": \"CPU12\"\n },\n \"name\": \"CPU12\"\n },\n {\n \"config\": {\n \"name\": \"CPU13\"\n },\n \"name\": \"CPU13\"\n },\n {\n \"config\": {\n \"name\": \"CPU14\"\n },\n \"name\": \"CPU14\"\n },\n {\n \"config\": {\n \"name\": \"CPU15\"\n },\n \"name\": \"CPU15\"\n },\n {\n \"config\": {\n \"name\": \"CPU2\"\n },\n \"name\": \"CPU2\"\n },\n {\n \"config\": {\n \"name\": \"CPU3\"\n },\n \"name\": \"CPU3\"\n },\n {\n \"config\": {\n \"name\": \"CPU4\"\n },\n \"name\": \"CPU4\"\n },\n {\n \"config\": {\n \"name\": \"CPU5\"\n },\n \"name\": \"CPU5\"\n },\n {\n \"config\": {\n \"name\": \"CPU6\"\n },\n \"name\": \"CPU6\"\n },\n {\n \"config\": {\n \"name\": \"CPU7\"\n },\n \"name\": \"CPU7\"\n },\n {\n \"config\": {\n \"name\": \"CPU8\"\n },\n \"name\": \"CPU8\"\n },\n {\n \"config\": {\n \"name\": \"CPU9\"\n },\n \"name\": \"CPU9\"\n },\n {\n \"config\": {\n \"name\": \"Chassis\"\n },\n \"name\": \"Chassis\",\n \"subcomponents\": {\n \"subcomponent\": [\n {\n \"config\": {\n \"name\": \"SwitchChip0\"\n },\n \"name\": \"SwitchChip0\"\n }\n ]\n }\n },\n {\n \"config\": {\n \"name\": \"EOS\"\n },\n \"name\": \"EOS\"\n },\n {\n \"config\": {\n \"name\": \"Ethernet1\"\n },\n \"name\": \"Ethernet1\"\n },\n {\n \"config\": {\n \"name\": \"Ethernet2\"\n },\n \"name\": \"Ethernet2\"\n },\n {\n \"config\": {\n \"name\": \"Port1\"\n },\n \"name\": \"Port1\"\n },\n {\n \"config\": {\n \"name\": \"Port2\"\n },\n \"name\": \"Port2\"\n },\n {\n \"config\": {\n \"name\": \"SwitchChip0\"\n },\n \"name\": \"SwitchChip0\",\n \"subcomponents\": {\n \"subcomponent\": [\n {\n \"config\": {\n \"name\": \"Ethernet1\"\n },\n \"name\": \"Ethernet1\"\n },\n {\n \"config\": {\n \"name\": \"Ethernet2\"\n },\n \"name\": \"Ethernet2\"\n }\n ]\n }\n },\n {\n \"config\": {\n \"name\": \"chassis-hostName\"\n },\n \"name\": \"chassis-hostName\"\n }\n ]\n },\n \"openconfig-system:system\": {\n \"aaa\": {\n \"authentication\": {\n \"config\": {\n \"authentication-method\": [\n \"openconfig-aaa-types:LOCAL\"\n ]\n },\n \"users\": {\n \"user\": [\n {\n \"config\": {\n \"password-hashed\": \"$6$/LyOizqW1THikBge$5sda5Pgj55Z20dazbvrzpc6UgRkPX6rungn.CW40peXNNQpdY8WJdczEFaSuP4XYTa.NnxEFs6Eyptfdki9ak1\",\n \"role\": \"openconfig-aaa-types:SYSTEM_ROLE_ADMIN\",\n \"username\": \"admin\"\n },\n \"username\": \"admin\"\n }\n ]\n }\n }\n },\n \"clock\": {\n \"config\": {\n \"timezone-name\": \"UTC\"\n }\n },\n \"config\": {\n \"hostname\": \"ceos0\"\n },\n \"ssh-server\": {\n \"config\": {\n \"session-limit\": 50,\n \"timeout\": 0\n }\n }\n }\n}"
},
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment