Skip to content

Commit

Permalink
Reorganize runtime files
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanel committed May 2, 2024
1 parent d351665 commit 140a36a
Show file tree
Hide file tree
Showing 34 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "(d) runtime",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/ratemon/runtime/ratemon_runtime.py",
"program": "${workspaceFolder}/ratemon/runtime/python/ratemon_runtime.py",
"console": "integratedTerminal",
"args": [
"-h"
Expand All @@ -26,7 +26,7 @@
"name": "(r) runtime",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/ratemon/runtime/ratemon_runtime.py",
"program": "${workspaceFolder}/ratemon/runtime/python/ratemon_runtime.py",
"console": "integratedTerminal",
"args": [
"--model=HistGbdtSklearn",
Expand Down Expand Up @@ -55,7 +55,7 @@
"name": "(r) runtime, schedule",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/ratemon/runtime/ratemon_runtime.py",
"program": "${workspaceFolder}/ratemon/runtime/python/ratemon_runtime.py",
"console": "integratedTerminal",
"args": [
"--model=HistGbdtSklearn",
Expand Down Expand Up @@ -85,7 +85,7 @@
"args": [
"-o",
"/tmp/tmp.prof",
"${workspaceFolder}/ratemon/runtime/ratemon_runtime.py",
"${workspaceFolder}/ratemon/runtime/python/ratemon_runtime.py",
"--model=HistGbdtSklearn",
"--model-file=${workspaceFolder}/test/HistGbdtSklearn_fewer_features.pickle",
"--interface=ens3",
Expand Down
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import logging

from ratemon.model import defaults, models, features, utils
from ratemon.runtime import reaction_strategy
from ratemon.runtime.python import reaction_strategy


class Policy(IntEnum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

from ratemon.model import data, defaults, features, gen_features, models, utils
from ratemon.model.defaults import Class
from ratemon.runtime import ebpf, flow_utils, policies
from ratemon.runtime.policies import Policy
from ratemon.runtime.python import ebpf, flow_utils, policies
from ratemon.runtime.python.policies import Policy


def run(args, que, flags, done):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
import pcapy

from ratemon.model import features, utils
from ratemon.runtime import (
from ratemon.runtime.python import (
flow_utils,
mitigation_strategy,
policies,
policy_engine,
reaction_strategy,
)
from ratemon.runtime.policies import Policy
from ratemon.runtime.mitigation_strategy import MitigationStrategy
from ratemon.runtime.reaction_strategy import ReactionStrategy
from ratemon.runtime.python.policies import Policy
from ratemon.runtime.python.mitigation_strategy import MitigationStrategy
from ratemon.runtime.python.reaction_strategy import ReactionStrategy


LOCALHOST = utils.ip_str_to_int("127.0.0.1")
Expand Down
File renamed without changes.

0 comments on commit 140a36a

Please sign in to comment.