Configuration File¶
Ella is configured using a yaml formatted file.
Start Ella core with the --config flag to specify the path to the configuration file.
Parameters¶
logging(object): The logging configuration.system(object): The system logging configuration.level(string): The log level. Options aretrace,debug,info,warn,error, andfatal.output(string): The output for the logs. Options arestdoutandfile.path(string): The path to the log file. This is only used if the output is set tofile.
audit(object): The audit logging configuration.output(string): The output for the logs. Options arestdoutandfile.path(string): The path to the log file. This is only used if the output is set tofile.
db(object): The database configuration.path(string): The path to the database file.
interfaces(object): The network interfaces configuration.n2(object): The configuration for the n2 interface. This interface should be connected to the radios.name(string): The name of the network interface.port(int): The port to listen on.
n3(object): The configuration for the n3 interface. This interface should be connected to the radios.name(string): The name of the network interface.
n6(object): The configuration for the n6 interface. This interface should be connected to the internet.name(string): The name of the network interface.
api(object): The configuration for the api interface.name(string): The name of the network interface.port(int): The port to listen on.tls(object): The TLS configuration (optional).cert(string): The path to the TLS certificate file (optional).key(string): The path to the TLS key file (optional).
xdp(object): The XDP configuration.attach-mode(string): The XDP attach mode. Options arenativeandgeneric.nativeis the most performant option and only works on supported drivers.
telemetry(object): The telemetry configuration.enabled(boolean): Whether telemetry is enabled or not. Default isfalse.otlp-endpoint(string): The endpoint for the OpenTelemetry Protocol (OTLP) collector.
Note
When you use the Ella Core snap, the configuration file is located at /var/snap/ella-core/common/config.yaml. After modifying the configuration file, restart Ella Core with sudo snap restart ella-core.cored for the changes to take effect.
Example¶
logging:
system:
level: "info"
output: "stdout"
audit:
output: "file"
path: "/var/log/ella_system.log"
db:
path: "core.db"
interfaces:
n2:
name: "ens4"
port: 38412
n3:
name: "ens5"
n6:
name: "ens3"
api:
name: "ens3"
port: 5002
tls:
cert: "/etc/ella/cert.pem"
key: "/etc/ella/key.pem"
xdp:
attach-mode: "native"
telemetry:
enabled: true
otlp-endpoint: "localhost:4317"