Bug fix.
[sim/o1-interface.git] / ntsimulator / src / ntsimulator-manager / simulator-operations.h
index f61784e..8958b1d 100644 (file)
@@ -1,9 +1,19 @@
-/*
- * simulator-operations.h
- *
- *  Created on: Mar 9, 2019
- *      Author: parallels
- */
+/*************************************************************************
+*
+* Copyright 2019 highstreet technologies GmbH and others
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+***************************************************************************/
 
 #ifndef SRC_NTSIMULATOR_MANAGER_SIMULATOR_OPERATIONS_H_
 #define SRC_NTSIMULATOR_MANAGER_SIMULATOR_OPERATIONS_H_
@@ -28,6 +38,7 @@
 typedef struct device {
        char *device_id;
        int netconf_port;
+    int device_number;
        bool is_mounted;
        char *operational_state;
        struct device *next;
@@ -51,10 +62,11 @@ typedef struct controller
 
 
 device_stack_t *new_device_stack(void);
-void push_device(device_stack_t *theStack, char *dev_id, int port);
+void push_device(device_stack_t *theStack, char *dev_id, int port, int dev_num);
 void pop_device(device_stack_t *theStack);
 int get_netconf_port_next(device_stack_t *theStack);
 int get_netconf_port_base(void);
+int get_device_number_next(device_stack_t *theStack);
 char *get_id_last_device(device_stack_t *theStack);
 int get_current_number_of_devices(device_stack_t *theStack);
 int get_current_number_of_mounted_devices(device_stack_t *theStack);
@@ -75,6 +87,9 @@ int cleanup_curl(void);
 int _init_curl_odl(void);
 int cleanup_curl_odl(void);
 
+int _init_curl_k8s(void);
+int cleanup_curl_k8s(void);
+
 int start_device(device_stack_t *theStack);
 int stop_device(device_stack_t *theStack);
 
@@ -86,17 +101,34 @@ int get_docker_containers_operational_state_curl(device_stack_t *theStack);
 
 char* get_docker_container_resource_stats();
 
-int notification_delay_period_changed(int period);
+int notification_delay_period_changed(sr_val_t *val, size_t count);
 int ves_heartbeat_period_changed(int period);
 int ves_ip_changed(char *new_ip);
 int ves_port_changed(int new_port);
+int ves_username_changed(char *new_username);
+int ves_password_changed(char *new_password);
+int ves_auth_method_changed(char *new_auth_method);
 int ves_registration_changed(cJSON_bool new_bool);
 int is_netconf_available_changed(cJSON_bool new_bool);
 int is_ves_available_changed(cJSON_bool new_bool);
+int ssh_connections_changed(int number);
+int tls_connections_changed(int number);
 
+int controller_ip_changed(char *new_ip);
+int controller_port_changed(int new_port);
+int controller_netconf_call_home_port_changed(int new_port);
+int controller_username_changed(char *new_username);
+int controller_password_changed(char *new_password);
+int netconf_call_home_changed(cJSON_bool new_bool);
 
 
 int add_key_pair_to_odl(controller_t *controller_list, int controller_list_size);
 
+int send_k8s_scale(int number_of_devices);
+int send_k8s_extend_port(void);
+
+int invoke_device_notification(char *device_id, char *module_name, char *notification_string);
+
+int pull_docker_image_of_simulated_device(void);
 
 #endif /* SRC_NTSIMULATOR_MANAGER_SIMULATOR_OPERATIONS_H_ */