aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/forms.py
blob: 1b74a9bd378195d13e4dea47c1704232b2ed632e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
##############################################################################
# Copyright (c) 2019 Parker Berberian and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
#############################################################################

import django.forms as forms


class DowntimeForm(forms.Form):
    start = forms.DateTimeField()
    end = forms.DateTimeField()
    description = forms.CharField(max_length=1000, required=False)
s">"152.16.100.32" # must be in same subnet with gateway subnet_prefix: 24 # subnet prefix mac: "Auto" # port mac addr or auto to generate automatically gateway: <GATEWAY_ADDR> # will be taken from pod file http_client: simulated_users: {{ get(simulated_users, 'simulated_users.uplink_0', '65000') }} # number of threads to be run page_object: {{ get(page_object, 'page_object.uplink_0', '/1b.html') }} # http locator to be read downlink_0: ip: address: "152.40.40.32" # must be in same subnet with gateway subnet_prefix: 24 # subnet prefix mac: "Auto" # port mac addr or auto to generate automatically gateway: <GATEWAY_ADDR> # will be taken from pod file uplink_1: ip: address: "12.12.12.32" subnet_prefix: 24 mac: "00:00:00:00:00:01" gateway: <GATEWAY_ADDR> http_client: simulated_users: {{ get(simulated_users, 'simulated_users.uplink_1', '65000') }} # number of threads to be run page_object: {{ get(page_object, 'page_object.uplink_1', '/1b.html') }} # http locator to be read downlink_1: ip: address: "13.13.13.32" subnet_prefix: 24 mac: "00:00:00:00:00:02" gateway: <GATEWAY_ADDR>