#2676 - update configs to use new nmne schema; fix test and warnings
This commit is contained in:
@@ -129,6 +129,10 @@ agents:
|
|||||||
|
|
||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
|
nmne_config:
|
||||||
|
capture_nmne: true
|
||||||
|
nmne_capture_keywords:
|
||||||
|
- DELETE
|
||||||
nodes:
|
nodes:
|
||||||
- hostname: client
|
- hostname: client
|
||||||
type: computer
|
type: computer
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from enum import Enum
|
|||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
from pydantic import BaseModel, field_validator, validate_call
|
from pydantic import BaseModel, field_validator, validate_call
|
||||||
from pydantic_core.core_schema import FieldValidationInfo
|
from pydantic_core.core_schema import ValidationInfo
|
||||||
|
|
||||||
from primaite import getLogger
|
from primaite import getLogger
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ class ICMPPacket(BaseModel):
|
|||||||
|
|
||||||
@field_validator("icmp_code") # noqa
|
@field_validator("icmp_code") # noqa
|
||||||
@classmethod
|
@classmethod
|
||||||
def _icmp_type_must_have_icmp_code(cls, v: int, info: FieldValidationInfo) -> int:
|
def _icmp_type_must_have_icmp_code(cls, v: int, info: ValidationInfo) -> int:
|
||||||
"""Validates the icmp_type and icmp_code."""
|
"""Validates the icmp_type and icmp_code."""
|
||||||
icmp_type = info.data["icmp_type"]
|
icmp_type = info.data["icmp_type"]
|
||||||
if get_icmp_type_code_description(icmp_type, v):
|
if get_icmp_type_code_description(icmp_type, v):
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ from primaite.simulator.system.services.service import Service
|
|||||||
from primaite.simulator.system.services.web_server.web_server import WebServer
|
from primaite.simulator.system.services.web_server.web_server import WebServer
|
||||||
from tests import TEST_ASSETS_ROOT
|
from tests import TEST_ASSETS_ROOT
|
||||||
|
|
||||||
rayinit(local_mode=True)
|
rayinit()
|
||||||
ACTION_SPACE_NODE_VALUES = 1
|
ACTION_SPACE_NODE_VALUES = 1
|
||||||
ACTION_SPACE_NODE_ACTION_VALUES = 1
|
ACTION_SPACE_NODE_ACTION_VALUES = 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user