pmcf
Version:
Poor mans configuration management
38 lines (31 loc) • 876 B
JavaScript
import { addType } from "../types.mjs";
import {
NetworkInterface,
NetworkInterfaceTypeDefinition
} from "./network-interface.mjs";
export const EthernetNetworkInterfaceTypeDefinition = {
name: "ethernet",
specializationOf: NetworkInterfaceTypeDefinition,
owners: NetworkInterfaceTypeDefinition.owners,
extends: NetworkInterfaceTypeDefinition,
priority: 0.1,
properties: {
arpbridge: { type: "network_interface", collection: true, writeable: true }
}
};
export class EthernetNetworkInterface extends NetworkInterface {
arpbridge;
static {
addType(this);
}
static get typeDefinition() {
return EthernetNetworkInterfaceTypeDefinition;
}
constructor(owner, data) {
super(owner, data);
this.read(data, EthernetNetworkInterfaceTypeDefinition);
}
get kind() {
return EthernetNetworkInterfaceTypeDefinition.name;
}
}