pmcf 6.46.8 → 6.46.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/network.mjs +1 -2
- package/src/subnet.mjs +2 -2
package/package.json
CHANGED
package/src/network.mjs
CHANGED
|
@@ -4,8 +4,7 @@ import { Owner } from "./owner.mjs";
|
|
|
4
4
|
import { networkAttributes, bridges_attribute } from "./common-attributes.mjs";
|
|
5
5
|
import { Subnet } from "./subnet.mjs";
|
|
6
6
|
|
|
7
|
-
export class
|
|
8
|
-
static name = "network";
|
|
7
|
+
export class network extends Owner {
|
|
9
8
|
static owners = [Owner, "root"];
|
|
10
9
|
static attributes = {
|
|
11
10
|
...networkAttributes,
|
package/src/subnet.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "ip-utilties";
|
|
7
7
|
import { string_attribute, name_attribute, integer_attribute } from "pacc";
|
|
8
8
|
import { networks_attribute } from "./common-attributes.mjs";
|
|
9
|
-
import { addType,
|
|
9
|
+
import { addType, network, core } from "pmcf";
|
|
10
10
|
|
|
11
11
|
export class Subnet extends core {
|
|
12
12
|
static name = "subnet";
|
|
@@ -47,7 +47,7 @@ export class Subnet extends core {
|
|
|
47
47
|
|
|
48
48
|
set owner(value) {
|
|
49
49
|
super.owner = value;
|
|
50
|
-
if (value instanceof
|
|
50
|
+
if (value instanceof network) {
|
|
51
51
|
this.networks.add(value);
|
|
52
52
|
}
|
|
53
53
|
}
|