fix(fls): read and write a network card's wireless flag
A notebook that joins a switch's wireless network has its card marked wireless (NetzwerkInterface.setWireless, Betriebssystem.wireless()), next to the wireless cable. The reader did not read it, the writer did not write it, and the Java oracle did not report it, so the Java-against-Java writer test could not see the loss. Found while exporting the editor model: the corpus has 18 wireless cards, one at each wireless cable. The oracle now reports `wireless` per interface; FlsInterface has it; the writer sets it. The synthetic topology has a wireless card; a mutation probe that drops it is caught by Java. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -526,7 +526,7 @@ function topology(fields: Partial<FlsTopology>): FlsTopology {
|
||||
return { versionLine: null, nodes: [], links: [], documentation: [], warnings: [], ...fields };
|
||||
}
|
||||
|
||||
const nic = (ip: string | null, mask: string | null = '255.255.255.0') => ({ ip, mask, mac: undefined, gateway: '', dns: '' });
|
||||
const nic = (ip: string | null, mask: string | null = '255.255.255.0') => ({ ip, mask, mac: undefined, gateway: '', dns: '', wireless: false });
|
||||
|
||||
describe('importProject rules', () => {
|
||||
it('labels a gateway wan0, lan0, gw2 and gives a rejected address the default', () => {
|
||||
@@ -857,7 +857,7 @@ describe('importProject rules', () => {
|
||||
});
|
||||
const host = (dns: string, recursive: boolean) =>
|
||||
flsNode('Rechner', {
|
||||
interfaces: [{ ip: '10.0.0.1', mask: '255.255.255.0', mac: undefined, gateway: '', dns }],
|
||||
interfaces: [{ ip: '10.0.0.1', mask: '255.255.255.0', mac: undefined, gateway: '', dns, wireless: false }],
|
||||
system: { applications: [application('filius.software.dns.DNSServer', { isActive: true, port: 53, recursiveResolutionEnabled: recursive })] },
|
||||
});
|
||||
const project = importProject(
|
||||
|
||||
Reference in New Issue
Block a user