├── docs ├── txt ├── diagrams │ ├── architecture.png │ └── architecture.graffle │ │ ├── data.plist │ │ ├── image1.emf │ │ ├── image2.emf │ │ ├── image3.emf │ │ └── image4.emf ├── CadVlan.Util.extends.rst ├── CadVlan.Util.converters.rst ├── CadVlan.Util.templatetags.rst ├── index.rst ├── CadVlan.User.rst ├── CadVlan.Filter.rst ├── CadVlan.Script.rst ├── CadVlan.EventLog.rst ├── CadVlan.OptionVip.rst ├── CadVlan.UserGroup.rst ├── CadVlan.AccessType.rst ├── CadVlan.BlockRules.rst ├── CadVlan.EquipGroup.rst ├── CadVlan.ScriptType.rst ├── CadVlan.Environment.rst ├── CadVlan.EquipAccess.rst ├── CadVlan.EquipScript.rst ├── CadVlan.NetworkType.rst ├── CadVlan.EquipmentType.rst ├── CadVlan.HealthcheckExpect.rst ├── CadVlan.Acl.rst ├── CadVlan.Ldap.rst ├── CadVlan.Net.rst ├── CadVlan.Vlan.rst ├── CadVlan.GroupUser.rst ├── CadVlan.Equipment.rst ├── CadVlan.GroupEquip.rst ├── CadVlan.VipRequest.rst ├── CadVlan.EnvironmentVip.rst ├── CadVlan.Util.forms.rst ├── CadVlan.EquipInterface.rst ├── CadVlan.Auth.rst ├── about.rst ├── output.txt └── CadVlan.Util.rst ├── CadVlan ├── Net │ ├── __init__.py │ └── templates │ │ └── net │ │ └── options.html ├── Vrf │ ├── __init__.py │ ├── business.py │ └── forms.py ├── __init__.py ├── ACLS │ ├── v4 │ │ └── .gitignore │ └── v6 │ │ └── .gitignore ├── EventLog │ └── __init__.py ├── Pool │ ├── __init__.py │ └── templates │ │ └── pool │ │ ├── datatable.json │ │ ├── json │ │ └── datatable_new.json │ │ ├── reqvip_datatable.json │ │ └── spm_datatable.json ├── Rack │ ├── __init__.py │ ├── templates │ │ └── datacenter │ │ │ └── __init__.py │ └── tests.py ├── Script │ └── __init__.py ├── System │ ├── __init__.py │ ├── facade.py │ └── forms.py ├── User │ └── __init__.py ├── Vlan │ ├── __init__.py │ ├── static │ │ └── css │ │ │ └── new_vlan.css │ └── templates │ │ └── vlan │ │ └── vlan-form.html ├── media │ ├── js │ │ ├── header.js │ │ ├── global_new.js │ │ └── jquery.dropdown.js │ ├── assets │ │ ├── bootstrap-material-design-font │ │ │ └── fonts │ │ │ │ ├── material-design-icons.eot │ │ │ │ ├── material-design-icons.ttf │ │ │ │ └── material-design-icons.woff │ │ ├── images │ │ │ └── logo.png │ │ ├── web │ │ │ └── assets │ │ │ │ └── mobirise-icons │ │ │ │ ├── mobirise-icons.eot │ │ │ │ ├── mobirise-icons.ttf │ │ │ │ └── mobirise-icons.woff │ │ └── tether │ │ │ └── tether.min.css │ ├── img │ │ ├── logo.png │ │ ├── max.png │ │ ├── min.png │ │ ├── serv.png │ │ ├── bar_bg.png │ │ ├── patch.png │ │ ├── reload.gif │ │ ├── top_bg.png │ │ ├── favicon.png │ │ ├── ico_adm.png │ │ ├── ico_cad.png │ │ ├── ico_ldap.png │ │ ├── ico_list.png │ │ ├── ico_rot.png │ │ ├── max_red.png │ │ ├── menu_bg.png │ │ ├── menu_tick.png │ │ ├── min_red.png │ │ ├── quadrado.gif │ │ ├── user_bg.png │ │ ├── user_left.png │ │ ├── cadvlan-v2.jpg │ │ ├── cadvlan-v3.jpg │ │ ├── top_btn_bg.png │ │ ├── user_right.png │ │ ├── ajax-loading.gif │ │ ├── input-loading.gif │ │ ├── max_red_legend.png │ │ └── top_btn_bg_over.png │ └── css │ │ ├── globo │ │ └── images │ │ │ ├── ui-icons_0073ea_256x240.png │ │ │ ├── ui-icons_051033_256x240.png │ │ │ ├── ui-icons_105094_256x240.png │ │ │ ├── ui-icons_454545_256x240.png │ │ │ ├── ui-icons_666666_256x240.png │ │ │ ├── ui-icons_ff1c00_256x240.png │ │ │ ├── ui-icons_ffffff_256x240.png │ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ │ │ ├── ui-bg_flat_55_ffffff_40x100.png │ │ │ ├── ui-bg_flat_75_ffffff_40x100.png │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ │ ├── ui-bg_highlight-soft_25_0073ea_1x100.png │ │ │ ├── ui-bg_highlight-soft_80_dddddd_1x100.png │ │ │ ├── ui-bg_highlight-soft_100_f6f6f6_1x100.png │ │ │ └── ui-bg_diagonals-medium_100_eeeeee_40x40.png │ │ ├── header.css │ │ ├── global_new.css │ │ └── jquery-picklist.css ├── AccessType │ ├── __init__.py │ └── forms.py ├── BlockRules │ ├── __init__.py │ └── templates │ │ └── block-rules │ │ ├── tab-blocks.html │ │ ├── rule_form.html │ │ ├── form.html │ │ ├── tab-rules-form.html │ │ ├── tabs-template.html │ │ └── form_shared.js ├── EquipAccess │ └── __init__.py ├── EquipScript │ ├── __init__.py │ └── forms.py ├── Equipment │ ├── __init__.py │ ├── templates │ │ └── equipment │ │ │ ├── modelo.html │ │ │ ├── marca.html │ │ │ ├── equip-ip4.html │ │ │ └── equip-ip6.html │ └── business.py ├── EquipmentType │ ├── __init__.py │ └── forms.py ├── GroupUser │ ├── __init__.py │ ├── models.py │ └── forms.py ├── NetworkType │ ├── __init__.py │ └── forms.py ├── ScriptType │ ├── __init__.py │ └── forms.py ├── Util │ ├── extends │ │ └── __init__.py │ ├── converters │ │ ├── __init__.py │ │ └── util.py │ ├── __init__.py │ ├── forms │ │ ├── __init__.py │ │ ├── customRenderer.py │ │ ├── validators.py │ │ ├── decorators.py │ │ └── fields.py │ ├── templatetags │ │ └── __init__.py │ └── Enum.py ├── VipRequest │ ├── __init__.py │ └── templates │ │ └── vip-request │ │ ├── token.json │ │ ├── options_pool.html │ │ ├── pool_datatable.json │ │ └── datatable.json ├── EquipInterface │ ├── __init__.py │ ├── static │ │ ├── interface │ │ │ ├── js │ │ │ │ ├── dialog-box_connect_interface.js │ │ │ │ ├── dialog-box_save_connect_interface.js │ │ │ │ └── list_interface.js │ │ │ └── css │ │ │ │ ├── list_interface.css │ │ │ │ └── new_interface.css │ │ └── channel │ │ │ └── css │ │ │ ├── new_channel.css │ │ │ └── channel_map.css │ └── templates │ │ ├── equip-interface │ │ ├── add-env-form-3.html │ │ ├── add-env-form-2.html │ │ ├── add-env-form.html │ │ └── equipInterfaces.html │ │ ├── interfaces │ │ ├── new_connection.html │ │ └── edit_interface.html │ │ └── channels │ │ └── sw_basic_form.html ├── HealthcheckExpect │ ├── __init__.py │ └── forms.py ├── Environment │ ├── templates │ │ └── v3 │ │ │ └── __init__.py │ ├── static │ │ ├── css │ │ │ ├── environment_cidr.css │ │ │ ├── list-env.css │ │ │ └── new_environment.css │ │ └── js │ │ │ └── environment_cidr.js │ ├── __init__.py │ └── business.py ├── templates │ ├── ajax │ │ ├── suggest-name.html │ │ ├── confirm-vlan.html │ │ ├── request-vip-rule.json │ │ ├── pop_ldap_user_mail.json │ │ ├── request-ip-list-real-server.json │ │ ├── request-vip-model-ip-real-server.json │ │ ├── autocomplete-list.json │ │ ├── autocomplete-equipment-ajax.json │ │ ├── environment-autocomplete-list.txt │ │ ├── autocomplete-environment-ajax.json │ │ ├── autocomplete-vrf-ajax.json │ │ ├── equipments-interface.json │ │ ├── vlan-autocomplete-list.json │ │ ├── autocomplete-environment-vlan-ajax.json │ │ ├── request-vip-add-healthcheck.json │ │ ├── log-list.json │ │ ├── request-vip-options.json │ │ ├── ldap-reset-password.html │ │ ├── env-list.json │ │ ├── select-ldap-user.html │ │ ├── search-form-errors.html │ │ ├── request-vip-environment.html │ │ ├── equip-script-form.html │ │ ├── request-vip-client.html │ │ ├── select-modelo.html │ │ ├── newpass.html │ │ └── vip-list.json │ ├── error.json │ ├── modulo │ │ └── errormessages.html │ ├── version.html │ ├── home.html │ ├── token_invalid.html │ ├── mail │ │ ├── mail.html │ │ ├── user.html │ │ └── lost-pass.html │ └── login.html ├── constants.py ├── Acl │ └── __init__.py ├── Auth │ ├── __init__.py │ ├── business.py │ └── AuthSession.py ├── Filter │ ├── __init__.py │ └── form.py ├── Ldap │ └── __init__.py ├── EquipGroup │ └── __init__.py ├── GroupEquip │ ├── __init__.py │ ├── business.py │ └── forms.py ├── OptionVip │ └── __init__.py ├── UserGroup │ ├── __init__.py │ └── templates │ │ └── user-group │ │ └── ajax │ │ └── objects.json ├── EnvironmentVip │ ├── __init__.py │ └── business.py ├── manage.py └── processExceptionMiddleware.py ├── .vscode └── settings.json ├── requirements_debug.txt ├── requirements_test.txt ├── requirements.txt ├── config └── netapi_webui.env ├── scripts ├── fast_restart.sh ├── vagrant_provision.sh └── docker │ ├── docker-start-debug.sh │ └── docker-start.sh ├── .gitignore ├── Vagrantfile ├── AUTHORS.md ├── NOTICE ├── Dockerfile ├── docker-compose.yml ├── wsgi.py ├── manage.py ├── README.md ├── .pre-commit-config.yaml ├── Makefile └── gunicorn.conf.py /docs/txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Net/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Vrf/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/ACLS/v4/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/EventLog/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Pool/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Rack/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Script/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/System/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/User/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Vlan/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/media/js/header.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/ACLS/v6/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /CadVlan/AccessType/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/BlockRules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/EquipAccess/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/EquipScript/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Equipment/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/EquipmentType/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/GroupUser/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/NetworkType/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/ScriptType/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Util/extends/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/VipRequest/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/EquipInterface/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/HealthcheckExpect/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Util/converters/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Environment/templates/v3/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/suggest-name.html: -------------------------------------------------------------------------------- 1 | {{suggest_name}} -------------------------------------------------------------------------------- /CadVlan/templates/ajax/confirm-vlan.html: -------------------------------------------------------------------------------- 1 | {{confirm_message}} 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "jira-plugin.workingProject": "" 3 | } -------------------------------------------------------------------------------- /CadVlan/templates/error.json: -------------------------------------------------------------------------------- 1 | { 2 | "error": "{{error|escapejs}}" 3 | } -------------------------------------------------------------------------------- /CadVlan/EquipInterface/static/interface/js/dialog-box_connect_interface.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Environment/static/css/environment_cidr.css: -------------------------------------------------------------------------------- 1 | ul{ 2 | list-style: none; 3 | } -------------------------------------------------------------------------------- /CadVlan/EquipInterface/static/interface/js/dialog-box_save_connect_interface.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/Rack/templates/datacenter/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'laura.panzariello' 2 | -------------------------------------------------------------------------------- /CadVlan/media/assets/bootstrap-material-design-font/fonts/material-design-icons.eot: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/media/assets/bootstrap-material-design-font/fonts/material-design-icons.ttf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/media/assets/bootstrap-material-design-font/fonts/material-design-icons.woff: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/request-vip-rule.json: -------------------------------------------------------------------------------- 1 | { 2 | "rule": "{{rule|escapejs}}" 3 | } -------------------------------------------------------------------------------- /requirements_debug.txt: -------------------------------------------------------------------------------- 1 | django-pdb==0.5.1 2 | ipdb==0.10.2 3 | ipython==5.3.0 4 | virtualenv==15.1.0 5 | -------------------------------------------------------------------------------- /CadVlan/VipRequest/templates/vip-request/token.json: -------------------------------------------------------------------------------- 1 | { 2 | "token": "{{token}}", 3 | "url": "{{url}}" 4 | } -------------------------------------------------------------------------------- /CadVlan/media/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/logo.png -------------------------------------------------------------------------------- /CadVlan/media/img/max.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/max.png -------------------------------------------------------------------------------- /CadVlan/media/img/min.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/min.png -------------------------------------------------------------------------------- /CadVlan/media/img/serv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/serv.png -------------------------------------------------------------------------------- /CadVlan/media/img/bar_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/bar_bg.png -------------------------------------------------------------------------------- /CadVlan/media/img/patch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/patch.png -------------------------------------------------------------------------------- /CadVlan/media/img/reload.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/reload.gif -------------------------------------------------------------------------------- /CadVlan/media/img/top_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/top_bg.png -------------------------------------------------------------------------------- /CadVlan/media/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/favicon.png -------------------------------------------------------------------------------- /CadVlan/media/img/ico_adm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/ico_adm.png -------------------------------------------------------------------------------- /CadVlan/media/img/ico_cad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/ico_cad.png -------------------------------------------------------------------------------- /CadVlan/media/img/ico_ldap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/ico_ldap.png -------------------------------------------------------------------------------- /CadVlan/media/img/ico_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/ico_list.png -------------------------------------------------------------------------------- /CadVlan/media/img/ico_rot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/ico_rot.png -------------------------------------------------------------------------------- /CadVlan/media/img/max_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/max_red.png -------------------------------------------------------------------------------- /CadVlan/media/img/menu_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/menu_bg.png -------------------------------------------------------------------------------- /CadVlan/media/img/menu_tick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/menu_tick.png -------------------------------------------------------------------------------- /CadVlan/media/img/min_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/min_red.png -------------------------------------------------------------------------------- /CadVlan/media/img/quadrado.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/quadrado.gif -------------------------------------------------------------------------------- /CadVlan/media/img/user_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/user_bg.png -------------------------------------------------------------------------------- /CadVlan/media/img/user_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/user_left.png -------------------------------------------------------------------------------- /docs/diagrams/architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/docs/diagrams/architecture.png -------------------------------------------------------------------------------- /CadVlan/media/img/cadvlan-v2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/cadvlan-v2.jpg -------------------------------------------------------------------------------- /CadVlan/media/img/cadvlan-v3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/cadvlan-v3.jpg -------------------------------------------------------------------------------- /CadVlan/media/img/top_btn_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/top_btn_bg.png -------------------------------------------------------------------------------- /CadVlan/media/img/user_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/user_right.png -------------------------------------------------------------------------------- /CadVlan/media/assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/assets/images/logo.png -------------------------------------------------------------------------------- /CadVlan/media/img/ajax-loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/ajax-loading.gif -------------------------------------------------------------------------------- /CadVlan/media/img/input-loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/input-loading.gif -------------------------------------------------------------------------------- /CadVlan/media/img/max_red_legend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/max_red_legend.png -------------------------------------------------------------------------------- /CadVlan/media/img/top_btn_bg_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/img/top_btn_bg_over.png -------------------------------------------------------------------------------- /CadVlan/constants.py: -------------------------------------------------------------------------------- 1 | # OBJECT_TYPES 2 | VIPREQUEST_OBJ_TYPE = 'VipRequest' 3 | SERVERPOOL_OBJ_TYPE = 'ServerPool' 4 | VLAN_OBJ_TYPE = 'Vlan' 5 | -------------------------------------------------------------------------------- /docs/diagrams/architecture.graffle/data.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/docs/diagrams/architecture.graffle/data.plist -------------------------------------------------------------------------------- /docs/diagrams/architecture.graffle/image1.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/docs/diagrams/architecture.graffle/image1.emf -------------------------------------------------------------------------------- /docs/diagrams/architecture.graffle/image2.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/docs/diagrams/architecture.graffle/image2.emf -------------------------------------------------------------------------------- /docs/diagrams/architecture.graffle/image3.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/docs/diagrams/architecture.graffle/image3.emf -------------------------------------------------------------------------------- /docs/diagrams/architecture.graffle/image4.emf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/docs/diagrams/architecture.graffle/image4.emf -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-icons_0073ea_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-icons_0073ea_256x240.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-icons_051033_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-icons_051033_256x240.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-icons_105094_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-icons_105094_256x240.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-icons_666666_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-icons_666666_256x240.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-icons_ff1c00_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-icons_ff1c00_256x240.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-icons_ffffff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /requirements_test.txt: -------------------------------------------------------------------------------- 1 | autopep8==1.0.3 2 | pep8==1.5.7 3 | Jinja2==2.7.3 4 | MarkupSafe==0.23 5 | Pygments==1.6 6 | Sphinx==1.2.2 7 | docutils==0.12 8 | sphinx-rtd-theme==0.1.6 9 | -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-bg_flat_0_aaaaaa_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-bg_flat_0_aaaaaa_40x100.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-bg_flat_55_ffffff_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-bg_flat_55_ffffff_40x100.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-bg_flat_75_ffffff_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-bg_flat_75_ffffff_40x100.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /CadVlan/media/assets/web/assets/mobirise-icons/mobirise-icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/assets/web/assets/mobirise-icons/mobirise-icons.eot -------------------------------------------------------------------------------- /CadVlan/media/assets/web/assets/mobirise-icons/mobirise-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/assets/web/assets/mobirise-icons/mobirise-icons.ttf -------------------------------------------------------------------------------- /CadVlan/media/assets/web/assets/mobirise-icons/mobirise-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/assets/web/assets/mobirise-icons/mobirise-icons.woff -------------------------------------------------------------------------------- /CadVlan/templates/ajax/pop_ldap_user_mail.json: -------------------------------------------------------------------------------- 1 | { 2 | "ldap_username": "{{ ldap_name|escapejs }}", 3 | "ldap_email": "{{ ldap_email|escapejs }}", 4 | "error": "{{ error|escapejs }}" 5 | } 6 | -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-bg_highlight-soft_25_0073ea_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-bg_highlight-soft_25_0073ea_1x100.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-bg_highlight-soft_80_dddddd_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-bg_highlight-soft_80_dddddd_1x100.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png -------------------------------------------------------------------------------- /CadVlan/media/css/globo/images/ui-bg_diagonals-medium_100_eeeeee_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/globocom/GloboNetworkAPI-WebUI/HEAD/CadVlan/media/css/globo/images/ui-bg_diagonals-medium_100_eeeeee_40x40.png -------------------------------------------------------------------------------- /CadVlan/VipRequest/templates/vip-request/options_pool.html: -------------------------------------------------------------------------------- 1 | {% load util %} 2 | 3 | {% for pool in pool_choices %} 4 | 5 | {% endfor %} -------------------------------------------------------------------------------- /CadVlan/templates/ajax/request-ip-list-real-server.json: -------------------------------------------------------------------------------- 1 | { 2 | "ips": "{{ips|escapejs}}", 3 | "msg": {% if msg %}"{{msg}}"{% else %}""{% endif %} 4 | } -------------------------------------------------------------------------------- /CadVlan/templates/ajax/request-vip-model-ip-real-server.json: -------------------------------------------------------------------------------- 1 | { 2 | "ips": "{{ips|escapejs}}", 3 | "msg": {% if msg %}"{{msg}}"{% else %}""{% endif %} 4 | } -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | Django==1.4.15 2 | GloboNetworkAPI==0.9.3 3 | py2-ipaddress==3.4.1 4 | pycrypto==2.6 5 | python-ldap==2.3.13 6 | python-memcached==1.48 7 | gunicorn==19.8.1 8 | PyYAML 9 | #pyyaml==5.3.1 #If you have problem with PyYaml, try this -------------------------------------------------------------------------------- /CadVlan/Vrf/business.py: -------------------------------------------------------------------------------- 1 | from CadVlan.Util.Decorators import cache_function 2 | from CadVlan.settings import CACHE_EQUIPMENTS_TIMEOUT 3 | 4 | 5 | @cache_function(CACHE_EQUIPMENTS_TIMEOUT) 6 | def cache_vrf_list(vrf): 7 | vrf_list = dict(list=vrf) 8 | return vrf_list -------------------------------------------------------------------------------- /CadVlan/media/assets/tether/tether.min.css: -------------------------------------------------------------------------------- 1 | .tether-element,.tether-element *,.tether-element :after,.tether-element :before,.tether-element:after,.tether-element:before{box-sizing:border-box}.tether-element{position:absolute;display:none}.tether-element.tether-open{display:block} -------------------------------------------------------------------------------- /config/netapi_webui.env: -------------------------------------------------------------------------------- 1 | NETWORKAPI_PDB=0 2 | 3 | NETWORKAPI_DEBUG=1 4 | 5 | NETWORK_API_URL=http://192.168.0.104:8000/ 6 | 7 | CADVLAN_SECRET_KEY= 8 | 9 | NETWORK_API_USERNAME=testeapi 10 | NETWORK_API_PASSWORD=testeapi 11 | 12 | EMAIL_HOST_USER= 13 | EMAIL_HOST_PASSWORD= 14 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/autocomplete-list.json: -------------------------------------------------------------------------------- 1 | { 2 | "errors": [{% if messages %}{% for message in messages %}"{{ message|escapejs }}"{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}], 3 | "list": [{% for iten in list %}"{{ iten|escapejs }}"{% if not forloop.last %}, {% endif %}{% endfor %}] 4 | } -------------------------------------------------------------------------------- /CadVlan/templates/ajax/autocomplete-equipment-ajax.json: -------------------------------------------------------------------------------- 1 | { 2 | "errors": [{% if messages %}{% for message in messages %}"{{ message|escapejs }}"{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}], 3 | "list": [{% for item in list %}"{{ item.name }}"{% if not forloop.last %},{% endif %}{% endfor %}] 4 | } -------------------------------------------------------------------------------- /scripts/fast_restart.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "exporting NETWORKAPI_DEBUG=1" 4 | export NETWORKAPI_DEBUG=1 5 | 6 | echo "killing gunicorn" 7 | sudo killall gunicorn 8 | 9 | echo "starting gunicorn" 10 | sudo /usr/local/bin/gunicorn -c /vagrant/gunicorn.conf.py wsgi:application 11 | 12 | tail -f CadVlan/log.log 13 | -------------------------------------------------------------------------------- /CadVlan/Environment/static/css/list-env.css: -------------------------------------------------------------------------------- 1 | html body { 2 | display: grid; 3 | grid-template-columns: 1fr; 4 | margin: 10%; 5 | background-color: #FFF; 6 | } 7 | 8 | section.container-cadvlan { 9 | display: flex; 10 | flex-direction: column; 11 | align-items: center; 12 | flex-basis: 100%; 13 | } -------------------------------------------------------------------------------- /CadVlan/templates/ajax/environment-autocomplete-list.txt: -------------------------------------------------------------------------------- 1 | [ 2 | {% for iten in list %} 3 | { 4 | 5 | 6 | "id": "{{ iten.id|escapejs }}", 7 | "label": "{{ iten.name|escapejs }}", 8 | "value": "{{ iten.name|escapejs }}" 9 | } 10 | 11 | {% if not forloop.last %}, {% endif %} 12 | 13 | {% endfor %} 14 | ] 15 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/autocomplete-environment-ajax.json: -------------------------------------------------------------------------------- 1 | { 2 | "errors": [{% if messages %}{% for message in messages %}"{{ message|escapejs }}"{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}], 3 | "list": [{% for item in list %}{"id": "{{ item.id }}", "name": "{{ item.name }}"}{% if not forloop.last %},{% endif %}{% endfor %}] 4 | } -------------------------------------------------------------------------------- /CadVlan/EquipInterface/templates/equip-interface/add-env-form-3.html: -------------------------------------------------------------------------------- 1 | {% for field in envform %} 2 |
3 |
4 | {{ field }} 5 |
6 |
7 | {% endfor %} 8 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/autocomplete-vrf-ajax.json: -------------------------------------------------------------------------------- 1 | { 2 | "errors": [{% if messages %}{% for message in messages %}"{{ message|escapejs }}"{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}], 3 | "list": [{% for item in list %}{"id": "{{ item.id }}", "name": "{{ item.internal_name }}"}{% if not forloop.last %},{% endif %}{% endfor %}] 4 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ipdb_env/ 2 | test_venv/ 3 | *.pyc 4 | *.orig 5 | *.log 6 | *.pyc 7 | .pydevproject 8 | org.eclipse.core.resources.prefs 9 | Documentation/_build/* 10 | **/ACLS/* 11 | *.idea 12 | .vagrant* 13 | .DS_STORE 14 | build 15 | GloboNetworkAPI-client-python/* 16 | .settings/ 17 | .project/ 18 | venv/ 19 | config/*.env 20 | CadVlan/static 21 | *.env -------------------------------------------------------------------------------- /CadVlan/templates/ajax/equipments-interface.json: -------------------------------------------------------------------------------- 1 | { 2 | "errors": [{% if messages %}{% for message in messages %}"{{ message|escapejs }}"{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}], 3 | "list": [{% for item in all_interfaces %}{"interface": "{{ item.interface }}", "id": "{{ item.id }}"}{% if not forloop.last %},{% endif %}{% endfor %}] 4 | } -------------------------------------------------------------------------------- /CadVlan/templates/ajax/vlan-autocomplete-list.json: -------------------------------------------------------------------------------- 1 | { 2 | "errors": [{% if messages %}{% for message in messages %}"{{ message|escapejs }}"{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}], 3 | "list": [ {% for iten in list %}{"label":"{{ iten.num_vlan }} | {{ iten.environment }}", "aux":"{{ iten.id|escapejs }}"}{% if not forloop.last %}, {% endif %}{% endfor %}] 4 | } -------------------------------------------------------------------------------- /CadVlan/EquipInterface/static/interface/js/list_interface.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | 3 | autocomplete("/autocomplete/equipment/", true, "id_equip_name", false); 4 | 5 | $(".btn_equip").on("click", function() { 6 | $("#id_equip_name").val($(this).html().trim()); 7 | $("#search_form").submit(); 8 | }); 9 | 10 | $('[data-toggle="tooltip"]').tooltip(); 11 | 12 | }); -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- 1 | VAGRANTFILE_API_VERSION = "2" 2 | 3 | Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 4 | config.vm.box = "hashicorp/precise32" 5 | config.vm.network "private_network", ip:"10.0.0.3" 6 | config.vm.hostname = "NETWORKAPI-WEBUI" 7 | #config.omnibus.chef_version = :latest 8 | #config.vm.provision :chef_solo do |chef| 9 | #end 10 | config.vm.provision :shell, path: "scripts/vagrant_provision.sh" 11 | end 12 | 13 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/autocomplete-environment-vlan-ajax.json: -------------------------------------------------------------------------------- 1 | { 2 | "errors": [{% if messages %}{% for message in messages %}"{{ message|escapejs }}"{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}], 3 | "list": [ {% for item in list %} "{{item.id}} - {{ item.name }} ({{ item.min_num_vlan_1 }}-{{ item.max_num_vlan_1 }},{{ item.min_num_vlan_2 }}-{{ item.max_num_vlan_2 }})"{% if not forloop.last %},{% endif %} {% endfor %} ] 4 | } -------------------------------------------------------------------------------- /CadVlan/media/css/header.css: -------------------------------------------------------------------------------- 1 | 2 | html, body { 3 | width: 100%; 4 | height: 100%; 5 | text-align: center; 6 | } 7 | 8 | .container { 9 | min-height: 100%; 10 | display:grid; 11 | grid-gap: 5px; 12 | grid-template-columns: 1fr; 13 | grid-template-rows: 50px 1fr 50px; 14 | } 15 | 16 | .header { 17 | display: flex; 18 | flex-direction: row; 19 | justify-content: space-around; 20 | align-content: space-around; 21 | } -------------------------------------------------------------------------------- /CadVlan/Rack/tests.py: -------------------------------------------------------------------------------- 1 | """ 2 | This file demonstrates writing tests using the unittest module. These will pass 3 | when you run "manage.py test". 4 | 5 | Replace this with more appropriate tests for your application. 6 | """ 7 | 8 | from django.test import TestCase 9 | 10 | 11 | class SimpleTest(TestCase): 12 | def test_basic_addition(self): 13 | """ 14 | Tests that 1 + 1 always equals 2. 15 | """ 16 | self.assertEqual(1 + 1, 2) 17 | -------------------------------------------------------------------------------- /CadVlan/media/css/global_new.css: -------------------------------------------------------------------------------- 1 | .loading { 2 | background-color: #f0f0f0; 3 | border: 1px solid #ccc; 4 | border-radius: 10px; 5 | -moz-border-radius: 10px; 6 | -webkit-border-radius: 10px; 7 | filter: alpha(opacity=75); 8 | opacity: 0.75; 9 | width: 100px; 10 | height: 100px; 11 | position: fixed; 12 | top: 50%; 13 | left: 50%; 14 | margin-left:-75px; 15 | margin-top:-45px; 16 | z-index: 999999; 17 | display: none; 18 | } -------------------------------------------------------------------------------- /docs/CadVlan.Util.extends.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Util.extends package 2 | ============================ 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Util.extends.formsets module 8 | ------------------------------------ 9 | 10 | .. automodule:: CadVlan.Util.extends.formsets 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | 16 | Module contents 17 | --------------- 18 | 19 | .. automodule:: CadVlan.Util.extends 20 | :members: 21 | :undoc-members: 22 | :show-inheritance: 23 | -------------------------------------------------------------------------------- /docs/CadVlan.Util.converters.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Util.converters package 2 | =============================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Util.converters.util module 8 | ----------------------------------- 9 | 10 | .. automodule:: CadVlan.Util.converters.util 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | 16 | Module contents 17 | --------------- 18 | 19 | .. automodule:: CadVlan.Util.converters 20 | :members: 21 | :undoc-members: 22 | :show-inheritance: 23 | -------------------------------------------------------------------------------- /docs/CadVlan.Util.templatetags.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Util.templatetags package 2 | ================================= 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Util.templatetags.util module 8 | ------------------------------------- 9 | 10 | .. automodule:: CadVlan.Util.templatetags.util 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | 16 | Module contents 17 | --------------- 18 | 19 | .. automodule:: CadVlan.Util.templatetags 20 | :members: 21 | :undoc-members: 22 | :show-inheritance: 23 | -------------------------------------------------------------------------------- /CadVlan/EquipInterface/templates/equip-interface/add-env-form-2.html: -------------------------------------------------------------------------------- 1 | {% for field in envform %} 2 |
3 |
4 | {{ field }} {% ifequal field.name 'environment' %} 5 | {% endifequal %} 6 |
7 |
8 | {% endfor %} 9 | -------------------------------------------------------------------------------- /CadVlan/EquipInterface/templates/equip-interface/add-env-form.html: -------------------------------------------------------------------------------- 1 | {% for field in envform %} 2 |
3 |
4 | {{ field }} {% ifequal field.name 'environment' %} 5 | {% endifequal %} 6 |
7 |
8 | {% endfor %} 9 | -------------------------------------------------------------------------------- /AUTHORS.md: -------------------------------------------------------------------------------- 1 | # Authors: 2 | 3 | - [Henrique Bonadio L. da Cunha](https://github.com/henriquebonadio) 4 | - [Marcus Vinicius G. Cesario](https://github.com/marcusgc) 5 | 6 | # Contributors: 7 | 8 | - [Alejandra Klachquin](https://github.com/alejandraklachquin) 9 | - Avner Gonçalves 10 | - [Laura Panzariello](https://github.com/laurapanzariello) 11 | - Lucas Borges 12 | - Mauricio Leoncio dos Santos 13 | - Mateus Constanzo 14 | - [Silvano Buback](https://github.com/snbuback) 15 | - [Iuri Malinoski](https://github.com/malinoski) 16 | - [Renan Lopes](https://github.com/renanlopes97s) 17 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Globo.com 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- 1 | .. GloboNetworkAPI WebUI documentation master file, created by 2 | sphinx-quickstart on Mon Jul 14 15:02:19 2014. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | Welcome to GloboNetworkAPI WebUI's documentation! 7 | =================================== 8 | 9 | Contents: 10 | 11 | .. toctree:: 12 | :maxdepth: 4 13 | 14 | about 15 | install 16 | CadVlan 17 | 18 | 19 | Indices and tables 20 | ================== 21 | 22 | * :ref:`genindex` 23 | * :ref:`modindex` 24 | * :ref:`search` 25 | 26 | -------------------------------------------------------------------------------- /docs/CadVlan.User.rst: -------------------------------------------------------------------------------- 1 | CadVlan.User package 2 | ==================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.User.forms module 8 | ------------------------- 9 | 10 | .. automodule:: CadVlan.User.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.User.views module 16 | ------------------------- 17 | 18 | .. automodule:: CadVlan.User.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.User 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:2.7 2 | 3 | SHELL ["/bin/bash", "-c"] 4 | 5 | RUN mkdir -p /netapi_webui 6 | WORKDIR /netapi_webui 7 | 8 | ADD . /netapi_webui/ 9 | 10 | CMD cd /netapi_webui 11 | 12 | EXPOSE 8080 13 | 14 | RUN apt-get update && \ 15 | apt-get install -y libldap2-dev \ 16 | libsasl2-dev \ 17 | libssl-dev \ 18 | python-ldap \ 19 | net-tools \ 20 | dnsutils 21 | 22 | RUN pip install --upgrade pip 23 | RUN pip install virtualenv && virtualenv venv && . ./venv/bin/activate 24 | RUN pip install -r requirements.txt 25 | -------------------------------------------------------------------------------- /CadVlan/EquipInterface/static/interface/css/list_interface.css: -------------------------------------------------------------------------------- 1 | .ui-widget-content { 2 | border: 1px solid #f5f5f5; 3 | background: #f5f5f5 50% 50% repeat-x; 4 | color: #9d9d9d; 5 | } 6 | 7 | .ui-state-hover, 8 | .ui-widget-content .ui-state-hover, 9 | .ui-widget-header .ui-state-hover, 10 | .ui-state-focus, 11 | .ui-widget-content .ui-state-focus, 12 | .ui-widget-header .ui-state-focus { 13 | border: 1px solid #FFF2D5; 14 | background: #FFF2D5 50% 50% repeat-x; 15 | font-weight: bold; color: #9d9d9d; 16 | } 17 | 18 | .ui-state-hover a, .ui-state-hover a:hover { 19 | color: #9d9d9d; 20 | text-decoration: none; 21 | } -------------------------------------------------------------------------------- /docs/CadVlan.Filter.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Filter package 2 | ====================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Filter.form module 8 | -------------------------- 9 | 10 | .. automodule:: CadVlan.Filter.form 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.Filter.views module 16 | --------------------------- 17 | 18 | .. automodule:: CadVlan.Filter.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.Filter 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/request-vip-add-healthcheck.json: -------------------------------------------------------------------------------- 1 | { 2 | "healthcheck": "{% for hh in healthchecks %}{% endfor %}", 3 | "form": "{{ form.expect_new|escapejs }}", 4 | "msg": {% if success %}"{{success}}"{% else %}"

{% if form.expect_new.errors %}{% for error in form.expect_new.errors %}{{ error|escapejs }}{% endfor %}{% endif %}

"{% endif %} 5 | } -------------------------------------------------------------------------------- /docs/CadVlan.Script.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Script package 2 | ====================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Script.forms module 8 | --------------------------- 9 | 10 | .. automodule:: CadVlan.Script.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.Script.views module 16 | --------------------------- 17 | 18 | .. automodule:: CadVlan.Script.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.Script 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.EventLog.rst: -------------------------------------------------------------------------------- 1 | CadVlan.EventLog package 2 | ======================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.EventLog.forms module 8 | ----------------------------- 9 | 10 | .. automodule:: CadVlan.EventLog.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.EventLog.views module 16 | ----------------------------- 17 | 18 | .. automodule:: CadVlan.EventLog.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.EventLog 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.OptionVip.rst: -------------------------------------------------------------------------------- 1 | CadVlan.OptionVip package 2 | ========================= 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.OptionVip.forms module 8 | ------------------------------ 9 | 10 | .. automodule:: CadVlan.OptionVip.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.OptionVip.views module 16 | ------------------------------ 17 | 18 | .. automodule:: CadVlan.OptionVip.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.OptionVip 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.UserGroup.rst: -------------------------------------------------------------------------------- 1 | CadVlan.UserGroup package 2 | ========================= 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.UserGroup.forms module 8 | ------------------------------ 9 | 10 | .. automodule:: CadVlan.UserGroup.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.UserGroup.views module 16 | ------------------------------ 17 | 18 | .. automodule:: CadVlan.UserGroup.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.UserGroup 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.AccessType.rst: -------------------------------------------------------------------------------- 1 | CadVlan.AccessType package 2 | ========================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.AccessType.forms module 8 | ------------------------------- 9 | 10 | .. automodule:: CadVlan.AccessType.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.AccessType.views module 16 | ------------------------------- 17 | 18 | .. automodule:: CadVlan.AccessType.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.AccessType 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.BlockRules.rst: -------------------------------------------------------------------------------- 1 | CadVlan.BlockRules package 2 | ========================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.BlockRules.forms module 8 | ------------------------------- 9 | 10 | .. automodule:: CadVlan.BlockRules.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.BlockRules.views module 16 | ------------------------------- 17 | 18 | .. automodule:: CadVlan.BlockRules.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.BlockRules 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.EquipGroup.rst: -------------------------------------------------------------------------------- 1 | CadVlan.EquipGroup package 2 | ========================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.EquipGroup.forms module 8 | ------------------------------- 9 | 10 | .. automodule:: CadVlan.EquipGroup.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.EquipGroup.views module 16 | ------------------------------- 17 | 18 | .. automodule:: CadVlan.EquipGroup.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.EquipGroup 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.ScriptType.rst: -------------------------------------------------------------------------------- 1 | CadVlan.ScriptType package 2 | ========================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.ScriptType.forms module 8 | ------------------------------- 9 | 10 | .. automodule:: CadVlan.ScriptType.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.ScriptType.views module 16 | ------------------------------- 17 | 18 | .. automodule:: CadVlan.ScriptType.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.ScriptType 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.Environment.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Environment package 2 | =========================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Environment.forms module 8 | -------------------------------- 9 | 10 | .. automodule:: CadVlan.Environment.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.Environment.views module 16 | -------------------------------- 17 | 18 | .. automodule:: CadVlan.Environment.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.Environment 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.EquipAccess.rst: -------------------------------------------------------------------------------- 1 | CadVlan.EquipAccess package 2 | =========================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.EquipAccess.forms module 8 | -------------------------------- 9 | 10 | .. automodule:: CadVlan.EquipAccess.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.EquipAccess.views module 16 | -------------------------------- 17 | 18 | .. automodule:: CadVlan.EquipAccess.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.EquipAccess 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.EquipScript.rst: -------------------------------------------------------------------------------- 1 | CadVlan.EquipScript package 2 | =========================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.EquipScript.forms module 8 | -------------------------------- 9 | 10 | .. automodule:: CadVlan.EquipScript.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.EquipScript.views module 16 | -------------------------------- 17 | 18 | .. automodule:: CadVlan.EquipScript.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.EquipScript 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.NetworkType.rst: -------------------------------------------------------------------------------- 1 | CadVlan.NetworkType package 2 | =========================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.NetworkType.forms module 8 | -------------------------------- 9 | 10 | .. automodule:: CadVlan.NetworkType.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.NetworkType.views module 16 | -------------------------------- 17 | 18 | .. automodule:: CadVlan.NetworkType.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.NetworkType 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.EquipmentType.rst: -------------------------------------------------------------------------------- 1 | CadVlan.EquipmentType package 2 | ============================= 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.EquipmentType.forms module 8 | ---------------------------------- 9 | 10 | .. automodule:: CadVlan.EquipmentType.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.EquipmentType.views module 16 | ---------------------------------- 17 | 18 | .. automodule:: CadVlan.EquipmentType.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.EquipmentType 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.HealthcheckExpect.rst: -------------------------------------------------------------------------------- 1 | CadVlan.HealthcheckExpect package 2 | ================================= 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.HealthcheckExpect.forms module 8 | -------------------------------------- 9 | 10 | .. automodule:: CadVlan.HealthcheckExpect.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.HealthcheckExpect.views module 16 | -------------------------------------- 17 | 18 | .. automodule:: CadVlan.HealthcheckExpect.views 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | 24 | Module contents 25 | --------------- 26 | 27 | .. automodule:: CadVlan.HealthcheckExpect 28 | :members: 29 | :undoc-members: 30 | :show-inheritance: 31 | -------------------------------------------------------------------------------- /docs/CadVlan.Acl.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Acl package 2 | =================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Acl.acl module 8 | ---------------------- 9 | 10 | .. automodule:: CadVlan.Acl.acl 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.Acl.forms module 16 | ------------------------ 17 | 18 | .. automodule:: CadVlan.Acl.forms 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.Acl.views module 24 | ------------------------ 25 | 26 | .. automodule:: CadVlan.Acl.views 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | 32 | Module contents 33 | --------------- 34 | 35 | .. automodule:: CadVlan.Acl 36 | :members: 37 | :undoc-members: 38 | :show-inheritance: 39 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/log-list.json: -------------------------------------------------------------------------------- 1 | {% load util %} 2 | { 3 | "sEcho": {{ sEcho|escapejs }}, 4 | "iTotalRecords": {{ iTotalRecords|escapejs }}, 5 | "iTotalDisplayRecords": {{ iTotalDisplayRecords|escapejs }}, 6 | "aaData":[ 7 | {% for log in aaData %} 8 | [ 9 | "
{{ log.nome_usuario|escapejs }}
", 10 | "
{{ log.hora_evento|escapejs }}
", 11 | "
{{ log.acao|escapejs }}
", 12 | "
{{ log.funcionalidade|escapejs }}
", 13 | "
{{ log.parametro_anterior|escapejs }}
", 14 | "
{{ log.parametro_atual|escapejs }}
" 15 | ] 16 | {% if not forloop.last %} 17 | , 18 | {% endif %} 19 | {% endfor %} 20 | ] 21 | } -------------------------------------------------------------------------------- /docs/CadVlan.Ldap.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Ldap package 2 | ==================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Ldap.form module 8 | ------------------------ 9 | 10 | .. automodule:: CadVlan.Ldap.form 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.Ldap.model module 16 | ------------------------- 17 | 18 | .. automodule:: CadVlan.Ldap.model 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.Ldap.views module 24 | ------------------------- 25 | 26 | .. automodule:: CadVlan.Ldap.views 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | 32 | Module contents 33 | --------------- 34 | 35 | .. automodule:: CadVlan.Ldap 36 | :members: 37 | :undoc-members: 38 | :show-inheritance: 39 | -------------------------------------------------------------------------------- /docs/CadVlan.Net.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Net package 2 | =================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Net.business module 8 | --------------------------- 9 | 10 | .. automodule:: CadVlan.Net.business 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.Net.forms module 16 | ------------------------ 17 | 18 | .. automodule:: CadVlan.Net.forms 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.Net.views module 24 | ------------------------ 25 | 26 | .. automodule:: CadVlan.Net.views 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | 32 | Module contents 33 | --------------- 34 | 35 | .. automodule:: CadVlan.Net 36 | :members: 37 | :undoc-members: 38 | :show-inheritance: 39 | -------------------------------------------------------------------------------- /docs/CadVlan.Vlan.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Vlan package 2 | ==================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Vlan.business module 8 | ---------------------------- 9 | 10 | .. automodule:: CadVlan.Vlan.business 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.Vlan.forms module 16 | ------------------------- 17 | 18 | .. automodule:: CadVlan.Vlan.forms 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.Vlan.views module 24 | ------------------------- 25 | 26 | .. automodule:: CadVlan.Vlan.views 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | 32 | Module contents 33 | --------------- 34 | 35 | .. automodule:: CadVlan.Vlan 36 | :members: 37 | :undoc-members: 38 | :show-inheritance: 39 | -------------------------------------------------------------------------------- /CadVlan/media/js/global_new.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | 3 | $(document).ajaxStart(function() { 4 | $(".loading").show(); 5 | }); 6 | 7 | $(document).ajaxStop(function() { 8 | $(".loading").hide(); 9 | }); 10 | }); 11 | 12 | function debounce(fn, delay) { 13 | var timer = null; 14 | return function () { 15 | var context = this, args = arguments; 16 | clearTimeout(timer); 17 | timer = setTimeout(function () { 18 | fn.apply(context, args); 19 | }, delay); 20 | }; 21 | } 22 | 23 | function checkProhibitedKeys(pressedKey, prohibitedKeys){ 24 | for (var i = 0, len = prohibitedKeys.length; i < len; i++) { 25 | if(pressedKey == prohibitedKeys[i]){ 26 | return false; 27 | } 28 | } 29 | return true; 30 | } 31 | -------------------------------------------------------------------------------- /CadVlan/EquipInterface/templates/equip-interface/equipInterfaces.html: -------------------------------------------------------------------------------- 1 | {% load util %} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | {% for item in equip_interface %} 13 | 14 | 15 | 20 | 21 | {% endfor %} 22 | 23 |
EquipamentoInterface
{{ item.equipamento_nome }} 16 | 17 | {{ item.interface }} 18 | 19 |
-------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | services: 3 | 4 | cache: 5 | container_name: netapi_webui_cache 6 | image: memcached:1.4.33 7 | networks: 8 | - globonetworkapi_netapi_net 9 | 10 | netapi_webui: 11 | container_name: netapi_webui_app 12 | build: . 13 | ports: 14 | - "8080:8080" 15 | - "8081:8081" 16 | command: sh scripts/docker/docker-start-debug.sh 17 | env_file: 18 | - config/netapi_webui.env 19 | volumes: 20 | - .:/netapi_webui 21 | networks: 22 | - globonetworkapi_netapi_net 23 | depends_on: 24 | - cache 25 | external_links: 26 | - netapi_app 27 | - cache:netapi_webui_cache 28 | 29 | networks: 30 | globonetworkapi_netapi_net: 31 | external: true 32 | -------------------------------------------------------------------------------- /docs/CadVlan.GroupUser.rst: -------------------------------------------------------------------------------- 1 | CadVlan.GroupUser package 2 | ========================= 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.GroupUser.forms module 8 | ------------------------------ 9 | 10 | .. automodule:: CadVlan.GroupUser.forms 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.GroupUser.models module 16 | ------------------------------- 17 | 18 | .. automodule:: CadVlan.GroupUser.models 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.GroupUser.views module 24 | ------------------------------ 25 | 26 | .. automodule:: CadVlan.GroupUser.views 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | 32 | Module contents 33 | --------------- 34 | 35 | .. automodule:: CadVlan.GroupUser 36 | :members: 37 | :undoc-members: 38 | :show-inheritance: 39 | -------------------------------------------------------------------------------- /docs/CadVlan.Equipment.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Equipment package 2 | ========================= 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Equipment.business module 8 | --------------------------------- 9 | 10 | .. automodule:: CadVlan.Equipment.business 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.Equipment.forms module 16 | ------------------------------ 17 | 18 | .. automodule:: CadVlan.Equipment.forms 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.Equipment.views module 24 | ------------------------------ 25 | 26 | .. automodule:: CadVlan.Equipment.views 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | 32 | Module contents 33 | --------------- 34 | 35 | .. automodule:: CadVlan.Equipment 36 | :members: 37 | :undoc-members: 38 | :show-inheritance: 39 | -------------------------------------------------------------------------------- /CadVlan/Acl/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/Auth/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/Filter/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/Ldap/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/Util/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/Environment/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/EquipGroup/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/GroupEquip/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/OptionVip/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/UserGroup/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/Util/forms/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /docs/CadVlan.GroupEquip.rst: -------------------------------------------------------------------------------- 1 | CadVlan.GroupEquip package 2 | ========================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.GroupEquip.business module 8 | ---------------------------------- 9 | 10 | .. automodule:: CadVlan.GroupEquip.business 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.GroupEquip.forms module 16 | ------------------------------- 17 | 18 | .. automodule:: CadVlan.GroupEquip.forms 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.GroupEquip.views module 24 | ------------------------------- 25 | 26 | .. automodule:: CadVlan.GroupEquip.views 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | 32 | Module contents 33 | --------------- 34 | 35 | .. automodule:: CadVlan.GroupEquip 36 | :members: 37 | :undoc-members: 38 | :show-inheritance: 39 | -------------------------------------------------------------------------------- /CadVlan/EnvironmentVip/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/Util/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/request-vip-options.json: -------------------------------------------------------------------------------- 1 | { 2 | "timeout": "{% for time in timeout %}{% endfor %}", 3 | "caches": "{% for cache in caches %}{% endfor %}", 4 | "persistence": "{% for per in persistence %}{% endfor %}", 5 | "trafficreturn": "{% for per in trafficreturn %}{% endfor %}", 6 | "l4_protocol": "{% for l4_pt in l4_protocol %}{% endfor %}", 7 | "l7_protocol": "{% for l7_pt in l7_protocol %}{% endfor %}", 8 | "l7_rule": "{% for l7_rl in l7_rule %}{% endfor %}" 9 | } -------------------------------------------------------------------------------- /docs/CadVlan.VipRequest.rst: -------------------------------------------------------------------------------- 1 | CadVlan.VipRequest package 2 | ========================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.VipRequest.encryption module 8 | ------------------------------------ 9 | 10 | .. automodule:: CadVlan.VipRequest.encryption 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.VipRequest.forms module 16 | ------------------------------- 17 | 18 | .. automodule:: CadVlan.VipRequest.forms 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.VipRequest.views module 24 | ------------------------------- 25 | 26 | .. automodule:: CadVlan.VipRequest.views 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | 32 | Module contents 33 | --------------- 34 | 35 | .. automodule:: CadVlan.VipRequest 36 | :members: 37 | :undoc-members: 38 | :show-inheritance: 39 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/ldap-reset-password.html: -------------------------------------------------------------------------------- 1 | 17 | Nova senha:
18 | {{password}} -------------------------------------------------------------------------------- /CadVlan/GroupUser/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | 19 | # Create your models here. 20 | -------------------------------------------------------------------------------- /docs/CadVlan.EnvironmentVip.rst: -------------------------------------------------------------------------------- 1 | CadVlan.EnvironmentVip package 2 | ============================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.EnvironmentVip.business module 8 | -------------------------------------- 9 | 10 | .. automodule:: CadVlan.EnvironmentVip.business 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.EnvironmentVip.form module 16 | ---------------------------------- 17 | 18 | .. automodule:: CadVlan.EnvironmentVip.form 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.EnvironmentVip.views module 24 | ----------------------------------- 25 | 26 | .. automodule:: CadVlan.EnvironmentVip.views 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | 32 | Module contents 33 | --------------- 34 | 35 | .. automodule:: CadVlan.EnvironmentVip 36 | :members: 37 | :undoc-members: 38 | :show-inheritance: 39 | -------------------------------------------------------------------------------- /docs/CadVlan.Util.forms.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Util.forms package 2 | ========================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Util.forms.customRenderer module 8 | ---------------------------------------- 9 | 10 | .. automodule:: CadVlan.Util.forms.customRenderer 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.Util.forms.decorators module 16 | ------------------------------------ 17 | 18 | .. automodule:: CadVlan.Util.forms.decorators 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.Util.forms.validators module 24 | ------------------------------------ 25 | 26 | .. automodule:: CadVlan.Util.forms.validators 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | 32 | Module contents 33 | --------------- 34 | 35 | .. automodule:: CadVlan.Util.forms 36 | :members: 37 | :undoc-members: 38 | :show-inheritance: 39 | -------------------------------------------------------------------------------- /docs/CadVlan.EquipInterface.rst: -------------------------------------------------------------------------------- 1 | CadVlan.EquipInterface package 2 | ============================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.EquipInterface.business module 8 | -------------------------------------- 9 | 10 | .. automodule:: CadVlan.EquipInterface.business 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.EquipInterface.forms module 16 | ----------------------------------- 17 | 18 | .. automodule:: CadVlan.EquipInterface.forms 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.EquipInterface.views module 24 | ----------------------------------- 25 | 26 | .. automodule:: CadVlan.EquipInterface.views 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | 32 | Module contents 33 | --------------- 34 | 35 | .. automodule:: CadVlan.EquipInterface 36 | :members: 37 | :undoc-members: 38 | :show-inheritance: 39 | -------------------------------------------------------------------------------- /scripts/vagrant_provision.sh: -------------------------------------------------------------------------------- 1 | apt-get update 2 | apt-get install gcc -y 3 | apt-get install libldap2-dev libsasl2-dev libssl-dev -y 4 | apt-get install python-ldap -y 5 | apt-get install memcached -y 6 | apt-get install python-pip -y 7 | apt-get install python-dev -y 8 | apt-get install git -y 9 | pip install -r /vagrant/requirements.txt 10 | pip install gunicorn 11 | 12 | echo -e "PYTHONPATH=\"/vagrant/:$PYTHONPATH\"" >> /etc/environment 13 | echo -e '#!/bin/bash\n/usr/local/bin/gunicorn -c /vagrant/gunicorn.conf.py wsgi:application' > /etc/init.d/gunicorn_cadvlan 14 | chmod 777 /etc/init.d/gunicorn_cadvlan 15 | update-rc.d gunicorn_cadvlan defaults 16 | export PYTHONPATH="/vagrant:$PYTHONPATH" 17 | <<<<<<< HEAD:scripts/vagrant_provision.sh 18 | /usr/local/bin/gunicorn -c /vagrant/gunicorn.conf.py wsgi:application 19 | ======= 20 | /usr/local/bin/gunicorn -c /vagrant/gunicorn.conf.py wsgi:application 21 | 22 | >>>>>>> a2b02a7e6b86e10d0c33ddbfb602c23d3e1cfd7e:scripts/vagrant_provision.sh 23 | -------------------------------------------------------------------------------- /CadVlan/templates/modulo/errormessages.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | {% for message in messages %} 5 |
6 |
8 | 9 |

{{ message }}

13 |
14 |
15 | {% endfor %} 16 |
17 |
18 |
-------------------------------------------------------------------------------- /CadVlan/templates/version.html: -------------------------------------------------------------------------------- 1 | 17 | Versão Cadvlan: {{ version_cadvlan }} 18 |
19 | Versão do Client: {{ version_client}} 20 |
21 | Versão da API: {{ version_api }} -------------------------------------------------------------------------------- /CadVlan/templates/home.html: -------------------------------------------------------------------------------- 1 | 17 | {% extends "template.html" %} 18 | 19 | {% load util %} 20 | 21 | {% block title %}[Home]{% endblock %} 22 | 23 | {% block content %} 24 | 25 | {% endblock %} -------------------------------------------------------------------------------- /CadVlan/templates/ajax/env-list.json: -------------------------------------------------------------------------------- 1 | { 2 | "sEcho": {{ sEcho|escapejs }}, 3 | "iTotalRecords": {{ iTotalRecords|escapejs }}, 4 | "iTotalDisplayRecords": {{ iTotalDisplayRecords|escapejs }}, 5 | "aaData":[ 6 | {% for env in aaData %} 7 | [ 8 | "
", 9 | "
{{ env.id|escapejs }}
", 10 | "
{{ env.name }}
", 11 | "
{{ env.vrf}}
", 12 | "
{{ env.dcroom.dc.dcname }}
", 13 | "
Editar
" 14 | ] 15 | {% if not forloop.last %} 16 | , 17 | {% endif %} 18 | {% endfor %} 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/select-ldap-user.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | {% if ldap_users %} 19 | {% for usr in ldap_users %} 20 | 21 | {% endfor %} 22 | {% else %} 23 | {{ error }} 24 | {% endif %} 25 | -------------------------------------------------------------------------------- /CadVlan/Util/Enum.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | 19 | class Enum(set): 20 | 21 | def __getattr__(self, name): 22 | if name in self: 23 | return name 24 | raise AttributeError 25 | 26 | 27 | NETWORK_TYPES = Enum(["v4", "v6"]) 28 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/search-form-errors.html: -------------------------------------------------------------------------------- 1 | 17 | {% for error in search_form.non_field_errors %}{{ error|escapejs }}{% endfor %} 18 | {% for field in search_form %}{% for error in field.errors %}{{ field.label }}: {{ error|escapejs }}{% endfor %} 19 | {% endfor %} -------------------------------------------------------------------------------- /CadVlan/EnvironmentVip/business.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | 19 | 20 | def get_ambiente_by_id(ambientes, id_ambiente): 21 | 22 | for ambiente in ambientes: 23 | if ambiente['id'] == id_ambiente: 24 | return ambiente 25 | 26 | return None 27 | -------------------------------------------------------------------------------- /CadVlan/Auth/business.py: -------------------------------------------------------------------------------- 1 | from whrandom import choice 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | import string 19 | 20 | 21 | def GenPasswd(): 22 | newpasswd = '' 23 | chars = string.letters + string.digits 24 | for i in range(8): 25 | newpasswd = newpasswd + choice(chars) 26 | return newpasswd 27 | -------------------------------------------------------------------------------- /CadVlan/Net/templates/net/options.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | {% if items %} 19 | {% for option in items %} 20 | 21 | {% endfor %} 22 | {% endif %} -------------------------------------------------------------------------------- /CadVlan/Equipment/templates/equipment/modelo.html: -------------------------------------------------------------------------------- 1 | 17 | {% if modelos %} 18 | {% for modelo in modelos %} 19 | 20 | 21 | 22 | {% endfor %} 23 | 24 | {% else %} 25 | 26 | 27 | 28 | {% endif %} 29 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/request-vip-environment.html: -------------------------------------------------------------------------------- 1 | 17 | {% for environment in environments %} 18 | 19 | {% endfor %} -------------------------------------------------------------------------------- /CadVlan/templates/token_invalid.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /CadVlan/templates/mail/mail.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | {{user}} sua nova senha para o acesso ao CadVlan é : {{new_pass}} 25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/CadVlan.Auth.rst: -------------------------------------------------------------------------------- 1 | CadVlan.Auth package 2 | ==================== 3 | 4 | Submodules 5 | ---------- 6 | 7 | CadVlan.Auth.AuthSession module 8 | ------------------------------- 9 | 10 | .. automodule:: CadVlan.Auth.AuthSession 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | CadVlan.Auth.business module 16 | ---------------------------- 17 | 18 | .. automodule:: CadVlan.Auth.business 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | CadVlan.Auth.forms module 24 | ------------------------- 25 | 26 | .. automodule:: CadVlan.Auth.forms 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | CadVlan.Auth.models module 32 | -------------------------- 33 | 34 | .. automodule:: CadVlan.Auth.models 35 | :members: 36 | :undoc-members: 37 | :show-inheritance: 38 | 39 | CadVlan.Auth.views module 40 | ------------------------- 41 | 42 | .. automodule:: CadVlan.Auth.views 43 | :members: 44 | :undoc-members: 45 | :show-inheritance: 46 | 47 | 48 | Module contents 49 | --------------- 50 | 51 | .. automodule:: CadVlan.Auth 52 | :members: 53 | :undoc-members: 54 | :show-inheritance: 55 | -------------------------------------------------------------------------------- /wsgi.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | import sys 19 | 20 | APP_DIR = os.path.realpath(__file__ + './') 21 | 22 | sys.path.insert(0, APP_DIR) 23 | 24 | os.environ['PYTHON_EGG_CACHE'] = os.path.join(APP_DIR, '.egg-cache') 25 | os.environ['DJANGO_SETTINGS_MODULE'] = 'CadVlan.settings' 26 | 27 | import django.core.handlers.wsgi 28 | application = django.core.handlers.wsgi.WSGIHandler() 29 | -------------------------------------------------------------------------------- /CadVlan/GroupEquip/business.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | 19 | 20 | def to_complete_list(user_list, group_list): 21 | 22 | user_list = user_list.get("usuario") 23 | group_list = user_list.get('grupo') 24 | 25 | if type(user_list) == dict: 26 | user_list = [user_list] 27 | 28 | if type(group_list) == dict: 29 | group_list = [group_list] 30 | -------------------------------------------------------------------------------- /CadVlan/Equipment/templates/equipment/marca.html: -------------------------------------------------------------------------------- 1 | 17 | {% if marcas %} 18 | 19 | 20 | 21 | {% for marca in marcas %} 22 | 23 | 24 | 25 | {% endfor %} 26 | 27 | {% else %} 28 | 29 | 30 | 31 | {% endif %} 32 | -------------------------------------------------------------------------------- /CadVlan/EquipInterface/static/interface/css/new_interface.css: -------------------------------------------------------------------------------- 1 | html body { 2 | display: grid; 3 | grid-template-columns: 1fr; 4 | margin: 10%; 5 | background-color: #f2fcff; 6 | } 7 | 8 | section.container-cadvlan { 9 | display: flex; 10 | flex-direction: column; 11 | align-items: center; 12 | flex-basis: 100%; 13 | 14 | } 15 | 16 | div.form-group-cadvlan { 17 | border-left: 2px solid #0D84A5; 18 | margin: 20px; 19 | } 20 | 21 | div.form-row-cadvlan { 22 | display: flex; 23 | flex-direction: row; 24 | align-content: space-between; 25 | align-items:center; 26 | margin: 10px; 27 | } 28 | 29 | div.form-group { 30 | margin: 10px; 31 | } 32 | 33 | .form-control, 34 | .input.form-control.bs-autocomplete { 35 | background-color : #FFFFFF; 36 | } 37 | 38 | input:required { 39 | border-left-color: #c87392; 40 | border-left-width: 1px; 41 | } 42 | 43 | button.btn.btn-social-bottom.btn-responsive.channel { 44 | margin-top: 35px; 45 | } 46 | 47 | select.form-control, 48 | input.form-control.bs-autocomplete { 49 | height: 36px; 50 | font-size: 0.875rem; 51 | border: 1px solid #e8e8e8; 52 | border-radius: 3px; 53 | padding: 0.5em 1.07em 0.5em; 54 | width: 100%; 55 | } -------------------------------------------------------------------------------- /CadVlan/EquipInterface/static/channel/css/new_channel.css: -------------------------------------------------------------------------------- 1 | html body { 2 | display: grid; 3 | grid-template-columns: 1fr; 4 | margin: 10%; 5 | background-color: #f2fcff; 6 | } 7 | 8 | section.container-cadvlan { 9 | display: flex; 10 | flex-direction: column; 11 | align-items: center; 12 | flex-basis: 100%; 13 | 14 | } 15 | 16 | div.form-group-cadvlan { 17 | border-left: 2px solid #0D84A5; 18 | margin: 20px; 19 | } 20 | 21 | div.form-row-cadvlan { 22 | display: flex; 23 | flex-direction: row; 24 | align-content: space-between; 25 | align-items:center; 26 | margin: 10px; 27 | } 28 | 29 | div.form-group { 30 | margin: 10px; 31 | } 32 | 33 | .form-control, 34 | .input.form-control.bs-autocomplete { 35 | background-color : #FFFFFF; 36 | } 37 | 38 | input:required { 39 | border-left-color: #c87392; 40 | border-left-width: 1px; 41 | } 42 | 43 | button.btn.btn-social-bottom.btn-responsive.channel { 44 | margin-top: 35px; 45 | } 46 | 47 | select.form-control, 48 | input.form-control.bs-autocomplete { 49 | height: 36px; 50 | font-size: 0.875rem; 51 | border: 1px solid #e8e8e8; 52 | border-radius: 3px; 53 | padding: 0.5em 1.07em 0.5em; 54 | width: 100%; 55 | } 56 | -------------------------------------------------------------------------------- /CadVlan/EquipInterface/templates/interfaces/new_connection.html: -------------------------------------------------------------------------------- 1 |
2 | 17 |
18 |
19 | 34 |
-------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | 19 | #!/usr/bin/env python 20 | import os 21 | import sys 22 | 23 | # OBSERVACAO: Este arquivo deve permanecer aqui para poder ser utilizado 24 | # pelo deployment em produção 25 | 26 | if __name__ == "__main__": 27 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CadVlan.settings") 28 | from django.core.management import execute_from_command_line 29 | execute_from_command_line(sys.argv) 30 | -------------------------------------------------------------------------------- /CadVlan/templates/ajax/equip-script-form.html: -------------------------------------------------------------------------------- 1 | 17 |

Selecione o roteiro que deseja associar:

18 | (Roteiro - Descrição - ID) 19 |
20 | {% csrf_token %} 21 | {% for field in add_form %} 22 | {{ field }} 23 |

24 | {% for error in field.errors %} 25 | {{ error|escape }} 26 | {% endfor %} 27 |

28 | {% endfor %} 29 |
-------------------------------------------------------------------------------- /CadVlan/templates/ajax/request-vip-client.html: -------------------------------------------------------------------------------- 1 | 17 | {% for client in clients %} 18 | {% if client.disabled %} 19 | 20 | {% else %} 21 | 22 | {% endif %} 23 | {% endfor %} -------------------------------------------------------------------------------- /CadVlan/EquipInterface/templates/interfaces/edit_interface.html: -------------------------------------------------------------------------------- 1 | {% extends "menu.html" %} 2 | 3 | {% block css %} 4 | {% load static %} 5 | 6 | {% endblock %} 7 | 8 | {% block header %} 9 | 10 | 11 | 12 | 13 | {% endblock %} 14 | 15 | {% block content %} 16 |
17 |

Editar Interfaces

18 |
19 |
20 |
21 | {% for interface in interface_map %} 22 |
23 | {% include "interfaces/form.html" with default=interface %} 24 |
25 | {% endfor%} 26 |
27 |
28 | {% include "interfaces/connections.html" with default=interface_map total=total_itens %} 29 |
30 |
31 | {% endblock %} 32 | -------------------------------------------------------------------------------- /CadVlan/GroupEquip/forms.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | 19 | from django import forms 20 | from CadVlan.messages import error_messages 21 | 22 | 23 | class GroupEquipForm(forms.Form): 24 | 25 | id = forms.IntegerField( 26 | label="", required=False, widget=forms.HiddenInput(), error_messages=error_messages) 27 | name = forms.CharField(label=u'Nome Grupo', min_length=3, max_length=100, required=True, 28 | error_messages=error_messages, widget=forms.TextInput(attrs={'style': "width: 300px"})) 29 | -------------------------------------------------------------------------------- /CadVlan/BlockRules/templates/block-rules/tab-blocks.html: -------------------------------------------------------------------------------- 1 | 17 | {% extends "block-rules/tabs-template.html" %} 18 | {% load util %} 19 | 20 | {% block tab_select %} 21 | $("#page_tab_lists").tabs({selected:0}); 22 | {% endblock %} 23 | 24 | {% block js %} 25 | 26 | {% include "block-rules/form_shared.js" %} 27 | 28 | {% endblock %} 29 | 30 | {% block title %}[Ambiente - Blocos]{% endblock %} 31 | 32 | {% block tab-data %} 33 |
34 | 35 | {% include "block-rules/form_shared.html" %} 36 | 37 |
38 | {% endblock %} -------------------------------------------------------------------------------- /CadVlan/Util/forms/customRenderer.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one or more 4 | # contributor license agreements. See the NOTICE file distributed with 5 | # this work for additional information regarding copyright ownership. 6 | # The ASF licenses this file to You under the Apache License, Version 2.0 7 | # (the "License"); you may not use this file except in compliance with 8 | # the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | 18 | 19 | from django.forms.widgets import RadioFieldRenderer 20 | from django.utils.encoding import force_unicode 21 | from django.utils.safestring import mark_safe 22 | 23 | 24 | class RadioCustomRenderer(RadioFieldRenderer): 25 | 26 | def render(self): 27 | """Outputs a