Skip to content
Snippets Groups Projects
Commit b1b443d3 authored by Malte Bauch's avatar Malte Bauch
Browse files

For testing purpose: Change plugin registry to use hardcoded uuids

parent 6be2a85f
Branches
No related tags found
1 merge request!401Change the current gosdn plugin implementation from Go's internal plugin system to hashicorp's go-plugins
Pipeline #135585 failed
......@@ -157,7 +157,7 @@
"transport_username": "admin",
"transport_password": "admin",
"transport_option": 1,
"sbi": "33028183-06bc-4b1f-b440-f40ed390a309",
"plugin": "f3b474c2-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}"
},
{
......@@ -168,8 +168,8 @@
"transport_username": "admin",
"transport_password": "admin",
"transport_option": 1,
"sbi": "33028183-06bc-4b1f-b440-f40ed390a309",
"plugin": "f3b474c2-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.2\",\n \"prefix-length\": 24\n },\n \"ip\": \"10.13.37.2\"\n }\n ]\n },\n \"config\": {\n \"enabled\": true\n }\n }\n }\n ]\n }\n },\n {\n \"config\": {\n \"mtu\": 0,\n \"name\": \"Ethernet2\",\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 \"index\": 0\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.12\",\n \"prefix-length\": 16\n },\n \"ip\": \"172.100.0.12\"\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\": \"ceos1\"\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$DPYiFBoPj.OoxQ/m$5Utr2c4LTYNAgzbUuTQb0OJo2zCJanOT7uTo6/0Ss0jU1dvqysxBNl.zFJU9TYO.PIEA0fhjTdWXtJ5aLuOtx.\",\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\": \"ceos1\"\n },\n \"ssh-server\": {\n \"config\": {\n \"session-limit\": 50,\n \"timeout\": 0\n }\n }\n }\n}"
}
]
}
\ No newline at end of file
}
......@@ -38,7 +38,8 @@ func main() {
}
// TODO: The registration of plugins should result in the same UUID's even
// after reboot. Therefore it would make sense to use a database.
// after reboot. Therefore it would make sense to use a database. For a simple
// prototype this is currently hardcoded.
func registerPlugins() *PluginRegistry {
files, err := os.ReadDir(pluginFilePath)
if err != nil {
......@@ -47,7 +48,7 @@ func registerPlugins() *PluginRegistry {
pr := &PluginRegistry{}
for _, file := range files {
for i, file := range files {
fmt.Printf("File %+v\n", file)
if file.IsDir() {
......@@ -56,7 +57,12 @@ func registerPlugins() *PluginRegistry {
panic(err)
}
id := uuid.New()
var id uuid.UUID
if i == 0 {
id = uuid.MustParse("f3b474c2-6482-4010-b0d8-679dff73153b")
} else {
id = uuid.MustParse("d1c269a2-6482-4010-b0d8-679dff73153b")
}
plugin := &Plugin{
ID: id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment