Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ GloboNetworkAPI-client-python/*
.project/
venv/
config/*.env
CadVlan/static
CadVlan/static
*.env
3 changes: 3 additions & 0 deletions CadVlan/VipRequest/facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def popular_client_shared(request, client_api):

lists['clients'] = client_evip.environmentvip_step(finality)

for item in lists['clients']:
item['disabled'] = True if finality == 'Producao' and item['cliente_txt'] == 'VPN' else False

except NetworkAPIClientError, e:
logger.error(e)
messages.add_message(request, messages.ERROR, e)
Expand Down
6 changes: 5 additions & 1 deletion CadVlan/templates/ajax/request-vip-client.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@
limitations under the License.
-->
{% for client in clients %}
<option value="{{client.cliente_txt}}">{{client.cliente_txt}}</option>
{% if client.disabled %}
<option disabled value="{{client.cliente_txt}}">{{client.cliente_txt}} - (A criação de novos VIPs nos ambientes de publicação estão temporariamente bloqueados. Por favor, entre em contato com a equipe de SecOps para solicitação de novos VIPs.)</option>
{% else %}
<option value="{{client.cliente_txt}}">{{client.cliente_txt}}</option>
{% endif %}
{% endfor %}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ python-ldap==2.3.13
python-memcached==1.48
gunicorn==19.8.1
PyYAML
#pyyaml==5.3.1 #If you have problem with PyYaml, try this
2 changes: 1 addition & 1 deletion scripts/docker/docker-start-debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ echo "starting runserver 0.0.0.0:8080"

rm -rf CadVlan/static
python manage.py collectstatic --settings=CadVlan.settings --noinput
python manage.py runserver 0.0.0.0:8080 > /tmp/cadvlan.log 2>&1
python manage.py runserver 0.0.0.0:8080