Skip to content

Commit 1fe3baa

Browse files
committed
manip work
1 parent c10090b commit 1fe3baa

File tree

6 files changed

+83
-51
lines changed

6 files changed

+83
-51
lines changed

labapp/app/app.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ def path():
155155
udf=app.config['UDF']
156156
)
157157

158-
@app.route('/header')
158+
@app.route('/manipulation')
159159
def header():
160160
"""header page"""
161161
ns = eph_ns()
162-
html = render_md("markdown/header.md")
162+
html = render_md("markdown/manipulation.md")
163163
return render_template('exercise_standard.html',
164164
title="MCN Practical: Headers",
165165
content=html,
@@ -235,4 +235,4 @@ def route2():
235235

236236

237237
if __name__ == '__main__':
238-
app.run(host='0.0.0.0', port=5001, debug=False)
238+
app.run(host='127.0.0.1', port=5001, debug=False)

labapp/app/markdown/header.md

-44
This file was deleted.

labapp/app/markdown/manipulation.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<div href="/" class="d-flex align-items-center pb-3 mb-3 link-dark text-decoration-none">
2+
<img src="/static/manip.png" width="300px" height="auto" alt="intro">
3+
</div>
4+
5+
# **Request Manipulation**
6+
7+
<div href="/" class="d-flex align-items-center pb-3 mb-3 link-dark text-decoration-none border-bottom"></div>
8+
9+
BLURB on why we need HTTP manipulation
10+
11+
<div style="height:25px"></div>
12+
13+
### **Exercise 1: Path Rewrite**
14+
15+
BLURB HERE
16+
17+
<div style="height:25px"></div>
18+
19+
#### **Test Criteria**
20+
21+
```http
22+
GET https://eph-ns.mcn-lab.f5demos.com/ HTTP/1.1
23+
Host: eph-ns.mcn-lab.f5demos.com
24+
25+
{
26+
"env": "azure",
27+
...
28+
}
29+
```
30+
31+
<div class="left-aligned-button-container">
32+
<button id="requestBtn1" class="btn btn-primary">Test Load Balancer</button>
33+
</div>
34+
<div id="result1" class="mt-3"></div>
35+
<script>
36+
document.getElementById('requestBtn1').addEventListener('click', () => {
37+
makeHttpRequest('requestBtn1', '/_manip1', 'result');
38+
});
39+
</script>
40+
41+
<div style="height:25px"></div>
42+
43+
### **Exercise 2: Header Shenanigans**
44+
45+
BLURB
46+
47+
<div style="height:25px"></div>
48+
49+
#### **Test Criteria**
50+
51+
```http
52+
GET https://eph-ns.mcn-lab.f5demos.com/ HTTP/1.1
53+
Host: eph-ns.mcn-lab.f5demos.com
54+
55+
{
56+
"env": "azure",
57+
...
58+
}
59+
```
60+
61+
<div class="left-aligned-button-container">
62+
<button id="requestBtn2" class="btn btn-primary">Test Load Balancer</button>
63+
</div>
64+
<div id="result2" class="mt-3"></div>
65+
<script>
66+
document.getElementById('requestBtn2').addEventListener('click', () => {
67+
makeHttpRequest('requestBtn2', '/_manip2', 'result2');
68+
});
69+
</script>
70+
71+
<div style="height:25px" class="d-flex align-items-center pb-3 mb-3 link-dark text-decoration-none border-bottom"></div>
72+
73+
Nice 🚀! If you've completed all the exercises so far, you have a good foundation for how App Connect addresses common L7 MCN scenarios.
74+
In subsequent labs, we'll explore security and observabilty concepts that build on MCN functionality.
75+
Head over to the <a href="/vnet" class="alert-link">Network Connect</a> exercise.
76+

labapp/app/markdown/setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<div href="/" class="d-flex align-items-center pb-3 mb-3 link-dark text-decoration-none border-bottom"></div>
88

9-
Log in to the [lab tenant](https://f5-xc-lab-mcn.console.ves.volterra.io/) and open any namespaced tile (Multi-Cloud App Connect, Distributed Apps, etc.). Your ephemeral NS name is a randomly generated concatenation of _adjective_-_animal_ in the navigation bar towards the top.
9+
Log in to the [lab tenant](https://f5-xc-lab-mcn.console.ves.volterra.io/) and open any namespaced tile (Multi-Cloud App Connect, Distributed Apps, etc.). Your ephemeral namespace is a randomly generated concatenation of _adjective_-_animal_ in the navigation bar towards the top.
1010

1111
<img src="/static/eph-ns.png" width="500px" height="auto" alt="eph-ns"/>
1212

File renamed without changes.

labapp/app/templates/base.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<button class="btn btn-toggle align-items-center rounded collapsed" data-bs-toggle="collapse" data-bs-target="#home-collapse" aria-expanded="false">
105105
Home
106106
</button>
107-
<div class="collapse" id="home-collapse">
107+
<div class="collapse show" id="home-collapse">
108108
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
109109
<li><a href="/" class="link-dark rounded">Overview</a></li>
110110
<li><a href="/setup" class="link-dark rounded">Setup</a></li>
@@ -120,7 +120,7 @@
120120
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
121121
<li><a href="/lb" class="link-dark rounded">Load Balancing</a></li>
122122
<li><a href="/route" class="link-dark rounded">HTTP Routing</a></li>
123-
<li><a href="/header" class="link-dark rounded">Header Manipulation</a></li>
123+
<li><a href="/manipulation" class="link-dark rounded">Request Manipulation</a></li>
124124
</ul>
125125
</div>
126126
</li>
@@ -142,7 +142,7 @@
142142
</button>
143143
<div class="collapse" id="status-collapse">
144144
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
145-
<li><a href="#" class="link-dark rounded">CE State</a></li>
145+
<li><a href="#" class="link-dark rounded">Reference</a></li>
146146
<li><a href="#" class="link-dark rounded">Scoreboard</a></li>
147147
</ul>
148148
</div>

0 commit comments

Comments
 (0)