Skip to content

Commit 0bc0650

Browse files
committed
Closes #62, #60, #59, #57, #56, #55, #49
1 parent 4e4aa35 commit 0bc0650

File tree

12 files changed

+249
-135
lines changed

12 files changed

+249
-135
lines changed

app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10-slim
1+
FROM python:3.12-slim
22
WORKDIR /app
33
ENV PATH "$PATH:/app"
44
COPY requirements.txt requirements.txt

app/Dockerfile-init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10-slim
1+
FROM python:3.12-slim
22
RUN pip3 install requests
33
WORKDIR /app
44
COPY init.py .

app/buildah_build.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
export MANIFEST_NAME="vkaci"
44
export MANIFEST_NAME_INIT="vkaci-init"
55
# Set the required variables
6-
export REGISTRY="quay.io"
7-
export USER="datacenter"
6+
export REGISTRY=harbor.cam.ciscolabs.com
7+
export USER=library
8+
#export REGISTRY="quay.io"
9+
#export USER="datacenter"
810
export IMAGE_NAME="vkaci"
911
export IMAGE_NAME_INIT="vkaci-init"
1012
if [ -z "$1" ]
1113
then
12-
export IMAGE_TAG="v1.1.0"
14+
export IMAGE_TAG="v2.1.0"
1315
else
1416
export IMAGE_TAG="$1"
1517
fi

app/graph.py

Lines changed: 104 additions & 39 deletions
Large diffs are not rendered by default.

app/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ prettyprint
44
gunicorn
55
gevent
66
natsort
7-
https://github.com/datacenter/pyaci/archive/master.zip
7+
cisco-pyaci
88
https://github.com/overhangio/py2neo/releases/download/2021.2.3/py2neo-2021.2.3.tar.gz

app/template/assets/cui-2.0.0/css/cui-standard.min.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8243,7 +8243,7 @@ body.cui .dropdown {
82438243
outline: none; }
82448244
body.cui .dropdown .dropdown__menu {
82458245
list-style: none;
8246-
display: inline-flex;
8246+
display: block;
82478247
flex-direction: column;
82488248
opacity: 0;
82498249
background: var(--cui-dropdown-background-color);
@@ -8255,7 +8255,7 @@ body.cui .dropdown {
82558255
position: absolute;
82568256
pointer-events: auto;
82578257
top: calc(100% + 5px);
8258-
height: 0;
8258+
height: 50px;
82598259
width: auto;
82608260
min-width: var(--cui-dropdown-menu-min-width);
82618261
max-height: var(--cui-dropdown-max-height);

app/template/assets/cui-2.0.0/js/vkaci.js

Lines changed: 99 additions & 55 deletions
Large diffs are not rendered by default.

app/template/index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,17 @@
141141
{% if asnPresent %}
142142
<a id="OnlyBgpPeers" onclick="draw_only_bgp_peers()">BGP Peers</a>
143143
{% endif %}
144-
{% if sriov or macvlan %}
144+
{% if sriov or macvlan or bridge %}
145145
<a id="OnlyPrimarylinks" onclick="draw_only_primary_links()">Primary Links</a>
146146
{% if sriov %}
147147
<a id="OnlySriovlinks" onclick="draw_only_sriov_links()">SRIOV Links</a>
148148
{% endif %}
149149
{% if macvlan %}
150150
<a id="OnlyMacvlanlinks" onclick="draw_only_macvlan_links()">MacVlan Links</a>
151151
{% endif %}
152+
{% if bridge %}
153+
<a id="OnlyBridgelinks" onclick="draw_only_bridge_links()">Bridge Links</a>
154+
{% endif %}
152155
{% endif %}
153156
<div class="dropdown__divider"></div>
154157
<a id="All" onclick="draw_all()">View All</a>
@@ -526,7 +529,7 @@ <h5><em></em></h5>
526529
<!-- End Main Content -->
527530

528531
</div>
529-
532+
530533
<script src="./assets/cui-2.0.0/js/styleguide.js"></script>
531534
<script src="./assets/cui-2.0.0/js/neovis.js"></script>
532535
<script src="./assets/cui-2.0.0/js/vkaci-table.js"></script>
@@ -563,8 +566,8 @@ <h5><em></em></h5>
563566
if(!event.inputType) $("#podBttn").click();
564567
});
565568

566-
document.getElementById('input-label-filter').addEventListener('input', function (event) {
567-
if(!event.inputType) label_values();
569+
document.getElementById('input-label-filter').addEventListener('change', function (event) {
570+
label_values();
568571
});
569572

570573
</script>

app/visibility_ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def index():
1919
return render_template('index.html', version=__build__, env=env, pod_names=topology.get_pods(),
2020
node_names=topology.get_nodes(), namespaces=topology.get_namespaces(),
2121
leaf_names=topology.get_leafs(), label_names=topology.get_labels(),
22-
asnPresent=topology.asnPresent, sriov=topology.sriov, macvlan=topology.macvlan)
22+
asnPresent=topology.asnPresent, sriov=topology.sriov, macvlan=topology.macvlan, bridge=topology.bridge)
2323

2424

2525
@app.route('/pod_names')
@@ -70,4 +70,4 @@ def regenerate():
7070
return redirect("/", code=302)
7171

7272
if __name__ == '__main__':
73-
app.run(debug=False, host="0.0.0.0", port=8080)
73+
app.run(debug=False, host="0.0.0.0", port=8089)

helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ type: application
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
1818

19-
version: 1.1.3
19+
version: 1.2.0
2020

2121

2222
# This is the version number of the application being deployed. This version number should be
2323
# incremented each time you make changes to the application. Versions are not expected to
2424
# follow Semantic Versioning. They should reflect the version the application is using.
2525
# It is recommended to use it with quotes.
26-
appVersion: "v2.0.0"
26+
appVersion: "v2.1.0"
2727

2828
maintainers:
2929

helm/templates/clusterrole.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ rules:
1313
resources: ["bgpconfigurations"]
1414
verbs: ["list","get"]
1515
- apiGroups: ["cilium.io"]
16-
resources: ["ciliumbgppeeringpolicies"]
16+
resources: ["ciliumbgpclusterconfigs"]
1717
verbs: ["list","get"]
1818
---
1919
kind: ClusterRoleBinding

0 commit comments

Comments
 (0)