diff --git a/src/operator/__pycache__/l2sm-operator.cpython-38.pyc b/src/operator/__pycache__/l2sm-operator.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c0ada9265a3f6bf8bbabba5f8522ad5407b5d496 Binary files /dev/null and b/src/operator/__pycache__/l2sm-operator.cpython-38.pyc differ diff --git a/src/operator/l2sm-operator.py b/src/operator/l2sm-operator.py index 73f0d4c693d852aa59b5dc1525f275a9e0b6acc3..ace59bb4d4d933df8eb03620502686232892ed74 100644 --- a/src/operator/l2sm-operator.py +++ b/src/operator/l2sm-operator.py @@ -307,6 +307,7 @@ def get_free_interfaces(node_name): """ cursor.execute(sql, (node_name.strip(),)) free_interfaces = cursor.fetchall() + print(free_interfaces) finally: connection.close() return free_interfaces @@ -326,6 +327,8 @@ def update_pod_annotation(pod_name, namespace, networks_info): pod_annotations['k8s.v1.cni.cncf.io/networks'] = '[' + ', '.join(formatted_networks) + ']' print(pod_annotations) v1.patch_namespaced_pod(pod_name, namespace, {'metadata': {'annotations': pod_annotations}}) + v1.delete_namespaced_pod(pod_name, namespace) + def update_network_assignments(pod_name, namespace, node_name, free_interfaces, target_networks, logger, openflow_id):