diff --git a/src/webui/service/__init__.py b/src/webui/service/__init__.py index be1cbce2ac6bee75b446853edb7bfa4cdef0885f..a9b3e6321f97d8583fb1164843445ed821a3cdf9 100644 --- a/src/webui/service/__init__.py +++ b/src/webui/service/__init__.py @@ -124,4 +124,4 @@ def create_app(use_config=None, web_app_root=None): if web_app_root is not None: app.wsgi_app = SetSubAppMiddleware(app.wsgi_app, web_app_root) - return app \ No newline at end of file + return app diff --git a/src/webui/service/__main__.py b/src/webui/service/__main__.py index f58b815b43163f030fa05eff51652d1c356e0dd5..13493fffb91359593244ea2c5867473cb71cffb2 100644 --- a/src/webui/service/__main__.py +++ b/src/webui/service/__main__.py @@ -69,4 +69,5 @@ def main(): return 0 if __name__ == '__main__': - sys.exit(main()) \ No newline at end of file + sys.exit(main()) + \ No newline at end of file diff --git a/src/webui/service/app/routes.py b/src/webui/service/app/routes.py index 52795d174040759d0447fc8d6b3f80cde0e9962f..74d033c41d33cf1ddf4b05b62ad2e7219b0951b1 100644 --- a/src/webui/service/app/routes.py +++ b/src/webui/service/app/routes.py @@ -21,13 +21,13 @@ from common.tools.context_queries.Context import get_context from common.tools.context_queries.Device import get_device from common.tools.context_queries.Topology import get_topology from context.client.ContextClient import ContextClient -from app.client.AppClient import AppClient +from app.client.QKDAppClient import QKDAppClient LOGGER = logging.getLogger(__name__) -app = Blueprint('app', __name__, url_prefix='/app') +app = Blueprint('qkd_app', __name__, url_prefix='/app') -app_client = AppClient() +qkd_app_client = QKDAppClient() context_client = ContextClient() @app.get('/') @@ -47,7 +47,7 @@ def home(): apps = list() else: try: - apps = app_client.ListApps(context_obj.context_id) + apps = qkd_app_client.ListApps(context_obj.context_id) apps = apps.apps except grpc.RpcError as e: if e.code() != grpc.StatusCode.NOT_FOUND: raise diff --git a/src/webui/service/device/forms.py b/src/webui/service/device/forms.py index 38f56bc0081f2ca7ceb8067b8a3108ba5d5b51ed..9edfb83029df842e57a94a29d3227c9f07527c91 100644 --- a/src/webui/service/device/forms.py +++ b/src/webui/service/device/forms.py @@ -57,4 +57,5 @@ class UpdateDeviceForm(FlaskForm): coerce=int, validators=[NumberRange(min=0)]) - submit = SubmitField('Update') \ No newline at end of file + submit = SubmitField('Update') + \ No newline at end of file diff --git a/src/webui/service/device/routes.py b/src/webui/service/device/routes.py index 425333648898ed99b51f73ff42932fc6a99e1221..429f4a2ea8539b7b12baf5e20eb30760694ede64 100644 --- a/src/webui/service/device/routes.py +++ b/src/webui/service/device/routes.py @@ -262,4 +262,4 @@ def update(device_uuid): return redirect(url_for('device.home')) except Exception as e: # pylint: disable=broad-except flash(f'Problem updating the device. {e.details()}', 'danger') - return render_template('device/update.html', device=response, form=form, submit_text='Update Device') \ No newline at end of file + return render_template('device/update.html', device=response, form=form, submit_text='Update Device') diff --git a/src/webui/service/service/__init__.py b/src/webui/service/service/__init__.py index 3ee6f7071f145e06c3aeaefc09a43ccd88e619e3..5cf553eaaec41de7599b6723e31e4ca3f82cbcae 100644 --- a/src/webui/service/service/__init__.py +++ b/src/webui/service/service/__init__.py @@ -12,3 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. + diff --git a/src/webui/service/service/forms.py b/src/webui/service/service/forms.py index 2eb9794a943a036d3d305057c9bce6b784cc60d6..d37a9b46950cf7af818eff7bcf5936f7987b86d4 100644 --- a/src/webui/service/service/forms.py +++ b/src/webui/service/service/forms.py @@ -281,4 +281,5 @@ class AddServiceForm_L3VPN(FlaskForm): Device_2_IF_mtu = IntegerField('Device_2 Interface MTU', validators=[Optional(), NumberRange(min=0, message="MTU value can't be negative")]) Device_2_IF_address_ip = StringField('Device_2 IP Address', validators=[CustomInputRequired(), validate_ipv4_address]) Device_2_IF_address_prefix = IntegerField('Device_2 IP Prefix length', validators=[CustomInputRequired(), validate_uint32]) - Device_2_IF_description = StringField ('Device_2 SubIF Description', validators=[Optional()]) \ No newline at end of file + Device_2_IF_description = StringField ('Device_2 SubIF Description', validators=[Optional()]) + \ No newline at end of file diff --git a/src/webui/service/service/routes.py b/src/webui/service/service/routes.py index d8a3747a1c572cede9020ffb65d63e1546b9b0a7..c164b41773e15ac4e9746753e1fdc3b56a51b0d2 100644 --- a/src/webui/service/service/routes.py +++ b/src/webui/service/service/routes.py @@ -746,4 +746,4 @@ def get_device_params(form, device_num, form_type): raise ValueError(f'Unsupported form type: {form_type}') params_with_data = {k: v for k, v in device_params.items() if v is not None and str(v) != 'None' and v != ''} - return params_with_data \ No newline at end of file + return params_with_data diff --git a/src/webui/service/templates/app/home.html b/src/webui/service/templates/app/home.html index ab0de316d173e98fe0b17260f53d99a84f9f8e46..e138acd1463202b64114921d70f1df3e3716d40a 100644 --- a/src/webui/service/templates/app/home.html +++ b/src/webui/service/templates/app/home.html @@ -91,4 +91,4 @@ </tbody> </table> -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/src/webui/service/templates/service/configure_QKD.html b/src/webui/service/templates/service/configure_QKD.html index 3864a5c9f271a183630a1fb32e503cfb76ba9bd1..c026d0674c0ac459509da05a70fc294c6417c4c7 100644 --- a/src/webui/service/templates/service/configure_QKD.html +++ b/src/webui/service/templates/service/configure_QKD.html @@ -184,4 +184,5 @@ </button> </fieldset> </form> - {% endblock %} \ No newline at end of file + {% endblock %} + \ No newline at end of file