Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simbricks-website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SimBricks
simbricks-website
Commits
dbb9b7f1
Commit
dbb9b7f1
authored
8 months ago
by
Antoine Kaufmann
Browse files
Options
Downloads
Patches
Plain Diff
add syntax highlighting
parent
17849ae4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
_config.yml
+2
-0
2 additions, 0 deletions
_config.yml
_posts/2024-07-10-orchestration-framework.md
+5
-5
5 additions, 5 deletions
_posts/2024-07-10-orchestration-framework.md
_sass/base.scss
+2
-1
2 additions, 1 deletion
_sass/base.scss
_sass/syntax.scss
+61
-0
61 additions, 0 deletions
_sass/syntax.scss
with
70 additions
and
6 deletions
_config.yml
+
2
−
0
View file @
dbb9b7f1
...
...
@@ -35,3 +35,5 @@ kramdown:
# set header offset for markdown parser as we use h1 as page title, so headers
# in the content need to start at h2
header_offset
:
1
input
:
GFM
highlighter
:
rouge
\ No newline at end of file
This diff is collapsed.
Click to expand it.
_posts/2024-07-10-orchestration-framework.md
+
5
−
5
View file @
dbb9b7f1
...
...
@@ -38,7 +38,7 @@ Feel free to explore it for a deeper understanding.
# Create an Experiment
First, let’s start with creating an experiment.
```
```
python
from
simbricks.orchestration.experiments
import
Experiment
from
simbricks.orchestration.nodeconfig
import
(
I40eLinuxNode
,
IdleHost
,
PingClient
)
from
simbricks.orchestration.simulators
import
Gem5Host
,
I40eNIC
,
SwitchNet
...
...
@@ -53,7 +53,7 @@ it plus the software we want to run in the Host. The SimBricks orchestration
framework has predefined classes for simulators and software configurations
(node & app config). Users can easily add new or modified configuration classes
through inheritance.
```
```
python
client_config
=
I40eLinuxNode
()
# boot Linux with i40e NIC driver
client_config
.
ip
=
'
10.0.0.1
'
client_config
.
app
=
PingClient
(
server_ip
=
'
10.0.0.2
'
)
...
...
@@ -65,7 +65,7 @@ e.add_host(client)
# Create & Attach the Client’s NIC
Next, instantiate the NIC simulator and attach it to the host.
```
```
python
client_nic
=
I40eNIC
()
e
.
add_nic
(
client_nic
)
client
.
add_nic
(
client_nic
)
...
...
@@ -73,7 +73,7 @@ client.add_nic(client_nic)
# Repeat for Server Host and its NIC
Then, we repeat the same procedure for instantiating the server host and NIC:
```
```
python
server_config
=
I40eLinuxNode
()
# boot Linux with i40e NIC driver
server_config
.
ip
=
'
10.0.0.2
'
server_config
.
app
=
IdleHost
()
...
...
@@ -88,7 +88,7 @@ server.add_nic(server_nic)
# Connect the NICs to the Network
The last step is to instantiate the network simulator (simple switch here) and
connect the NICs of our hosts to it.
```
```
python
network
=
SwitchNet
()
e
.
add_network
(
network
)
client_nic
.
set_network
(
network
)
...
...
This diff is collapsed.
Click to expand it.
_sass/base.scss
+
2
−
1
View file @
dbb9b7f1
...
...
@@ -23,4 +23,5 @@ $breakpoint: 850px;
@import
'project'
;
@import
'publications'
;
@import
'research'
;
@import
'blog'
;
\ No newline at end of file
@import
'blog'
;
@import
'syntax'
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
_sass/syntax.scss
0 → 100644
+
61
−
0
View file @
dbb9b7f1
.highlight
{
.c
{
color
:
#999988
;
font-style
:
italic
}
/* Comment */
.err
{
color
:
#a61717
;
background-color
:
#e3d2d2
}
/* Error */
.k
{
font-weight
:
bold
}
/* Keyword */
.o
{
font-weight
:
bold
}
/* Operator */
.cm
{
color
:
#999988
;
font-style
:
italic
}
/* Comment.Multiline */
.cp
{
color
:
#999999
;
font-weight
:
bold
}
/* Comment.Preproc */
.c1
{
color
:
#999988
;
font-style
:
italic
}
/* Comment.Single */
.cs
{
color
:
#999999
;
font-weight
:
bold
;
font-style
:
italic
}
/* Comment.Special */
.gd
{
color
:
#000000
;
background-color
:
#ffdddd
}
/* Generic.Deleted */
.gd
.x
{
color
:
#000000
;
background-color
:
#ffaaaa
}
/* Generic.Deleted.Specific */
.ge
{
font-style
:
italic
}
/* Generic.Emph */
.gr
{
color
:
#aa0000
}
/* Generic.Error */
.gh
{
color
:
#999999
}
/* Generic.Heading */
.gi
{
color
:
#000000
;
background-color
:
#ddffdd
}
/* Generic.Inserted */
.gi
.x
{
color
:
#000000
;
background-color
:
#aaffaa
}
/* Generic.Inserted.Specific */
.go
{
color
:
#888888
}
/* Generic.Output */
.gp
{
color
:
#555555
}
/* Generic.Prompt */
.gs
{
font-weight
:
bold
}
/* Generic.Strong */
.gu
{
color
:
#aaaaaa
}
/* Generic.Subheading */
.gt
{
color
:
#aa0000
}
/* Generic.Traceback */
.kc
{
font-weight
:
bold
}
/* Keyword.Constant */
.kd
{
font-weight
:
bold
}
/* Keyword.Declaration */
.kp
{
font-weight
:
bold
}
/* Keyword.Pseudo */
.kr
{
font-weight
:
bold
}
/* Keyword.Reserved */
.kt
{
color
:
#445588
;
font-weight
:
bold
}
/* Keyword.Type */
.m
{
color
:
#009999
}
/* Literal.Number */
.s
{
color
:
#d14
}
/* Literal.String */
.na
{
color
:
#008080
}
/* Name.Attribute */
.nb
{
color
:
#0086B3
}
/* Name.Builtin */
.nc
{
color
:
#445588
;
font-weight
:
bold
}
/* Name.Class */
.no
{
color
:
#008080
}
/* Name.Constant */
.ni
{
color
:
#800080
}
/* Name.Entity */
.ne
{
color
:
#990000
;
font-weight
:
bold
}
/* Name.Exception */
.nf
{
color
:
#990000
;
font-weight
:
bold
}
/* Name.Function */
.nn
{
color
:
#555555
}
/* Name.Namespace */
.nt
{
color
:
#000080
}
/* Name.Tag */
.nv
{
color
:
#008080
}
/* Name.Variable */
.ow
{
font-weight
:
bold
}
/* Operator.Word */
.w
{
color
:
#bbbbbb
}
/* Text.Whitespace */
.mf
{
color
:
#009999
}
/* Literal.Number.Float */
.mh
{
color
:
#009999
}
/* Literal.Number.Hex */
.mi
{
color
:
#009999
}
/* Literal.Number.Integer */
.mo
{
color
:
#009999
}
/* Literal.Number.Oct */
.sb
{
color
:
#d14
}
/* Literal.String.Backtick */
.sc
{
color
:
#d14
}
/* Literal.String.Char */
.sd
{
color
:
#d14
}
/* Literal.String.Doc */
.s2
{
color
:
#d14
}
/* Literal.String.Double */
.se
{
color
:
#d14
}
/* Literal.String.Escape */
.sh
{
color
:
#d14
}
/* Literal.String.Heredoc */
.si
{
color
:
#d14
}
/* Literal.String.Interpol */
.sx
{
color
:
#d14
}
/* Literal.String.Other */
.sr
{
color
:
#009926
}
/* Literal.String.Regex */
.s1
{
color
:
#d14
}
/* Literal.String.Single */
.ss
{
color
:
#990073
}
/* Literal.String.Symbol */
.bp
{
color
:
#999999
}
/* Name.Builtin.Pseudo */
.vc
{
color
:
#008080
}
/* Name.Variable.Class */
.vg
{
color
:
#008080
}
/* Name.Variable.Global */
.vi
{
color
:
#008080
}
/* Name.Variable.Instance */
.il
{
color
:
#009999
}
/* Literal.Number.Integer.Long */
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment