From 2a03db2532ca9f1760ec412106f7cc0a9d473649 Mon Sep 17 00:00:00 2001 From: Gor Poghosyan Date: Tue, 16 Jul 2024 14:46:16 -0700 Subject: [PATCH] Update-2024-07-16_21:46:15 --- charts/netris-controller/Chart.yaml | 6 +- charts/netris-controller/README.md | 12 +- .../templates/netris-controller-initdb.yaml | 508 ++++++++---------- .../templates/web-service-backend.yaml | 2 - charts/netris-controller/values.yaml | 16 +- 5 files changed, 232 insertions(+), 312 deletions(-) diff --git a/charts/netris-controller/Chart.yaml b/charts/netris-controller/Chart.yaml index 7abb793..c80ca8d 100644 --- a/charts/netris-controller/Chart.yaml +++ b/charts/netris-controller/Chart.yaml @@ -15,13 +15,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 2.3.0-alpha.12 +version: 2.1.8 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: 4.3.0-alpha.12 +appVersion: 4.1.1.7 home: https://netris.ai icon: https://www.netris.ai/wp-content/uploads/2021/01/logo-300.png # [todo] Change url to permalink keywords: @@ -53,5 +53,3 @@ dependencies: - name: graphite version: 0.7.2 repository: https://kiwigrid.github.io -annotations: - artifacthub.io/prerelease: "true" diff --git a/charts/netris-controller/README.md b/charts/netris-controller/README.md index c1a58bf..9f3d391 100644 --- a/charts/netris-controller/README.md +++ b/charts/netris-controller/README.md @@ -89,7 +89,7 @@ The following table lists the configurable parameters of the netris-controller c | ------------------------------------------------------------------| --------------------------------------------------------------------------------------------------------- | --------------------------------- | | `web-service-backend.replicaCount` | Number of replicas in web-service-backend deployment | `1` | | `web-service-backend.image.repository` | Image repository | `netrisai/controller-web-service-backend` | -| `web-service-backend.image.tag` | Image tag. Overrides the image tag whose default is the chart appVersion | `"4.3.0-037"` | +| `web-service-backend.image.tag` | Image tag. Overrides the image tag whose default is the chart appVersion | `"4.1.1-016"` | | `web-service-backend.image.pullPolicy` | Image pull policy | `IfNotPresent` | | `web-service-backend.imagePullSecrets` | Reference to one or more secrets to be used when pulling images | `[]` | | `web-service-backend.service.type` | Kubernetes service type | `ClusterIP` | @@ -99,15 +99,13 @@ The following table lists the configurable parameters of the netris-controller c | `web-service-backend.autoscaling.minReplicas` | Default min replicas for autoscaling | `1` | | `web-service-backend.autoscaling.maxReplicas` | Default max replicas for autoscaling | `100` | | `web-service-backend.autoscaling.targetCPUUtilizationPercentage` | The desired target CPU utilization for autoscaling | `80` | -| `web-service-backend.nodeOptions` | A space-separated list of Node.js command-line options | `--max-old-space-size=8192` | - ### Netris-Controller web-service-frontend parameters | Parameter | Description | Default | | ------------------------------------------------------------------| --------------------------------------------------------------------------------------------------------- | --------------------------------- | | `web-service-frontend.replicaCount` | Number of replicas in web-service-frontend deployment | `1` | | `web-service-frontend.image.repository` | Image repository | `netrisai/controller-web-service-frontend` | -| `web-service-frontend.image.tag` | Image tag. Overrides the image tag whose default is the chart appVersion | `"4.3.0-044"` | +| `web-service-frontend.image.tag` | Image tag. Overrides the image tag whose default is the chart appVersion | `"4.1.1-007"` | | `web-service-frontend.image.pullPolicy` | Image pull policy | `IfNotPresent` | | `web-service-frontend.imagePullSecrets` | Reference to one or more secrets to be used when pulling images | `[]` | | `web-service-frontend.service.type` | Kubernetes service type | `ClusterIP` | @@ -124,7 +122,7 @@ The following table lists the configurable parameters of the netris-controller c | -------------------------------------- | --------------------------------------------------------------------------------------------------------- | -------------------------- | | `grpc.replicaCount` | Number of replicas in grpc deployment | `1` | | `grpc.image.repository` | Image repository | `netrisai/controller-grpc` | -| `grpc.image.tag` | Image tag. Overrides the image tag whose default is the chart appVersion | `"4.3.0.009"` | +| `grpc.image.tag` | Image tag. Overrides the image tag whose default is the chart appVersion | `"4.1.1.008"` | | `grpc.image.pullPolicy` | Image pull policy | `IfNotPresent` | | `grpc.imagePullSecrets` | Reference to one or more secrets to be used when pulling images | `[]` | | `grpc.service.type` | Kubernetes service type | `ClusterIP` | @@ -141,7 +139,7 @@ The following table lists the configurable parameters of the netris-controller c | ------------------------------------- | --------------------------------------------------------------------------------------------------------- | -------------------------- | | `telescope.replicaCount` | Number of replicas in telescope deployment | `1` | | `telescope.image.repository` | Image repository | `netrisai/controller-telescope` | -| `telescope.image.tag` | Image tag. Overrides the image tag whose default is the chart appVersion | `"4.3.0.002"` | +| `telescope.image.tag` | Image tag. Overrides the image tag whose default is the chart appVersion | `"4.1.0.001"` | | `telescope.image.pullPolicy` | Image pull policy | `IfNotPresent` | | `telescope.imagePullSecrets` | Reference to one or more secrets to be used when pulling images | `[]` | | `telescope.service.type` | Kubernetes service type | `ClusterIP` | @@ -210,7 +208,7 @@ The following table lists the configurable parameters of the netris-controller c | Parameter | Description | Default | | ---------------------------------| ----------------------------------------------------------------------------- | ------------------------------------------- | | `migration.image.repository` | Image repository | `netrisai/controller-web-service-migration` | -| `migration.image.tag` | Image tag. Overrides the image tag whose default is the chart appVersion | `"4.3.0"` | +| `migration.image.tag` | Image tag. Overrides the image tag whose default is the chart appVersion | `"4.1.2"` | | `migration.image.pullPolicy` | Image pull policy | `IfNotPresent` | | `migration.imagePullSecrets` | Reference to one or more secrets to be used when pulling images | `[]` | diff --git a/charts/netris-controller/templates/netris-controller-initdb.yaml b/charts/netris-controller/templates/netris-controller-initdb.yaml index 286adb0..87ff39d 100644 --- a/charts/netris-controller/templates/netris-controller-initdb.yaml +++ b/charts/netris-controller/templates/netris-controller-initdb.yaml @@ -14,15 +14,15 @@ data: Table structure for table `users`\n--\n\nDROP TABLE IF EXISTS `users`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `users` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n - \ `login` varchar(50) NOT NULL,\n `password` varchar(255) DEFAULT NULL,\n `salt` - varchar(255) DEFAULT NULL,\n `name` varchar(255) DEFAULT NULL,\n `email` varchar(255) - DEFAULT NULL,\n `email_cc` varchar(255) DEFAULT NULL,\n `role_id` bigint(20) - unsigned DEFAULT NULL,\n `master` int(11) NOT NULL DEFAULT 0,\n `phone` varchar(255) - DEFAULT NULL,\n `position` varchar(255) DEFAULT NULL,\n `company` varchar(255) - DEFAULT NULL,\n `ims` varchar(255) DEFAULT NULL,\n `perm_id` bigint(20) unsigned - DEFAULT NULL,\n `auth_scheme_id` bigint(20) NOT NULL DEFAULT 1,\n `email_notification` - enum('enabled','disabled') NOT NULL DEFAULT 'enabled',\n `options` text NOT NULL - DEFAULT '{}',\n `notification_subscription` varchar(512) NOT NULL DEFAULT '{\"approvals\":\"true\",\"telescope\":\"true\"}',\n + \ `login` varchar(50) NOT NULL,\n `password` varchar(255) DEFAULT NULL,\n `name` + varchar(255) DEFAULT NULL,\n `email` varchar(255) DEFAULT NULL,\n `email_cc` + varchar(255) DEFAULT NULL,\n `role_id` bigint(20) unsigned DEFAULT NULL,\n `master` + int(11) NOT NULL DEFAULT 0,\n `phone` varchar(255) DEFAULT NULL,\n `position` + varchar(255) DEFAULT NULL,\n `company` varchar(255) DEFAULT NULL,\n `ims` varchar(255) + DEFAULT NULL,\n `perm_id` bigint(20) unsigned DEFAULT NULL,\n `auth_scheme_id` + bigint(20) NOT NULL DEFAULT 1,\n `email_notification` enum('enabled','disabled') + NOT NULL DEFAULT 'enabled',\n `options` text NOT NULL DEFAULT '{}',\n `notification_subscription` + varchar(512) NOT NULL DEFAULT '{\"approvals\":\"true\",\"telescope\":\"true\"}',\n \ `create_date` timestamp NOT NULL DEFAULT current_timestamp(),\n `modified_date` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n PRIMARY KEY (`id`),\n UNIQUE KEY `login` (`login`),\n KEY `role_id` (`role_id`)\n) ENGINE=InnoDB @@ -594,17 +594,17 @@ data: NULL AUTO_INCREMENT,\n `name` varchar(255) NOT NULL,\n `description` varchar(255) DEFAULT NULL,\n `ipv4_ssh` text DEFAULT NULL,\n `ipv6_ssh` text DEFAULT NULL,\n \ `timezone` varchar(255) DEFAULT NULL,\n `ntp_servers` text DEFAULT NULL,\n - \ `dns_servers` text DEFAULT NULL,\n `meta` JSON NOT NULL DEFAULT '{}',\n `created_date` - timestamp NOT NULL DEFAULT current_timestamp(),\n `modified_date` timestamp NOT - NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n PRIMARY KEY - (`id`),\n UNIQUE KEY `inv_prof_name_uniq` (`name`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 - SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for - table `ip`\n--\n\nDROP TABLE IF EXISTS `ip`;\n/*!40101 SET @saved_cs_client = - @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE - TABLE `ip` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `parent_id` - bigint(20) NOT NULL DEFAULT 0,\n `tenant_id` bigint(20) unsigned NOT NULL,\n - \ `name` varchar(255) DEFAULT NULL,\n `description` text DEFAULT NULL,\n `prefix` - varchar(100) NOT NULL,\n `length` int(10) unsigned NOT NULL,\n `ip_version` + \ `dns_servers` text DEFAULT NULL,\n `created_date` timestamp /* mariadb-5.3 + */ NULL DEFAULT current_timestamp(),\n `modified_date` timestamp /* mariadb-5.3 + */ NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n PRIMARY + KEY (`id`),\n UNIQUE KEY `inv_prof_name_uniq` (`name`)\n) ENGINE=InnoDB DEFAULT + CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client */;\n\n--\n-- + Table structure for table `ip`\n--\n\nDROP TABLE IF EXISTS `ip`;\n/*!40101 SET + @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client + = utf8 */;\nCREATE TABLE `ip` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n + \ `parent_id` bigint(20) NOT NULL DEFAULT 0,\n `tenant_id` bigint(20) unsigned + NOT NULL,\n `name` varchar(255) DEFAULT NULL,\n `description` text DEFAULT NULL,\n + \ `prefix` varchar(100) NOT NULL,\n `length` int(10) unsigned NOT NULL,\n `ip_version` enum('ipv4','ipv6') NOT NULL DEFAULT 'ipv4',\n `purpose` enum('common','load-balancer','loopback','mgmt','nat','bgp','endpoint') NOT NULL DEFAULT 'common',\n PRIMARY KEY (`id`),\n KEY `parent_idx` (`parent_id`),\n \ KEY `tenant_idx` (`tenant_id`),\n KEY `purpose_idx` (`purpose`),\n KEY `ipv_idx` @@ -664,117 +664,116 @@ data: unsigned NOT NULL,\n `consumer_id` bigint(20) unsigned DEFAULT NULL,\n `consumer_type` enum('l4lb','vnet','roh','sys','hw','nat') DEFAULT NULL,\n `meta` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`meta`)),\n PRIMARY - KEY (`id`),\n KEY `consumer_id_idx` (`consumer_id`),\n KEY `consumer_type_idx` - (`consumer_type`),\n KEY `consumer_id_type_idx` (`consumer_id`, `consumer_type`),\n - \ KEY `pairs_idx` (`host_id`,`consumer_id`) USING BTREE\n) ENGINE=InnoDB DEFAULT - CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client */;\n\n--\n-- - Table structure for table `ip_subnet`\n--\n\nDROP TABLE IF EXISTS `ip_subnet`;\n/*!40101 - SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client - = utf8 */;\nCREATE TABLE `ip_subnet` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n - \ `parent_id` bigint(20) NOT NULL DEFAULT 0,\n `allocation_id` bigint(20) unsigned - NOT NULL DEFAULT 0,\n `name` varchar(255) DEFAULT '',\n `description` text DEFAULT - NULL,\n `tenant_id` bigint(20) unsigned NOT NULL,\n `ip_version` enum('ipv4','ipv6') - NOT NULL DEFAULT 'ipv4',\n `purpose` enum('common','load-balancer','loopback','mgmt','nat','bgp','inactive') - NOT NULL DEFAULT 'common',\n `readonly` enum('yes','no') NOT NULL DEFAULT 'no',\n - \ `prefix` varchar(255) NOT NULL,\n `length` int(10) unsigned NOT NULL,\n `meta` - JSON NULL DEFAULT '{}',\n PRIMARY KEY (`id`),\n KEY `parent_idx` (`parent_id`),\n - \ KEY `allocation_idx` (`allocation_id`),\n KEY `tenant_idx` (`tenant_id`),\n - \ KEY `purposex` (`purpose`),\n KEY `ipv_idx` (`ip_version`),\n KEY `prefix_idx` - (`prefix`),\n KEY `length_idx` (`length`),\n CONSTRAINT `allocation_id` FOREIGN - KEY (`allocation_id`) REFERENCES `ip_allocation` (`id`) ON DELETE CASCADE ON UPDATE - CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client - = @saved_cs_client */;\n\n--\n-- Table structure for table `ips_to_l4_lb`\n--\n\nDROP - TABLE IF EXISTS `ips_to_l4_lb`;\n/*!40101 SET @saved_cs_client = @@character_set_client - */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `ips_to_l4_lb` - (\n `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\n `ip_id` BIGINT(20) UNSIGNED - NOT NULL,\n `l4_lb_id` BIGINT(20) UNSIGNED NOT NULL,\n PRIMARY KEY (`id`),\n - \ KEY `l4_load_balancer_ips` (`ip_id`),\n KEY `l4_load_balancer` (`l4_lb_id`),\n - \ CONSTRAINT `l4_load_balancer` FOREIGN KEY (`l4_lb_id`) REFERENCES `l4_load_balancer` - (`id`) ON DELETE CASCADE ON UPDATE CASCADE,\n CONSTRAINT `l4_load_balancer_ips` - FOREIGN KEY (`ip_id`) REFERENCES `l4_load_balancer_ips` (`id`) ON DELETE CASCADE - ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client - = @saved_cs_client */;\n\n--\n-- Table structure for table `k8s_api`\n--\n\nDROP - TABLE IF EXISTS `k8s_api`;\n/*!40101 SET @saved_cs_client = @@character_set_client - */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `k8s_api` (\n - \ `id` bigint(22) NOT NULL AUTO_INCREMENT,\n `url` varchar(255) NOT NULL,\n `status` - enum('ok','failed') NOT NULL DEFAULT 'failed',\n `heartbeat` timestamp /* mariadb-5.3 - */ NOT NULL DEFAULT current_timestamp(),\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB + KEY (`id`),\n KEY `pairs_idx` (`host_id`,`consumer_id`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client - */;\n\n--\n-- Table structure for table `k8s_node`\n--\n\nDROP TABLE IF EXISTS - `k8s_node`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 - SET character_set_client = utf8 */;\nCREATE TABLE `k8s_node` (\n `id` bigint(22) - NOT NULL AUTO_INCREMENT,\n `uid` varchar(45) DEFAULT NULL,\n `name` varchar(45) - NOT NULL,\n `ip` varchar(45) NOT NULL,\n `role` varchar(100) DEFAULT NULL,\n - \ `age` varchar(45) DEFAULT NULL,\n `version` varchar(45) DEFAULT NULL,\n PRIMARY - KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client - = @saved_cs_client */;\n\n--\n-- Table structure for table `k8s_node_to_ebgp`\n--\n\nDROP - TABLE IF EXISTS `k8s_node_to_ebgp`;\n/*!40101 SET @saved_cs_client = @@character_set_client - */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `k8s_node_to_ebgp` - (\n `id` bigint(22) NOT NULL AUTO_INCREMENT,\n `node_id` bigint(22) NOT NULL,\n - \ `netpeer_id` bigint(22) unsigned NOT NULL,\n `bgp_error_msg` varchar(255) DEFAULT - NULL,\n PRIMARY KEY (`id`),\n KEY `fk_node_idx` (`node_id`),\n CONSTRAINT `fk_node` - FOREIGN KEY (`node_id`) REFERENCES `k8s_node` (`id`) ON DELETE CASCADE ON UPDATE - CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client - = @saved_cs_client */;\n\n--\n-- Table structure for table `k8s_service`\n--\n\nDROP - TABLE IF EXISTS `k8s_service`;\n/*!40101 SET @saved_cs_client = @@character_set_client - */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `k8s_service` - (\n `id` bigint(22) NOT NULL AUTO_INCREMENT,\n `name` varchar(100) NOT NULL,\n - \ `state` enum('enabled','disabled') NOT NULL DEFAULT 'enabled',\n `kubeconfig` - text DEFAULT NULL,\n `cluster_info` text DEFAULT NULL,\n `tenant_id` bigint(22) - NOT NULL,\n `site_id` bigint(22) NOT NULL,\n `circuit_id` bigint(22) unsigned - NOT NULL,\n `created_date` timestamp /* mariadb-5.3 */ NOT NULL DEFAULT current_timestamp(),\n - \ `modified_date` timestamp /* mariadb-5.3 */ NOT NULL DEFAULT current_timestamp() - ON UPDATE current_timestamp(),\n PRIMARY KEY (`id`),\n UNIQUE KEY `name_UNIQUE` - (`name`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client - = @saved_cs_client */;\n\n--\n-- Table structure for table `k8s_to_api`\n--\n\nDROP - TABLE IF EXISTS `k8s_to_api`;\n/*!40101 SET @saved_cs_client = @@character_set_client - */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `k8s_to_api` (\n - \ `id` bigint(22) NOT NULL AUTO_INCREMENT,\n `k8s_service_id` bigint(22) NOT - NULL,\n `k8s_api_id` bigint(22) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `fk_k8_idx` - (`k8s_service_id`),\n KEY `fk_k8api_idx` (`k8s_api_id`),\n CONSTRAINT `fk_k8` - FOREIGN KEY (`k8s_service_id`) REFERENCES `k8s_service` (`id`) ON DELETE CASCADE - ON UPDATE CASCADE,\n CONSTRAINT `fk_k8api` FOREIGN KEY (`k8s_api_id`) REFERENCES - `k8s_api` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT - CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client */;\n\n--\n-- - Table structure for table `k8s_to_lb4`\n--\n\nDROP TABLE IF EXISTS `k8s_to_lb4`;\n/*!40101 + */;\n\n--\n-- Table structure for table `ip_subnet`\n--\n\nDROP TABLE IF EXISTS + `ip_subnet`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 + SET character_set_client = utf8 */;\nCREATE TABLE `ip_subnet` (\n `id` bigint(20) + unsigned NOT NULL AUTO_INCREMENT,\n `parent_id` bigint(20) NOT NULL DEFAULT 0,\n + \ `allocation_id` bigint(20) unsigned NOT NULL DEFAULT 0,\n `name` varchar(255) + DEFAULT '',\n `description` text DEFAULT NULL,\n `tenant_id` bigint(20) unsigned + NOT NULL,\n `ip_version` enum('ipv4','ipv6') NOT NULL DEFAULT 'ipv4',\n `purpose` + enum('common','load-balancer','loopback','mgmt','nat','bgp','inactive') NOT NULL + DEFAULT 'common',\n `readonly` enum('yes','no') NOT NULL DEFAULT 'no',\n `prefix` + varchar(255) NOT NULL,\n `length` int(10) unsigned NOT NULL,\n `meta` JSON NULL + DEFAULT '{}',\n PRIMARY KEY (`id`),\n KEY `parent_idx` (`parent_id`),\n KEY + `allocation_idx` (`allocation_id`),\n KEY `tenant_idx` (`tenant_id`),\n KEY + `purposex` (`purpose`),\n KEY `ipv_idx` (`ip_version`),\n KEY `prefix_idx` (`prefix`),\n + \ KEY `length_idx` (`length`),\n CONSTRAINT `allocation_id` FOREIGN KEY (`allocation_id`) + REFERENCES `ip_allocation` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB + DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client + */;\n\n--\n-- Table structure for table `ips_to_l4_lb`\n--\n\nDROP TABLE IF EXISTS + `ips_to_l4_lb`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 + SET character_set_client = utf8 */;\nCREATE TABLE `ips_to_l4_lb` (\n `id` BIGINT(20) + UNSIGNED NOT NULL AUTO_INCREMENT,\n `ip_id` BIGINT(20) UNSIGNED NOT NULL,\n `l4_lb_id` + BIGINT(20) UNSIGNED NOT NULL,\n PRIMARY KEY (`id`),\n KEY `l4_load_balancer_ips` + (`ip_id`),\n KEY `l4_load_balancer` (`l4_lb_id`),\n CONSTRAINT `l4_load_balancer` + FOREIGN KEY (`l4_lb_id`) REFERENCES `l4_load_balancer` (`id`) ON DELETE CASCADE + ON UPDATE CASCADE,\n CONSTRAINT `l4_load_balancer_ips` FOREIGN KEY (`ip_id`) + REFERENCES `l4_load_balancer_ips` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) + ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client + */;\n\n--\n-- Table structure for table `k8s_api`\n--\n\nDROP TABLE IF EXISTS + `k8s_api`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 + SET character_set_client = utf8 */;\nCREATE TABLE `k8s_api` (\n `id` bigint(22) + NOT NULL AUTO_INCREMENT,\n `url` varchar(255) NOT NULL,\n `status` enum('ok','failed') + NOT NULL DEFAULT 'failed',\n `heartbeat` timestamp /* mariadb-5.3 */ NOT NULL + DEFAULT current_timestamp(),\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 + SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for + table `k8s_node`\n--\n\nDROP TABLE IF EXISTS `k8s_node`;\n/*!40101 SET @saved_cs_client + \ = @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE + TABLE `k8s_node` (\n `id` bigint(22) NOT NULL AUTO_INCREMENT,\n `uid` varchar(45) + DEFAULT NULL,\n `name` varchar(45) NOT NULL,\n `ip` varchar(45) NOT NULL,\n + \ `role` varchar(100) DEFAULT NULL,\n `age` varchar(45) DEFAULT NULL,\n `version` + varchar(45) DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 + SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for + table `k8s_node_to_ebgp`\n--\n\nDROP TABLE IF EXISTS `k8s_node_to_ebgp`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client - = utf8 */;\nCREATE TABLE `k8s_to_lb4` (\n `id` bigint(22) NOT NULL AUTO_INCREMENT,\n - \ `k8s_id` bigint(22) NOT NULL,\n `lb4_id` int(11) NOT NULL,\n `uid` varchar(100) - NOT NULL,\n `service_name` varchar(255) DEFAULT NULL,\n `namespace` varchar(255) - NOT NULL,\n `api_error_msg` varchar(255) DEFAULT NULL,\n PRIMARY KEY (`id`),\n - \ UNIQUE KEY `unique_uid` (`uid`),\n KEY `fk_k8_idx` (`k8s_id`),\n KEY `fk_l4lb_idx` - (`lb4_id`),\n CONSTRAINT `fkk_k8` FOREIGN KEY (`k8s_id`) REFERENCES `k8s_service` + = utf8 */;\nCREATE TABLE `k8s_node_to_ebgp` (\n `id` bigint(22) NOT NULL AUTO_INCREMENT,\n + \ `node_id` bigint(22) NOT NULL,\n `netpeer_id` bigint(22) unsigned NOT NULL,\n + \ `bgp_error_msg` varchar(255) DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `fk_node_idx` + (`node_id`),\n CONSTRAINT `fk_node` FOREIGN KEY (`node_id`) REFERENCES `k8s_node` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for - table `k8s_to_node`\n--\n\nDROP TABLE IF EXISTS `k8s_to_node`;\n/*!40101 SET @saved_cs_client + table `k8s_service`\n--\n\nDROP TABLE IF EXISTS `k8s_service`;\n/*!40101 SET @saved_cs_client \ = @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE - TABLE `k8s_to_node` (\n `id` bigint(22) NOT NULL AUTO_INCREMENT,\n `k8s_service_id` - bigint(22) NOT NULL,\n `k8s_node_id` bigint(22) NOT NULL,\n PRIMARY KEY (`id`),\n - \ KEY `fk_ks_idx` (`k8s_service_id`),\n KEY `fk_k8node_idx` (`k8s_node_id`),\n - \ CONSTRAINT `fk_k8node` FOREIGN KEY (`k8s_node_id`) REFERENCES `k8s_node` (`id`) - ON DELETE CASCADE ON UPDATE CASCADE,\n CONSTRAINT `fk_ks` FOREIGN KEY (`k8s_service_id`) - REFERENCES `k8s_service` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB + TABLE `k8s_service` (\n `id` bigint(22) NOT NULL AUTO_INCREMENT,\n `name` varchar(100) + NOT NULL,\n `state` enum('enabled','disabled') NOT NULL DEFAULT 'enabled',\n + \ `kubeconfig` text DEFAULT NULL,\n `cluster_info` text DEFAULT NULL,\n `tenant_id` + bigint(22) NOT NULL,\n `site_id` bigint(22) NOT NULL,\n `circuit_id` bigint(22) + unsigned NOT NULL,\n `created_date` timestamp /* mariadb-5.3 */ NOT NULL DEFAULT + current_timestamp(),\n `modified_date` timestamp /* mariadb-5.3 */ NOT NULL DEFAULT + current_timestamp() ON UPDATE current_timestamp(),\n PRIMARY KEY (`id`),\n UNIQUE + KEY `name_UNIQUE` (`name`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 + SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for + table `k8s_to_api`\n--\n\nDROP TABLE IF EXISTS `k8s_to_api`;\n/*!40101 SET @saved_cs_client + \ = @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE + TABLE `k8s_to_api` (\n `id` bigint(22) NOT NULL AUTO_INCREMENT,\n `k8s_service_id` + bigint(22) NOT NULL,\n `k8s_api_id` bigint(22) NOT NULL,\n PRIMARY KEY (`id`),\n + \ KEY `fk_k8_idx` (`k8s_service_id`),\n KEY `fk_k8api_idx` (`k8s_api_id`),\n + \ CONSTRAINT `fk_k8` FOREIGN KEY (`k8s_service_id`) REFERENCES `k8s_service` (`id`) + ON DELETE CASCADE ON UPDATE CASCADE,\n CONSTRAINT `fk_k8api` FOREIGN KEY (`k8s_api_id`) + REFERENCES `k8s_api` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client - */;\n\n--\n-- Table structure for table `l4_load_balancer`\n--\n\nDROP TABLE IF - EXISTS `l4_load_balancer`;\n/*!40101 SET @saved_cs_client = @@character_set_client - */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `l4_load_balancer` - (\n `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\n `name` varchar(255) - DEFAULT NULL,\n `tenant` BIGINT(20) UNSIGNED NOT NULL,\n `site` BIGINT(20) UNSIGNED - NOT NULL,\n `protocol` enum('TCP','UDP') DEFAULT 'TCP',\n `status` enum('enable','disable') - DEFAULT 'enable',\n `provisioning` enum('yes','no') NOT NULL DEFAULT 'yes',\n - \ `automatic` enum('true','false') DEFAULT 'false',\n `healthcheck` text DEFAULT - NULL,\n `internal` int(10) DEFAULT 0,\n `kubenet_info` text DEFAULT NULL,\n - \ `created_date` timestamp /* mariadb-5.3 */ NOT NULL DEFAULT current_timestamp(),\n - \ `modified_date` timestamp /* mariadb-5.3 */ NOT NULL DEFAULT current_timestamp() - ON UPDATE current_timestamp(),\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT - CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client */;\n\n--\n-- - Table structure for table `l4_load_balancer_ips`\n--\n\nDROP TABLE IF EXISTS `l4_load_balancer_ips`;\n/*!40101 - SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client - = utf8 */;\nCREATE TABLE `l4_load_balancer_ips` (\n `id` BIGINT(20) UNSIGNED - NOT NULL AUTO_INCREMENT,\n `ip` varchar(45) DEFAULT NULL,\n `port` int(10) NOT - NULL,\n `maintenance` enum('true','false') DEFAULT 'false',\n `status` enum('ok','failed','maintenance','loading','unknown') - DEFAULT 'loading',\n `response` varchar(255) DEFAULT NULL,\n PRIMARY KEY (`id`)\n) + */;\n\n--\n-- Table structure for table `k8s_to_lb4`\n--\n\nDROP TABLE IF EXISTS + `k8s_to_lb4`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 + SET character_set_client = utf8 */;\nCREATE TABLE `k8s_to_lb4` (\n `id` bigint(22) + NOT NULL AUTO_INCREMENT,\n `k8s_id` bigint(22) NOT NULL,\n `lb4_id` int(11) + NOT NULL,\n `uid` varchar(100) NOT NULL,\n `service_name` varchar(255) DEFAULT + NULL,\n `namespace` varchar(255) NOT NULL,\n `api_error_msg` varchar(255) DEFAULT + NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `unique_uid` (`uid`),\n KEY `fk_k8_idx` + (`k8s_id`),\n KEY `fk_l4lb_idx` (`lb4_id`),\n CONSTRAINT `fkk_k8` FOREIGN KEY + (`k8s_id`) REFERENCES `k8s_service` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client + */;\n\n--\n-- Table structure for table `k8s_to_node`\n--\n\nDROP TABLE IF EXISTS + `k8s_to_node`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 + SET character_set_client = utf8 */;\nCREATE TABLE `k8s_to_node` (\n `id` bigint(22) + NOT NULL AUTO_INCREMENT,\n `k8s_service_id` bigint(22) NOT NULL,\n `k8s_node_id` + bigint(22) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `fk_ks_idx` (`k8s_service_id`),\n + \ KEY `fk_k8node_idx` (`k8s_node_id`),\n CONSTRAINT `fk_k8node` FOREIGN KEY (`k8s_node_id`) + REFERENCES `k8s_node` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,\n CONSTRAINT + `fk_ks` FOREIGN KEY (`k8s_service_id`) REFERENCES `k8s_service` (`id`) ON DELETE + CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 + SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for + table `l4_load_balancer`\n--\n\nDROP TABLE IF EXISTS `l4_load_balancer`;\n/*!40101 + SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client + = utf8 */;\nCREATE TABLE `l4_load_balancer` (\n `id` BIGINT(20) UNSIGNED NOT + NULL AUTO_INCREMENT,\n `name` varchar(255) DEFAULT NULL,\n `tenant` BIGINT(20) + UNSIGNED NOT NULL,\n `site` BIGINT(20) UNSIGNED NOT NULL,\n `protocol` enum('TCP','UDP') + DEFAULT 'TCP',\n `status` enum('enable','disable') DEFAULT 'enable',\n `provisioning` + enum('yes','no') NOT NULL DEFAULT 'yes',\n `automatic` enum('true','false') DEFAULT + 'false',\n `healthcheck` text DEFAULT NULL,\n `internal` int(10) DEFAULT 0,\n + \ `kubenet_info` text DEFAULT NULL,\n `created_date` timestamp /* mariadb-5.3 + */ NOT NULL DEFAULT current_timestamp(),\n `modified_date` timestamp /* mariadb-5.3 + */ NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n PRIMARY + KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client + = @saved_cs_client */;\n\n--\n-- Table structure for table `l4_load_balancer_ips`\n--\n\nDROP + TABLE IF EXISTS `l4_load_balancer_ips`;\n/*!40101 SET @saved_cs_client = @@character_set_client + */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `l4_load_balancer_ips` + (\n `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\n `ip` varchar(45) DEFAULT + NULL,\n `port` int(10) NOT NULL,\n `maintenance` enum('true','false') DEFAULT + 'false',\n `status` enum('ok','failed','maintenance','loading','unknown') DEFAULT + 'loading',\n `response` varchar(255) DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB + DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for table `lb_check`\n--\n\nDROP TABLE IF EXISTS `lb_check`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `lb_check` (\n `id` bigint(20) @@ -897,9 +896,8 @@ data: enum('deny','permit') NOT NULL DEFAULT 'deny',\n `switch_fabric` enum('netris', 'equinix_metal', 'dot1q_trunk', 'phoenixnap_bmc') NOT NULL DEFAULT 'netris',\n \ `vlan_range` VARCHAR(100) NOT NULL DEFAULT '1-4094',\n `vlan_range_auto_assign` - varchar(100) NOT NULL DEFAULT '2-4094',\n `vlan_range_sys_reserved` varchar(100) - NOT NULL DEFAULT '3600-4094',\n `meta` JSON NULL DEFAULT '{}',\n PRIMARY KEY - (`id`),\n UNIQUE KEY `id_UNIQUE` (`id`),\n UNIQUE KEY `name_UNIQUE` (`name`)\n) + varchar(100) NOT NULL DEFAULT '2-4094',\n `meta` JSON NULL DEFAULT '{}',\n PRIMARY + KEY (`id`),\n UNIQUE KEY `id_UNIQUE` (`id`),\n UNIQUE KEY `name_UNIQUE` (`name`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8;\n/*!40101 SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for table `net_vpn`\n--\n\nDROP TABLE IF EXISTS `net_vpn`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 @@ -971,26 +969,25 @@ data: NOT NULL DEFAULT 0,\n `status` varchar(255) DEFAULT NULL,\n `speed` varchar(255) DEFAULT NULL,\n `speed_desired` enum('1000','10000','25000','40000','50000','100000','200000','400000','auto') NOT NULL DEFAULT 'auto',\n `transceiver` varchar(255) DEFAULT NULL,\n `mtu` - int(10) NOT NULL DEFAULT 9216,\n `lacp` enum('on','off') NOT NULL DEFAULT 'off',\n + int(10) NOT NULL DEFAULT 9000,\n `lacp` enum('on','off') NOT NULL DEFAULT 'off',\n \ `port_extension` bigint(20) unsigned NOT NULL DEFAULT 0,\n `parent_port` bigint(20) unsigned NOT NULL DEFAULT 0,\n `admin_down` enum('yes','no') DEFAULT 'no',\n \ `autoneg` enum('none','on','off') DEFAULT 'none',\n `duplex` enum('full','half','none') - DEFAULT 'none',\n `breakout` enum('off', 'disabled', '4x10', '4x25', '2x50', - '4x50', '2x100', '4x100', '2x200', '4x200', '2x400') DEFAULT 'off',\n `created_date` - timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n - \ `modified_date` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n - \ UNIQUE KEY `port_id_UNIQUE` (`port_id`),\n KEY `port_switch_id_IDX` (`switch_id`) - USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;\n/*!40101 SET character_set_client - = @saved_cs_client */;\n\n--\n-- Table structure for table `port_extensions`\n--\n\nDROP - TABLE IF EXISTS `port_extensions`;\n/*!40101 SET @saved_cs_client = @@character_set_client - */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `port_extensions` - (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `name` varchar(255) - DEFAULT NULL,\n `vlan_from` smallint(5) unsigned DEFAULT 0,\n `vlan_to` smallint(5) - unsigned DEFAULT 0,\n `type` enum('hp_blade') NOT NULL DEFAULT 'hp_blade',\n - \ UNIQUE KEY `id` (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;\n/*!40101 SET - character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for table - `port_reservation`\n--\n\nDROP TABLE IF EXISTS `port_reservation`;\n/*!40101 SET - @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client + DEFAULT 'none',\n `breakout` enum('off','manual','4x10','4x25','4x100') DEFAULT + 'off',\n `created_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE + current_timestamp(),\n `modified_date` timestamp NULL DEFAULT current_timestamp() + ON UPDATE current_timestamp(),\n UNIQUE KEY `port_id_UNIQUE` (`port_id`),\n KEY + `port_switch_id_IDX` (`switch_id`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;\n/*!40101 + SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for + table `port_extensions`\n--\n\nDROP TABLE IF EXISTS `port_extensions`;\n/*!40101 + SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client + = utf8 */;\nCREATE TABLE `port_extensions` (\n `id` bigint(20) unsigned NOT NULL + AUTO_INCREMENT,\n `name` varchar(255) DEFAULT NULL,\n `vlan_from` smallint(5) + unsigned DEFAULT 0,\n `vlan_to` smallint(5) unsigned DEFAULT 0,\n `type` enum('hp_blade') + NOT NULL DEFAULT 'hp_blade',\n UNIQUE KEY `id` (`id`)\n) ENGINE=InnoDB DEFAULT + CHARSET=latin1;\n/*!40101 SET character_set_client = @saved_cs_client */;\n\n--\n-- + Table structure for table `port_reservation`\n--\n\nDROP TABLE IF EXISTS `port_reservation`;\n/*!40101 + SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `port_reservation` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `port_id` bigint(20) NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `port_id_unique` (`port_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n\n/*!40101 @@ -1041,31 +1038,30 @@ data: int(10) unsigned NOT NULL DEFAULT 0,\n `state` enum('active','disabled','provisioning','hidden') NOT NULL DEFAULT 'active',\n `provisioning` int(10) unsigned NOT NULL DEFAULT 0,\n `internal` int(10) unsigned NOT NULL DEFAULT 0,\n `va_mode` int(10) unsigned - DEFAULT 0,\n `l3vpn` int(10) unsigned DEFAULT 0,\n `va_native_vlan` int(11) - unsigned DEFAULT NULL,\n `va_vlans` text DEFAULT NULL,\n `create_date` timestamp - /* mariadb-5.3 */ NOT NULL DEFAULT current_timestamp(),\n `modified_date` timestamp - /* mariadb-5.3 */ NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n - \ PRIMARY KEY (`id`),\n KEY `vpcid` (`vpc_id`),\n CONSTRAINT `vnet_vpc_ibfk_1` - FOREIGN KEY (`vpc_id`) REFERENCES `vpc` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) - ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client - */;\n\n--\n-- Table structure for table `rcircuit2member`\n--\n\nDROP TABLE IF - EXISTS `rcircuit2member`;\n/*!40101 SET @saved_cs_client = @@character_set_client - */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `rcircuit2member` - (\n `id` bigint(22) unsigned NOT NULL AUTO_INCREMENT,\n `rcircuit_id` bigint(22) - unsigned NOT NULL,\n `rcircuit_member_id` bigint(22) unsigned NOT NULL,\n PRIMARY - KEY (`id`),\n UNIQUE KEY `unique_c_m` (`rcircuit_id`,`rcircuit_member_id`),\n - \ KEY `fk_member_idx` (`rcircuit_member_id`),\n KEY `fk_circuit_idx` (`rcircuit_id`),\n - \ CONSTRAINT `fk_circuit` FOREIGN KEY (`rcircuit_id`) REFERENCES `rcircuit` (`id`) - ON DELETE CASCADE ON UPDATE CASCADE,\n CONSTRAINT `fk_member` FOREIGN KEY (`rcircuit_member_id`) - REFERENCES `rcircuit_members` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB - DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client - */;\n\n--\n-- Table structure for table `rcircuit_gw2reserved_ip`\n--\n\nDROP - TABLE IF EXISTS `rcircuit_gw2reserved_ip`;\n/*!40101 SET @saved_cs_client = - @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE - TABLE `rcircuit_gw2reserved_ip` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n - \ `rcircuit_gw_id` bigint(22) unsigned NOT NULL,\n `ip_assignment_id` bigint(20) - unsigned NOT NULL,\n `switch_id` bigint(20) unsigned DEFAULT NULL,\n PRIMARY - KEY (`id`),\n UNIQUE KEY `id_UNIQUE` (`id`),\n KEY `fk_gw_idx` (`rcircuit_gw_id`),\n + DEFAULT 0,\n `va_native_vlan` int(11) unsigned DEFAULT NULL,\n `va_vlans` text + DEFAULT NULL,\n `create_date` timestamp /* mariadb-5.3 */ NOT NULL DEFAULT current_timestamp(),\n + \ `modified_date` timestamp /* mariadb-5.3 */ NOT NULL DEFAULT current_timestamp() + ON UPDATE current_timestamp(),\n PRIMARY KEY (`id`),\n KEY `vpcid` (`vpc_id`),\n + \ CONSTRAINT `vnet_vpc_ibfk_1` FOREIGN KEY (`vpc_id`) REFERENCES `vpc` (`id`) + ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 + SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for + table `rcircuit2member`\n--\n\nDROP TABLE IF EXISTS `rcircuit2member`;\n/*!40101 + SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client + = utf8 */;\nCREATE TABLE `rcircuit2member` (\n `id` bigint(22) unsigned NOT NULL + AUTO_INCREMENT,\n `rcircuit_id` bigint(22) unsigned NOT NULL,\n `rcircuit_member_id` + bigint(22) unsigned NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `unique_c_m` + (`rcircuit_id`,`rcircuit_member_id`),\n KEY `fk_member_idx` (`rcircuit_member_id`),\n + \ KEY `fk_circuit_idx` (`rcircuit_id`),\n CONSTRAINT `fk_circuit` FOREIGN KEY + (`rcircuit_id`) REFERENCES `rcircuit` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,\n + \ CONSTRAINT `fk_member` FOREIGN KEY (`rcircuit_member_id`) REFERENCES `rcircuit_members` + (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 + SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for + table `rcircuit_gw2reserved_ip`\n--\n\nDROP TABLE IF EXISTS `rcircuit_gw2reserved_ip`;\n/*!40101 + SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client + = utf8 */;\nCREATE TABLE `rcircuit_gw2reserved_ip` (\n `id` bigint(20) unsigned + NOT NULL AUTO_INCREMENT,\n `rcircuit_gw_id` bigint(22) unsigned NOT NULL,\n `ip_assignment_id` + bigint(20) unsigned NOT NULL,\n `switch_id` bigint(20) unsigned DEFAULT NULL,\n + \ PRIMARY KEY (`id`),\n UNIQUE KEY `id_UNIQUE` (`id`),\n KEY `fk_gw_idx` (`rcircuit_gw_id`),\n \ KEY `fk_switch_idx` (`switch_id`),\n CONSTRAINT `fk_gw` FOREIGN KEY (`rcircuit_gw_id`) REFERENCES `circuit_gateways` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client @@ -1284,29 +1280,29 @@ data: DEFAULT 0,\n `uptime` varchar(255) CHARACTER SET latin1 NOT NULL DEFAULT '',\n \ `sync_acl` enum('ok','ongoing','failed') CHARACTER SET latin1 NOT NULL DEFAULT 'ok',\n `type` enum('switch','proxmox','controller','offloader','equinix_metal_server', - 'phoenixnap_bmc_server', 'server') CHARACTER SET latin1 NOT NULL DEFAULT 'switch',\n - \ `rangecut` int(10) unsigned NOT NULL DEFAULT 0,\n `cumulus_version` varchar(100) - CHARACTER SET latin1 DEFAULT NULL,\n `proxmox_version` varchar(100) CHARACTER - SET latin1 DEFAULT NULL,\n `conductor_version` varchar(100) CHARACTER SET latin1 - DEFAULT NULL,\n `platform` varchar(255) CHARACTER SET latin1 DEFAULT NULL,\n - \ `ntp` varchar(255) CHARACTER SET latin1 DEFAULT NULL,\n `dns` varchar(255) - CHARACTER SET latin1 DEFAULT NULL,\n `mac_address` varchar(255) DEFAULT NULL,\n - \ `ztp` int(10) unsigned NOT NULL DEFAULT 0,\n `nos` varchar(45) DEFAULT NULL,\n - \ `timezone` varchar(255) CHARACTER SET latin1 DEFAULT NULL,\n `number_of_ports` - smallint(5) unsigned DEFAULT NULL,\n `owner_tenant_id` bigint(20) unsigned NOT - NULL,\n `mac_addr_ubit` int(10) unsigned NOT NULL DEFAULT 0,\n `meta` JSON NULL - DEFAULT '{}',\n `created_date` timestamp NOT NULL DEFAULT current_timestamp(),\n - \ `modified_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n - \ PRIMARY KEY (`switch_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8;\n/*!40101 SET - character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for table - `topology`\n--\n\nDROP TABLE IF EXISTS `topology`;\n/*!40101 SET @saved_cs_client - \ = @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE - TABLE `topology` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `user_id` - bigint(22) NOT NULL,\n `site_id` bigint(22) NOT NULL,\n `positions` text DEFAULT - NULL,\n `options` text DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT - CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client */;\n\n--\n-- - Table structure for table `topology_link`\n--\n\nDROP TABLE IF EXISTS `topology_link`;\n/*!40101 - SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client + 'phoenixnap_bmc_server') CHARACTER SET latin1 NOT NULL DEFAULT 'switch',\n `rangecut` + int(10) unsigned NOT NULL DEFAULT 0,\n `cumulus_version` varchar(100) CHARACTER + SET latin1 DEFAULT NULL,\n `proxmox_version` varchar(100) CHARACTER SET latin1 + DEFAULT NULL,\n `conductor_version` varchar(100) CHARACTER SET latin1 DEFAULT + NULL,\n `platform` varchar(255) CHARACTER SET latin1 DEFAULT NULL,\n `ntp` varchar(255) + CHARACTER SET latin1 DEFAULT NULL,\n `dns` varchar(255) CHARACTER SET latin1 + DEFAULT NULL,\n `mac_address` varchar(255) DEFAULT NULL,\n `ztp` int(10) unsigned + NOT NULL DEFAULT 0,\n `nos` varchar(45) DEFAULT NULL,\n `timezone` varchar(255) + CHARACTER SET latin1 DEFAULT NULL,\n `number_of_ports` smallint(5) unsigned DEFAULT + NULL,\n `owner_tenant_id` bigint(20) unsigned NOT NULL,\n `mac_addr_ubit` int(10) + unsigned NOT NULL DEFAULT 0,\n `meta` JSON NULL DEFAULT '{}',\n `created_date` + timestamp NOT NULL DEFAULT current_timestamp(),\n `modified_date` timestamp NOT + NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n PRIMARY KEY + (`switch_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8;\n/*!40101 SET character_set_client + = @saved_cs_client */;\n\n--\n-- Table structure for table `topology`\n--\n\nDROP + TABLE IF EXISTS `topology`;\n/*!40101 SET @saved_cs_client = @@character_set_client + */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `topology` (\n + \ `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `user_id` bigint(22) NOT + NULL,\n `site_id` bigint(22) NOT NULL,\n `positions` text DEFAULT NULL,\n `options` + text DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 + SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for + table `topology_link`\n--\n\nDROP TABLE IF EXISTS `topology_link`;\n/*!40101 SET + @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `topology_link` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `origin` bigint(20) unsigned DEFAULT NULL,\n `dest` bigint(20) unsigned DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 @@ -1411,97 +1407,31 @@ data: SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `tag_reservation` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `tag_id` bigint(20) unsigned NOT NULL,\n `resource_id` bigint(20) - unsigned NOT NULL,\n `resource_type` enum('hw','vnet','roh','bgp','vpc','servercluster') - DEFAULT NULL,\n `meta` longtext NOT NULL DEFAULT '{}' CHECK (json_valid(`meta`)),\n - \ PRIMARY KEY (`id`),\n KEY `pairs_idx` (`tag_id`,`resource_id`) USING BTREE,\n - \ CONSTRAINT `fk1` FOREIGN KEY (`tag_id`) REFERENCES `tag` (`id`) ON DELETE RESTRICT - ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client - = @saved_cs_client */;\n\n--\n-- Table structure for table `optimistic_locks`\n--\n\nDROP - TABLE IF EXISTS `optimistic_locks`;\n/*!40101 SET @saved_cs_client = @@character_set_client - */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `optimistic_locks` - (\n `name` varchar(100) DEFAULT NULL,\n `version` bigint(20) DEFAULT NULL,\n - \ KEY `version` (`name`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;\n/*!40101 - SET character_set_client = @saved_cs_client */;\n\n--\n-- Dumping data for table - `optimistic_locks`\n--\n\nLOCK TABLES `optimistic_locks` WRITE;\n/*!40000 ALTER - TABLE `optimistic_locks` DISABLE KEYS */;\nINSERT INTO `optimistic_locks` VALUES - ('port_reservation',0),('vlan_reservation',0),('vxlan_reservation',0),('asn_reservation',0);\n/*!40000 - ALTER TABLE `optimistic_locks` ENABLE KEYS */;\nUNLOCK TABLES;\n/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE - */;\n\n--\n-- Table structure for table `license`\n--\n\nDROP TABLE IF EXISTS - `license`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 - SET character_set_client = utf8 */;\nCREATE TABLE `license` (\n `id` bigint(20) - unsigned NOT NULL AUTO_INCREMENT,\n `lkey` text NOT NULL,\n PRIMARY KEY (`id`)\n) - ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;\n/*!40101 SET - character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for table - `srv_cluster_template`\n--\n\nDROP TABLE IF EXISTS `srv_cluster_template`;\n/*!40101 - SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client - = utf8 */;\nCREATE TABLE `srv_cluster_template` (\n `id` bigint(20) unsigned - NOT NULL AUTO_INCREMENT,\n `name` varchar(100) NOT NULL,\n `create_date` timestamp - NOT NULL DEFAULT current_timestamp(),\n `modified_date` timestamp NULL DEFAULT - current_timestamp() ON UPDATE current_timestamp(),\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB - DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;\n/*!40101 SET character_set_client - = @saved_cs_client */;\n\n--\n-- Table structure for table `srv_cluster_template_rel`\n--\n\nDROP - TABLE IF EXISTS `srv_cluster_template_rel`;\n/*!40101 SET @saved_cs_client = - @@character_set_client */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE - TABLE `srv_cluster_template_rel` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n - \ `template_id` bigint(20) unsigned NOT NULL,\n `template_props_id` bigint(20) - unsigned NOT NULL,\n PRIMARY KEY (`id`),\n KEY `srvcls_tid_idx` (`template_id`),\n - \ KEY `srvcls_oid_idx` (`template_props_id`),\n KEY `srvcls_tid_oid_idx` (`template_id`,`template_props_id`),\n - \ CONSTRAINT `srvcls_obj_id_fk` FOREIGN KEY (`template_props_id`) REFERENCES `srv_cluster_template_props` - (`id`) ON DELETE CASCADE ON UPDATE CASCADE,\n CONSTRAINT `srvcls_tmpl_id_fk` - FOREIGN KEY (`template_id`) REFERENCES `srv_cluster_template` (`id`) ON DELETE - CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;\n/*!40101 - SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for - table `srv_cluster_template_props`\n--\n\nDROP TABLE IF EXISTS `srv_cluster_template_props`;\n/*!40101 - SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client - = utf8 */;\nCREATE TABLE `srv_cluster_template_props` (\n `id` bigint(20) unsigned - NOT NULL AUTO_INCREMENT,\n `type` enum('vnet') NOT NULL,\n `props` longtext - CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '{}' CHECK (json_valid(`props`)),\n - \ PRIMARY KEY (`id`),\n KEY `srvcls_tmpl_obj_type_idx` (`type`)\n) ENGINE=InnoDB - DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;\n/*!40101 SET character_set_client - = @saved_cs_client */;\n/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;\n\n--\n-- Table - structure for table `srv_cluster_service_rel`\n--\n\nDROP TABLE IF EXISTS `srv_cluster_service_rel`;\n/*!40101 - SET @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client - = utf8 */;\nCREATE TABLE `srv_cluster_service_rel` (\n `id` bigint(20) unsigned - NOT NULL AUTO_INCREMENT,\n `cluster_id` bigint(20) unsigned NOT NULL,\n `cluster_svc_id` - bigint(20) unsigned NOT NULL,\n `srv_cls_templ_props_id` bigint(20) unsigned - DEFAULT NULL,\n `type` enum('vnet','hw','allocation','subnet') NOT NULL,\n PRIMARY - KEY (`id`),\n KEY `sctpid_idx` (`srv_cls_templ_props_id`),\n KEY `cid_svcid_idx` - (`cluster_id`,`cluster_svc_id`),\n CONSTRAINT `srvcls_id_fk` FOREIGN KEY (`cluster_id`) - REFERENCES `srv_cluster` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,\n CONSTRAINT - `srvcls_tmpl_props_id_fk` FOREIGN KEY (`srv_cls_templ_props_id`) REFERENCES `srv_cluster_template_props` - (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 - COLLATE=utf8mb4_general_ci;\n/*!40101 SET character_set_client = @saved_cs_client - */;\n\n--\n-- Table structure for table `srv_cluster`\n--\n\nDROP TABLE IF EXISTS - `srv_cluster`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!40101 - SET character_set_client = utf8 */;\nCREATE TABLE `srv_cluster` (\n `id` bigint(20) - unsigned NOT NULL AUTO_INCREMENT,\n `name` varchar(100) NOT NULL,\n `tenant_id` - bigint(20) unsigned NOT NULL,\n `site_id` bigint(20) unsigned NOT NULL,\n `vpc_id` - bigint(20) unsigned NOT NULL,\n `template_id` bigint(20) unsigned NOT NULL,\n - \ `create_date` timestamp NOT NULL DEFAULT current_timestamp(),\n `modified_date` - timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n PRIMARY - KEY (`id`),\n KEY `srv_cls_tmpl_id_fk` (`template_id`),\n CONSTRAINT `srv_cls_tmpl_id_fk` - FOREIGN KEY (`template_id`) REFERENCES `srv_cluster_template` (`id`)\n) ENGINE=InnoDB - DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;\n\n--\n-- Table structure - for table `mac_address`\n--\n\nDROP TABLE IF EXISTS `mac_address`;\n/*!40101 SET - @saved_cs_client = @@character_set_client */;\n/*!40101 SET character_set_client - = utf8 */;\nCREATE TABLE `mac_address` (\n `id` bigint(20) unsigned NOT NULL - AUTO_INCREMENT,\n `host_id` bigint(20) unsigned NOT NULL,\n `mac` varchar(20) - NOT NULL,\n `state` enum('active','deleted') NOT NULL DEFAULT 'active',\n `source` - enum('none','dhcp','arp') NOT NULL DEFAULT 'none',\n `created_date` timestamp - NOT NULL DEFAULT current_timestamp(),\n `modified_date` timestamp NOT NULL DEFAULT - current_timestamp() ON UPDATE current_timestamp(),\n PRIMARY KEY (`id`),\n KEY - `host_id_idx` (`host_id`),\n KEY `mac_address_idx` (`mac`),\n KEY `state_source_idx` - (`state`,`source`),\n CONSTRAINT `host_id` FOREIGN KEY (`host_id`) REFERENCES - `ip_host` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n) ENGINE=InnoDB DEFAULT - CHARSET=utf8mb4;\n/*!40101 SET character_set_client = @saved_cs_client */;\n\n\nLOCK - TABLES `mac_address` WRITE;\n/*!40000 ALTER TABLE `mac_address` DISABLE KEYS */;\n/*!40000 - ALTER TABLE `mac_address` ENABLE KEYS */;\nUNLOCK TABLES;\n/*!50003 SET @saved_cs_client - \ = @@character_set_client */ ;\n/*!50003 SET @saved_cs_results = @@character_set_results - */ ;\n/*!50003 SET @saved_col_connection = @@collation_connection */ ;\n/*!50003 - SET character_set_client = utf8 */ ;\n/*!50003 SET character_set_results = utf8 - */ ;\n/*!50003 SET collation_connection = utf8_general_ci */ ;\n/*!50003 SET - @saved_sql_mode = @@sql_mode */ ;\n/*!50003 SET sql_mode = - 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' + unsigned NOT NULL,\n `resource_type` enum('hw','vnet','roh','bgp','vpc') DEFAULT + NULL,\n `meta` longtext NOT NULL DEFAULT '{}' CHECK (json_valid(`meta`)),\n PRIMARY + KEY (`id`),\n KEY `pairs_idx` (`tag_id`,`resource_id`) USING BTREE,\n CONSTRAINT + `fk1` FOREIGN KEY (`tag_id`) REFERENCES `tag` (`id`) ON DELETE RESTRICT ON UPDATE + CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client + = @saved_cs_client */;\n\n\n\n--\n-- Table structure for table `mac_address`\n--\n\nDROP + TABLE IF EXISTS `mac_address`;\n/*!40101 SET @saved_cs_client = @@character_set_client + */;\n/*!40101 SET character_set_client = utf8 */;\nCREATE TABLE `mac_address` + (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `host_id` bigint(20) + unsigned NOT NULL,\n `mac` varchar(20) NOT NULL,\n `state` enum('active','deleted') + NOT NULL DEFAULT 'active',\n `source` enum('none','dhcp','arp') NOT NULL DEFAULT + 'none',\n `created_date` timestamp NOT NULL DEFAULT current_timestamp(),\n `modified_date` + timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n + \ PRIMARY KEY (`id`),\n KEY `host_id_idx` (`host_id`),\n KEY `mac_address_idx` + (`mac`),\n KEY `state_source_idx` (`state`,`source`),\n CONSTRAINT `host_id` + FOREIGN KEY (`host_id`) REFERENCES `ip_host` (`id`) ON DELETE CASCADE ON UPDATE + CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n/*!40101 SET character_set_client + = @saved_cs_client */;\n\n\nLOCK TABLES `mac_address` WRITE;\n/*!40000 ALTER TABLE + `mac_address` DISABLE KEYS */;\n/*!40000 ALTER TABLE `mac_address` ENABLE KEYS + */;\nUNLOCK TABLES;\n/*!50003 SET @saved_cs_client = @@character_set_client + */ ;\n/*!50003 SET @saved_cs_results = @@character_set_results */ ;\n/*!50003 + SET @saved_col_connection = @@collation_connection */ ;\n/*!50003 SET character_set_client + \ = utf8 */ ;\n/*!50003 SET character_set_results = utf8 */ ;\n/*!50003 SET collation_connection + \ = utf8_general_ci */ ;\n/*!50003 SET @saved_sql_mode = @@sql_mode */ ;\n/*!50003 + SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;\nDELIMITER ;;\n/*!50003 CREATE TRIGGER `dhcp-lease-delete` AFTER DELETE ON `mac_address` \nFOR EACH ROW BEGIN\n SELECT count(id) INTO @UsedHostCount FROM `mac_address` WHERE `host_id` = OLD.host_id;\n IF @UsedHostCount = 0\n THEN\n @@ -1734,8 +1664,8 @@ data: INSERT INTO `tenants` VALUES (2,'DevOps',0,0,0,0,0,'region',1,10,0,'public','2019-01-15 09:37:34','2020-07-14 19:00:02','DevOps Resources'); 01-users.sql: | USE {{ .Values.mariadb.auth.database }}; - INSERT INTO `users` VALUES (1,'{{ .Values.netris.webLogin }}','{{ .Values.netris.webPassword | bcrypt }}','true','Netris','info@netris.local','',NULL,0,'','','Netris',NULL,0,1,'disabled','','{"approvals":"false","telescope":"false"}', NULL, NULL); - INSERT INTO `users` VALUES (2,'system',NULL,NULL,'System Generated','system@netris.local','',NULL,0,'','','Netris',NULL,0,1,'disabled','','{"approvals":"false","telescope":"false"}', NULL, NULL); + INSERT INTO `users` VALUES (1,'{{ .Values.netris.webLogin }}','{{ .Values.netris.webPassword | sha1sum }}','Netris','info@netris.local','',NULL,0,'','','Netris',NULL,0,1,'disabled','','{"approvals":"false","telescope":"false"}', NULL, NULL); + INSERT INTO `users` VALUES (2,'system',NULL,'System Generated','system@netris.local','',NULL,0,'','','Netris',NULL,0,1,'disabled','','{"approvals":"false","telescope":"false"}', NULL, NULL); INSERT INTO `user_to_tenant` VALUES (1,1,0,'w'); INSERT INTO `user_to_tenant` VALUES (2,2,0,'w'); @@ -1812,7 +1742,7 @@ data: INSERT INTO `global_settings` VALUES (36,'wireguard_port_range','59000-60999','VPN peers port range','true'); INSERT INTO `global_settings` VALUES (37,'k8s_lb_check_timeout','2000','K8s Layer 4 load-balancer timeout (ms)','true'); INSERT INTO `global_settings` VALUES (38,'vpn_measurement_wait_secs','30','Site Mesh measurement module wait interval (sec)','true'); - INSERT INTO `global_settings` VALUES (39,'migration_version', '4.3.0', 'Database scheme version', 'false'); + INSERT INTO `global_settings` VALUES (39,'migration_version', '4.1.1', 'Database scheme version', 'false'); INSERT INTO `global_settings` VALUES (40,'system_asn_range', '4200000000 - 4209999999', 'System ASN range', 'true'); INSERT INTO `global_settings` VALUES (41,'vpn_asn_range', '4210000000 - 4219999999', 'Site Mesh VPN ASN range', 'true'); INSERT INTO `global_settings` VALUES (42,'calico_asn_range', '4230000000 - 4239999999', 'Calico ASN range', 'true'); @@ -1824,8 +1754,7 @@ data: INSERT INTO `currency` VALUES (4,'BGN',0.511,'2016-11-26 05:17:49'); 04-whitelist.sql: | USE {{ .Values.mariadb.auth.database }}; - INSERT INTO `login_whitelists` VALUES (1,'0.0.0.0',0,'ANY_IPv4'); - INSERT INTO `login_whitelists` VALUES (2,'::',0,'ANY_IPv6'); + INSERT INTO `login_whitelists` VALUES (1,'0.0.0.0',0,'ANY'); 05-auth_schemes.sql: |+ USE {{ .Values.mariadb.auth.database }}; INSERT INTO `auth_schemes` VALUES (1,'local','conductor','','active','yes'); @@ -1869,7 +1798,6 @@ data: INSERT INTO `nos_list` VALUES (1,'Cumulus Linux','cumulus_linux'); INSERT INTO `nos_list` VALUES (2,'SONiC','sonic'); INSERT INTO `nos_list` VALUES (3,'Ubuntu SwitchDev','ubuntu_switch_dev'); - INSERT INTO `nos_list` VALUES (4,'Cumulus NVUE','cumulus_nvue'); 06-roh_profiles.sql: | USE {{ .Values.mariadb.auth.database }}; INSERT INTO `roh_profiles` VALUES (1,'Default','default'); @@ -1877,7 +1805,7 @@ data: INSERT INTO `roh_profiles` VALUES (3,'Full table','full_table'); 07-inventory_profiles.sql: | USE {{ .Values.mariadb.auth.database }}; - INSERT INTO `inventory_profiles` VALUES (1,'default-inventory-profile','Default inventory profile','0.0.0.0/0','','{\"offset\":\"-08:00\",\"label\":\"(GMT-08:00) Pacific Time\",\"tzCode\":\"America/Los_Angeles\"}','pool.ntp.org','1.1.1.1,8.8.8.8','{}',NULL,NULL); + INSERT INTO `inventory_profiles` VALUES (1,'default-inventory-profile','Default inventory profile','0.0.0.0/0','','{\"offset\":\"-08:00\",\"label\":\"(GMT-08:00) Pacific Time\",\"tzCode\":\"America/Los_Angeles\"}','pool.ntp.org','1.1.1.1,8.8.8.8',NULL,NULL); 07-subnets.sql: | USE {{ .Values.mariadb.auth.database }}; -- allocations (id, vpc_id, parent_id,allocation_id,name,description,tenant_id,ip_version,purpose,readonly,prefix,length,meta) diff --git a/charts/netris-controller/templates/web-service-backend.yaml b/charts/netris-controller/templates/web-service-backend.yaml index b79d015..ab1499a 100644 --- a/charts/netris-controller/templates/web-service-backend.yaml +++ b/charts/netris-controller/templates/web-service-backend.yaml @@ -90,8 +90,6 @@ spec: secretKeyRef: name: {{ printf "%s-%s" (include "netris-controller.fullname" .) "web-session-secret" }} key: secret-key - - name: NODE_OPTIONS - value: {{ (index .Values $microservicename).nodeOptions | quote }} ports: - name: {{ (index .Values $microservicename).service.name }} containerPort: {{ (index .Values $microservicename).service.port }} diff --git a/charts/netris-controller/values.yaml b/charts/netris-controller/values.yaml index e4119bc..a42e805 100644 --- a/charts/netris-controller/values.yaml +++ b/charts/netris-controller/values.yaml @@ -83,7 +83,7 @@ web-service-backend: repository: netrisai/controller-web-service-backend pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "4.3.0-037" + tag: "4.1.1-016" imagePullSecrets: [] @@ -100,8 +100,6 @@ web-service-backend: targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80 - nodeOptions: "--max-old-space-size=8192" - web-service-frontend: replicaCount: 1 @@ -110,7 +108,7 @@ web-service-frontend: repository: netrisai/controller-web-service-frontend pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "4.3.0-044" + tag: "4.1.1-007" imagePullSecrets: [] @@ -134,7 +132,7 @@ grpc: repository: netrisai/controller-grpc pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "4.3.0.009" + tag: "4.1.1.008" imagePullSecrets: [] @@ -158,7 +156,7 @@ telescope: repository: netrisai/controller-telescope pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "4.3.0.002" + tag: "4.1.0.001" imagePullSecrets: [] @@ -246,7 +244,7 @@ migration: image: repository: netrisai/controller-web-service-migration pullPolicy: IfNotPresent - tag: "4.3.0" + tag: "4.1.2" ## Using default values from https://github.com/bitnami/charts/tree/master/bitnami/mariadb/values.yaml @@ -324,8 +322,8 @@ graphite: ENABLE_LOGROTATION = True USER = MAX_CACHE_SIZE = inf - MAX_UPDATES_PER_SECOND = 10000 - MAX_CREATES_PER_MINUTE = 50000 + MAX_UPDATES_PER_SECOND = 500 + MAX_CREATES_PER_MINUTE = 30 MIN_TIMESTAMP_RESOLUTION = 1 LINE_RECEIVER_INTERFACE = 0.0.0.0 LINE_RECEIVER_PORT = 2003