@pulumi/juniper-mist 0.1.1 → 0.1.3

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.
Files changed (44) hide show
  1. package/device/base.d.ts +1 -1
  2. package/device/gateway.d.ts +3 -1
  3. package/device/gateway.js +2 -0
  4. package/device/gateway.js.map +1 -1
  5. package/device/switch.d.ts +16 -9
  6. package/device/switch.js +3 -1
  7. package/device/switch.js.map +1 -1
  8. package/org/deviceprofileGateway.d.ts +1 -1
  9. package/org/evpnTopology.d.ts +162 -0
  10. package/org/evpnTopology.js +133 -0
  11. package/org/evpnTopology.js.map +1 -0
  12. package/org/gatewaytemplate.d.ts +1 -1
  13. package/org/index.d.ts +3 -0
  14. package/org/index.js +7 -2
  15. package/org/index.js.map +1 -1
  16. package/org/inventory.d.ts +9 -0
  17. package/org/inventory.js.map +1 -1
  18. package/org/networktemplate.d.ts +15 -6
  19. package/org/networktemplate.js.map +1 -1
  20. package/org/setting.d.ts +1 -2
  21. package/org/setting.js +1 -1
  22. package/org/setting.js.map +1 -1
  23. package/org/wlan.d.ts +30 -0
  24. package/org/wlan.js +4 -0
  25. package/org/wlan.js.map +1 -1
  26. package/package.json +2 -2
  27. package/site/base.d.ts +1 -1
  28. package/site/evpnTopology.d.ts +164 -0
  29. package/site/evpnTopology.js +135 -0
  30. package/site/evpnTopology.js.map +1 -0
  31. package/site/index.d.ts +3 -0
  32. package/site/index.js +6 -1
  33. package/site/index.js.map +1 -1
  34. package/site/networktemplate.d.ts +31 -9
  35. package/site/networktemplate.js +6 -2
  36. package/site/networktemplate.js.map +1 -1
  37. package/site/setting.d.ts +4 -12
  38. package/site/setting.js +4 -2
  39. package/site/setting.js.map +1 -1
  40. package/site/wlan.d.ts +30 -0
  41. package/site/wlan.js +4 -0
  42. package/site/wlan.js.map +1 -1
  43. package/types/input.d.ts +553 -90
  44. package/types/output.d.ts +592 -129
@@ -0,0 +1,164 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * This resource manages the Site Evpn Topologys.
6
+ * EVPN allows an alternative but more efficient LAN architecture utilizing VxLAN / MP-BGP to separate the control plane (MAC / IP Learning) from the forwarding plane.
7
+ *
8
+ * > To create or manage your EVPN Topology with the Mist Provider, please refer to the `How To - EVPN Topology` Guide.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as mist from "@pulumi/mist";
15
+ *
16
+ * const evpnOne = new mist.index.SiteSiteEvpnTopology("evpn_one", {
17
+ * siteId: terraformTest.id,
18
+ * name: "evpn_one",
19
+ * evpnOptions: {
20
+ * routedAt: "core",
21
+ * overlay: {
22
+ * as: 65000,
23
+ * },
24
+ * coreAsBorder: true,
25
+ * autoLoopbackSubnet: "172.16.192.0/24",
26
+ * autoLoopbackSubnet6: "fd33:ab00:2::/64",
27
+ * perVlanVgaV4Mac: false,
28
+ * underlay: {
29
+ * asBase: 65001,
30
+ * useIpv6: false,
31
+ * subnet: "10.255.240.0/20",
32
+ * },
33
+ * autoRouterIdSubnet: "172.16.254.0/23",
34
+ * },
35
+ * switches: [
36
+ * {
37
+ * mac: "020004000001",
38
+ * role: "core",
39
+ * },
40
+ * {
41
+ * mac: "02000400002",
42
+ * role: "core",
43
+ * },
44
+ * {
45
+ * mac: "02000400003",
46
+ * role: "distribution",
47
+ * },
48
+ * {
49
+ * mac: "02000400004",
50
+ * role: "distribution",
51
+ * },
52
+ * {
53
+ * mac: "02000400005",
54
+ * role: "access",
55
+ * },
56
+ * {
57
+ * mac: "02000400006",
58
+ * role: "access",
59
+ * },
60
+ * ],
61
+ * });
62
+ * ```
63
+ *
64
+ * ## Import
65
+ *
66
+ * Using `pulumi import`, import `mist_site_evpn_topology` with:
67
+ *
68
+ * EVPN Topology can be imported by specifying the site_id and the evpn_topology_id
69
+ *
70
+ * ```sh
71
+ * $ pulumi import junipermist:site/evpnTopology:EvpnTopology evpn_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
72
+ * ```
73
+ */
74
+ export declare class EvpnTopology extends pulumi.CustomResource {
75
+ /**
76
+ * Get an existing EvpnTopology resource's state with the given name, ID, and optional extra
77
+ * properties used to qualify the lookup.
78
+ *
79
+ * @param name The _unique_ name of the resulting resource.
80
+ * @param id The _unique_ provider ID of the resource to lookup.
81
+ * @param state Any extra arguments used during the lookup.
82
+ * @param opts Optional settings to control the behavior of the CustomResource.
83
+ */
84
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EvpnTopologyState, opts?: pulumi.CustomResourceOptions): EvpnTopology;
85
+ /**
86
+ * Returns true if the given object is an instance of EvpnTopology. This is designed to work even
87
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
88
+ */
89
+ static isInstance(obj: any): obj is EvpnTopology;
90
+ /**
91
+ * EVPN Options
92
+ */
93
+ readonly evpnOptions: pulumi.Output<outputs.site.EvpnTopologyEvpnOptions | undefined>;
94
+ readonly name: pulumi.Output<string>;
95
+ readonly orgId: pulumi.Output<string>;
96
+ /**
97
+ * Property key is the pod number
98
+ */
99
+ readonly podNames: pulumi.Output<{
100
+ [key: string]: string;
101
+ }>;
102
+ readonly siteId: pulumi.Output<string>;
103
+ /**
104
+ * Property key can be the switch MAC Address
105
+ */
106
+ readonly switches: pulumi.Output<{
107
+ [key: string]: outputs.site.EvpnTopologySwitches;
108
+ }>;
109
+ /**
110
+ * Create a EvpnTopology resource with the given unique name, arguments, and options.
111
+ *
112
+ * @param name The _unique_ name of the resource.
113
+ * @param args The arguments to use to populate this resource's properties.
114
+ * @param opts A bag of options that control this resource's behavior.
115
+ */
116
+ constructor(name: string, args: EvpnTopologyArgs, opts?: pulumi.CustomResourceOptions);
117
+ }
118
+ /**
119
+ * Input properties used for looking up and filtering EvpnTopology resources.
120
+ */
121
+ export interface EvpnTopologyState {
122
+ /**
123
+ * EVPN Options
124
+ */
125
+ evpnOptions?: pulumi.Input<inputs.site.EvpnTopologyEvpnOptions>;
126
+ name?: pulumi.Input<string>;
127
+ orgId?: pulumi.Input<string>;
128
+ /**
129
+ * Property key is the pod number
130
+ */
131
+ podNames?: pulumi.Input<{
132
+ [key: string]: pulumi.Input<string>;
133
+ }>;
134
+ siteId?: pulumi.Input<string>;
135
+ /**
136
+ * Property key can be the switch MAC Address
137
+ */
138
+ switches?: pulumi.Input<{
139
+ [key: string]: pulumi.Input<inputs.site.EvpnTopologySwitches>;
140
+ }>;
141
+ }
142
+ /**
143
+ * The set of arguments for constructing a EvpnTopology resource.
144
+ */
145
+ export interface EvpnTopologyArgs {
146
+ /**
147
+ * EVPN Options
148
+ */
149
+ evpnOptions?: pulumi.Input<inputs.site.EvpnTopologyEvpnOptions>;
150
+ name?: pulumi.Input<string>;
151
+ /**
152
+ * Property key is the pod number
153
+ */
154
+ podNames?: pulumi.Input<{
155
+ [key: string]: pulumi.Input<string>;
156
+ }>;
157
+ siteId: pulumi.Input<string>;
158
+ /**
159
+ * Property key can be the switch MAC Address
160
+ */
161
+ switches: pulumi.Input<{
162
+ [key: string]: pulumi.Input<inputs.site.EvpnTopologySwitches>;
163
+ }>;
164
+ }
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.EvpnTopology = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * This resource manages the Site Evpn Topologys.
10
+ * EVPN allows an alternative but more efficient LAN architecture utilizing VxLAN / MP-BGP to separate the control plane (MAC / IP Learning) from the forwarding plane.
11
+ *
12
+ * > To create or manage your EVPN Topology with the Mist Provider, please refer to the `How To - EVPN Topology` Guide.
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as mist from "@pulumi/mist";
19
+ *
20
+ * const evpnOne = new mist.index.SiteSiteEvpnTopology("evpn_one", {
21
+ * siteId: terraformTest.id,
22
+ * name: "evpn_one",
23
+ * evpnOptions: {
24
+ * routedAt: "core",
25
+ * overlay: {
26
+ * as: 65000,
27
+ * },
28
+ * coreAsBorder: true,
29
+ * autoLoopbackSubnet: "172.16.192.0/24",
30
+ * autoLoopbackSubnet6: "fd33:ab00:2::/64",
31
+ * perVlanVgaV4Mac: false,
32
+ * underlay: {
33
+ * asBase: 65001,
34
+ * useIpv6: false,
35
+ * subnet: "10.255.240.0/20",
36
+ * },
37
+ * autoRouterIdSubnet: "172.16.254.0/23",
38
+ * },
39
+ * switches: [
40
+ * {
41
+ * mac: "020004000001",
42
+ * role: "core",
43
+ * },
44
+ * {
45
+ * mac: "02000400002",
46
+ * role: "core",
47
+ * },
48
+ * {
49
+ * mac: "02000400003",
50
+ * role: "distribution",
51
+ * },
52
+ * {
53
+ * mac: "02000400004",
54
+ * role: "distribution",
55
+ * },
56
+ * {
57
+ * mac: "02000400005",
58
+ * role: "access",
59
+ * },
60
+ * {
61
+ * mac: "02000400006",
62
+ * role: "access",
63
+ * },
64
+ * ],
65
+ * });
66
+ * ```
67
+ *
68
+ * ## Import
69
+ *
70
+ * Using `pulumi import`, import `mist_site_evpn_topology` with:
71
+ *
72
+ * EVPN Topology can be imported by specifying the site_id and the evpn_topology_id
73
+ *
74
+ * ```sh
75
+ * $ pulumi import junipermist:site/evpnTopology:EvpnTopology evpn_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
76
+ * ```
77
+ */
78
+ class EvpnTopology extends pulumi.CustomResource {
79
+ /**
80
+ * Get an existing EvpnTopology resource's state with the given name, ID, and optional extra
81
+ * properties used to qualify the lookup.
82
+ *
83
+ * @param name The _unique_ name of the resulting resource.
84
+ * @param id The _unique_ provider ID of the resource to lookup.
85
+ * @param state Any extra arguments used during the lookup.
86
+ * @param opts Optional settings to control the behavior of the CustomResource.
87
+ */
88
+ static get(name, id, state, opts) {
89
+ return new EvpnTopology(name, state, Object.assign(Object.assign({}, opts), { id: id }));
90
+ }
91
+ /**
92
+ * Returns true if the given object is an instance of EvpnTopology. This is designed to work even
93
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
94
+ */
95
+ static isInstance(obj) {
96
+ if (obj === undefined || obj === null) {
97
+ return false;
98
+ }
99
+ return obj['__pulumiType'] === EvpnTopology.__pulumiType;
100
+ }
101
+ constructor(name, argsOrState, opts) {
102
+ let resourceInputs = {};
103
+ opts = opts || {};
104
+ if (opts.id) {
105
+ const state = argsOrState;
106
+ resourceInputs["evpnOptions"] = state ? state.evpnOptions : undefined;
107
+ resourceInputs["name"] = state ? state.name : undefined;
108
+ resourceInputs["orgId"] = state ? state.orgId : undefined;
109
+ resourceInputs["podNames"] = state ? state.podNames : undefined;
110
+ resourceInputs["siteId"] = state ? state.siteId : undefined;
111
+ resourceInputs["switches"] = state ? state.switches : undefined;
112
+ }
113
+ else {
114
+ const args = argsOrState;
115
+ if ((!args || args.siteId === undefined) && !opts.urn) {
116
+ throw new Error("Missing required property 'siteId'");
117
+ }
118
+ if ((!args || args.switches === undefined) && !opts.urn) {
119
+ throw new Error("Missing required property 'switches'");
120
+ }
121
+ resourceInputs["evpnOptions"] = args ? args.evpnOptions : undefined;
122
+ resourceInputs["name"] = args ? args.name : undefined;
123
+ resourceInputs["podNames"] = args ? args.podNames : undefined;
124
+ resourceInputs["siteId"] = args ? args.siteId : undefined;
125
+ resourceInputs["switches"] = args ? args.switches : undefined;
126
+ resourceInputs["orgId"] = undefined /*out*/;
127
+ }
128
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
129
+ super(EvpnTopology.__pulumiType, name, resourceInputs, opts);
130
+ }
131
+ }
132
+ exports.EvpnTopology = EvpnTopology;
133
+ /** @internal */
134
+ EvpnTopology.__pulumiType = 'junipermist:site/evpnTopology:EvpnTopology';
135
+ //# sourceMappingURL=evpnTopology.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evpnTopology.js","sourceRoot":"","sources":["../../site/evpnTopology.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IA0BD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,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,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAhFL,oCAiFC;AAnEG,gBAAgB;AACO,yBAAY,GAAG,4CAA4C,CAAC"}
package/site/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  export { BaseArgs, BaseState } from "./base";
2
2
  export type Base = import("./base").Base;
3
3
  export declare const Base: typeof import("./base").Base;
4
+ export { EvpnTopologyArgs, EvpnTopologyState } from "./evpnTopology";
5
+ export type EvpnTopology = import("./evpnTopology").EvpnTopology;
6
+ export declare const EvpnTopology: typeof import("./evpnTopology").EvpnTopology;
4
7
  export { GetPsksArgs, GetPsksResult, GetPsksOutputArgs } from "./getPsks";
5
8
  export declare const getPsks: typeof import("./getPsks").getPsks;
6
9
  export declare const getPsksOutput: typeof import("./getPsks").getPsksOutput;
package/site/index.js CHANGED
@@ -2,11 +2,13 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Wxtag = exports.Wxrule = exports.WlanPortalTemplate = exports.WlanPortalImage = exports.Wlan = exports.Webhook = exports.Setting = exports.Psk = exports.Networktemplate = exports.getWebhooksOutput = exports.getWebhooks = exports.getPsksOutput = exports.getPsks = exports.Base = void 0;
5
+ exports.Wxtag = exports.Wxrule = exports.WlanPortalTemplate = exports.WlanPortalImage = exports.Wlan = exports.Webhook = exports.Setting = exports.Psk = exports.Networktemplate = exports.getWebhooksOutput = exports.getWebhooks = exports.getPsksOutput = exports.getPsks = exports.EvpnTopology = exports.Base = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.Base = null;
9
9
  utilities.lazyLoad(exports, ["Base"], () => require("./base"));
10
+ exports.EvpnTopology = null;
11
+ utilities.lazyLoad(exports, ["EvpnTopology"], () => require("./evpnTopology"));
10
12
  exports.getPsks = null;
11
13
  exports.getPsksOutput = null;
12
14
  utilities.lazyLoad(exports, ["getPsks", "getPsksOutput"], () => require("./getPsks"));
@@ -37,6 +39,8 @@ const _module = {
37
39
  switch (type) {
38
40
  case "junipermist:site/base:base":
39
41
  return new exports.Base(name, undefined, { urn });
42
+ case "junipermist:site/evpnTopology:EvpnTopology":
43
+ return new exports.EvpnTopology(name, undefined, { urn });
40
44
  case "junipermist:site/networktemplate:Networktemplate":
41
45
  return new exports.Networktemplate(name, undefined, { urn });
42
46
  case "junipermist:site/psk:Psk":
@@ -61,6 +65,7 @@ const _module = {
61
65
  },
62
66
  };
63
67
  pulumi.runtime.registerResourceModule("junipermist", "site/base", _module);
68
+ pulumi.runtime.registerResourceModule("junipermist", "site/evpnTopology", _module);
64
69
  pulumi.runtime.registerResourceModule("junipermist", "site/networktemplate", _module);
65
70
  pulumi.runtime.registerResourceModule("junipermist", "site/psk", _module);
66
71
  pulumi.runtime.registerResourceModule("junipermist", "site/setting", _module);
package/site/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../site/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,IAAI,GAAiC,IAAW,CAAC;AAC9D,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAGlD,QAAA,OAAO,GA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E,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;AAC5E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,aAAa,EAAE,YAAY,EAAE,OAAO,CAAC,CAAA"}
@@ -5,6 +5,10 @@ import * as outputs from "../types/output";
5
5
  * This resource manages the Site Network configuration (Switch configuration).
6
6
  * The Site Network template can be used to override the Org Network template assign to the site, or to configure common switch settings accross the site without having to create an Org Network template.
7
7
  *
8
+ * > When using the Mist APIs, all the switch settings defined at the site level are stored under the site settings with all the rest of the site configuration (`/api/v1/sites/{site_id}/setting` Mist API Endpoint). To simplify this resource, the `junipermist.site.Networktemplate` resource has been created to centralize all the site level switches related settings.
9
+ *
10
+ * !> Only ONE `junipermist.site.Networktemplate` resource can be configured per site. If multiple ones are configured, only the last one defined we be succesfully deployed to Mist
11
+ *
8
12
  * ## Import
9
13
  *
10
14
  * Using `pulumi import`, import `mist_site_networktemplate` with:
@@ -39,10 +43,14 @@ export declare class Networktemplate extends pulumi.CustomResource {
39
43
  [key: string]: outputs.site.NetworktemplateAclTags;
40
44
  } | undefined>;
41
45
  /**
42
- * additional CLI commands to append to the generated Junos config **Note**: no check is done
46
+ * additional CLI commands to append to the generated Junos config. **Note**: no check is done
43
47
  */
44
48
  readonly additionalConfigCmds: pulumi.Output<string[] | undefined>;
45
49
  readonly dhcpSnooping: pulumi.Output<outputs.site.NetworktemplateDhcpSnooping | undefined>;
50
+ /**
51
+ * if some system-default port usages are not desired - namely, ap / iot / uplink
52
+ */
53
+ readonly disabledSystemDefinedPortUsages: pulumi.Output<string[] | undefined>;
46
54
  /**
47
55
  * Global dns settings. To keep compatibility, dns settings in `ipConfig` and `oobIpConfig` will overwrite this setting
48
56
  */
@@ -88,6 +96,9 @@ export declare class Networktemplate extends pulumi.CustomResource {
88
96
  readonly portMirroring: pulumi.Output<{
89
97
  [key: string]: outputs.site.NetworktemplatePortMirroring;
90
98
  } | undefined>;
99
+ /**
100
+ * Property key is the port usage name. Defines the profiles of port configuration configured on the switch
101
+ */
91
102
  readonly portUsages: pulumi.Output<{
92
103
  [key: string]: outputs.site.NetworktemplatePortUsages;
93
104
  } | undefined>;
@@ -106,14 +117,13 @@ export declare class Networktemplate extends pulumi.CustomResource {
106
117
  readonly siteId: pulumi.Output<string>;
107
118
  readonly snmpConfig: pulumi.Output<outputs.site.NetworktemplateSnmpConfig | undefined>;
108
119
  /**
109
- * Switch template
120
+ * defines custom switch configuration based on different criterias
110
121
  */
111
122
  readonly switchMatching: pulumi.Output<outputs.site.NetworktemplateSwitchMatching | undefined>;
112
123
  /**
113
124
  * Switch settings
114
125
  */
115
126
  readonly switchMgmt: pulumi.Output<outputs.site.NetworktemplateSwitchMgmt | undefined>;
116
- readonly uplinkPortConfig: pulumi.Output<outputs.site.NetworktemplateUplinkPortConfig | undefined>;
117
127
  readonly vrfConfig: pulumi.Output<outputs.site.NetworktemplateVrfConfig | undefined>;
118
128
  /**
119
129
  * Property key is the network name
@@ -142,10 +152,14 @@ export interface NetworktemplateState {
142
152
  [key: string]: pulumi.Input<inputs.site.NetworktemplateAclTags>;
143
153
  }>;
144
154
  /**
145
- * additional CLI commands to append to the generated Junos config **Note**: no check is done
155
+ * additional CLI commands to append to the generated Junos config. **Note**: no check is done
146
156
  */
147
157
  additionalConfigCmds?: pulumi.Input<pulumi.Input<string>[]>;
148
158
  dhcpSnooping?: pulumi.Input<inputs.site.NetworktemplateDhcpSnooping>;
159
+ /**
160
+ * if some system-default port usages are not desired - namely, ap / iot / uplink
161
+ */
162
+ disabledSystemDefinedPortUsages?: pulumi.Input<pulumi.Input<string>[]>;
149
163
  /**
150
164
  * Global dns settings. To keep compatibility, dns settings in `ipConfig` and `oobIpConfig` will overwrite this setting
151
165
  */
@@ -191,6 +205,9 @@ export interface NetworktemplateState {
191
205
  portMirroring?: pulumi.Input<{
192
206
  [key: string]: pulumi.Input<inputs.site.NetworktemplatePortMirroring>;
193
207
  }>;
208
+ /**
209
+ * Property key is the port usage name. Defines the profiles of port configuration configured on the switch
210
+ */
194
211
  portUsages?: pulumi.Input<{
195
212
  [key: string]: pulumi.Input<inputs.site.NetworktemplatePortUsages>;
196
213
  }>;
@@ -209,14 +226,13 @@ export interface NetworktemplateState {
209
226
  siteId?: pulumi.Input<string>;
210
227
  snmpConfig?: pulumi.Input<inputs.site.NetworktemplateSnmpConfig>;
211
228
  /**
212
- * Switch template
229
+ * defines custom switch configuration based on different criterias
213
230
  */
214
231
  switchMatching?: pulumi.Input<inputs.site.NetworktemplateSwitchMatching>;
215
232
  /**
216
233
  * Switch settings
217
234
  */
218
235
  switchMgmt?: pulumi.Input<inputs.site.NetworktemplateSwitchMgmt>;
219
- uplinkPortConfig?: pulumi.Input<inputs.site.NetworktemplateUplinkPortConfig>;
220
236
  vrfConfig?: pulumi.Input<inputs.site.NetworktemplateVrfConfig>;
221
237
  /**
222
238
  * Property key is the network name
@@ -237,10 +253,14 @@ export interface NetworktemplateArgs {
237
253
  [key: string]: pulumi.Input<inputs.site.NetworktemplateAclTags>;
238
254
  }>;
239
255
  /**
240
- * additional CLI commands to append to the generated Junos config **Note**: no check is done
256
+ * additional CLI commands to append to the generated Junos config. **Note**: no check is done
241
257
  */
242
258
  additionalConfigCmds?: pulumi.Input<pulumi.Input<string>[]>;
243
259
  dhcpSnooping?: pulumi.Input<inputs.site.NetworktemplateDhcpSnooping>;
260
+ /**
261
+ * if some system-default port usages are not desired - namely, ap / iot / uplink
262
+ */
263
+ disabledSystemDefinedPortUsages?: pulumi.Input<pulumi.Input<string>[]>;
244
264
  /**
245
265
  * Global dns settings. To keep compatibility, dns settings in `ipConfig` and `oobIpConfig` will overwrite this setting
246
266
  */
@@ -286,6 +306,9 @@ export interface NetworktemplateArgs {
286
306
  portMirroring?: pulumi.Input<{
287
307
  [key: string]: pulumi.Input<inputs.site.NetworktemplatePortMirroring>;
288
308
  }>;
309
+ /**
310
+ * Property key is the port usage name. Defines the profiles of port configuration configured on the switch
311
+ */
289
312
  portUsages?: pulumi.Input<{
290
313
  [key: string]: pulumi.Input<inputs.site.NetworktemplatePortUsages>;
291
314
  }>;
@@ -304,14 +327,13 @@ export interface NetworktemplateArgs {
304
327
  siteId: pulumi.Input<string>;
305
328
  snmpConfig?: pulumi.Input<inputs.site.NetworktemplateSnmpConfig>;
306
329
  /**
307
- * Switch template
330
+ * defines custom switch configuration based on different criterias
308
331
  */
309
332
  switchMatching?: pulumi.Input<inputs.site.NetworktemplateSwitchMatching>;
310
333
  /**
311
334
  * Switch settings
312
335
  */
313
336
  switchMgmt?: pulumi.Input<inputs.site.NetworktemplateSwitchMgmt>;
314
- uplinkPortConfig?: pulumi.Input<inputs.site.NetworktemplateUplinkPortConfig>;
315
337
  vrfConfig?: pulumi.Input<inputs.site.NetworktemplateVrfConfig>;
316
338
  /**
317
339
  * Property key is the network name
@@ -9,6 +9,10 @@ const utilities = require("../utilities");
9
9
  * This resource manages the Site Network configuration (Switch configuration).
10
10
  * The Site Network template can be used to override the Org Network template assign to the site, or to configure common switch settings accross the site without having to create an Org Network template.
11
11
  *
12
+ * > When using the Mist APIs, all the switch settings defined at the site level are stored under the site settings with all the rest of the site configuration (`/api/v1/sites/{site_id}/setting` Mist API Endpoint). To simplify this resource, the `junipermist.site.Networktemplate` resource has been created to centralize all the site level switches related settings.
13
+ *
14
+ * !> Only ONE `junipermist.site.Networktemplate` resource can be configured per site. If multiple ones are configured, only the last one defined we be succesfully deployed to Mist
15
+ *
12
16
  * ## Import
13
17
  *
14
18
  * Using `pulumi import`, import `mist_site_networktemplate` with:
@@ -51,6 +55,7 @@ class Networktemplate extends pulumi.CustomResource {
51
55
  resourceInputs["aclTags"] = state ? state.aclTags : undefined;
52
56
  resourceInputs["additionalConfigCmds"] = state ? state.additionalConfigCmds : undefined;
53
57
  resourceInputs["dhcpSnooping"] = state ? state.dhcpSnooping : undefined;
58
+ resourceInputs["disabledSystemDefinedPortUsages"] = state ? state.disabledSystemDefinedPortUsages : undefined;
54
59
  resourceInputs["dnsServers"] = state ? state.dnsServers : undefined;
55
60
  resourceInputs["dnsSuffixes"] = state ? state.dnsSuffixes : undefined;
56
61
  resourceInputs["extraRoutes"] = state ? state.extraRoutes : undefined;
@@ -68,7 +73,6 @@ class Networktemplate extends pulumi.CustomResource {
68
73
  resourceInputs["snmpConfig"] = state ? state.snmpConfig : undefined;
69
74
  resourceInputs["switchMatching"] = state ? state.switchMatching : undefined;
70
75
  resourceInputs["switchMgmt"] = state ? state.switchMgmt : undefined;
71
- resourceInputs["uplinkPortConfig"] = state ? state.uplinkPortConfig : undefined;
72
76
  resourceInputs["vrfConfig"] = state ? state.vrfConfig : undefined;
73
77
  resourceInputs["vrfInstances"] = state ? state.vrfInstances : undefined;
74
78
  }
@@ -81,6 +85,7 @@ class Networktemplate extends pulumi.CustomResource {
81
85
  resourceInputs["aclTags"] = args ? args.aclTags : undefined;
82
86
  resourceInputs["additionalConfigCmds"] = args ? args.additionalConfigCmds : undefined;
83
87
  resourceInputs["dhcpSnooping"] = args ? args.dhcpSnooping : undefined;
88
+ resourceInputs["disabledSystemDefinedPortUsages"] = args ? args.disabledSystemDefinedPortUsages : undefined;
84
89
  resourceInputs["dnsServers"] = args ? args.dnsServers : undefined;
85
90
  resourceInputs["dnsSuffixes"] = args ? args.dnsSuffixes : undefined;
86
91
  resourceInputs["extraRoutes"] = args ? args.extraRoutes : undefined;
@@ -98,7 +103,6 @@ class Networktemplate extends pulumi.CustomResource {
98
103
  resourceInputs["snmpConfig"] = args ? args.snmpConfig : undefined;
99
104
  resourceInputs["switchMatching"] = args ? args.switchMatching : undefined;
100
105
  resourceInputs["switchMgmt"] = args ? args.switchMgmt : undefined;
101
- resourceInputs["uplinkPortConfig"] = args ? args.uplinkPortConfig : undefined;
102
106
  resourceInputs["vrfConfig"] = args ? args.vrfConfig : undefined;
103
107
  resourceInputs["vrfInstances"] = args ? args.vrfInstances : undefined;
104
108
  }
@@ -1 +1 @@
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Ac,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAlLL,0CAmLC;AArKG,gBAAgB;AACO,4BAAY,GAAG,kDAAkD,CAAC"}
package/site/setting.d.ts CHANGED
@@ -5,6 +5,10 @@ import * as outputs from "../types/output";
5
5
  * This resource manages the Site Settings.
6
6
  * The Site Settings can used to customize the Site configuration and assign Site Variables (Sites Variables can be reused in configuration templates)
7
7
  *
8
+ * > When using the Mist APIs, all the switch settings defined at the site level are stored under the site settings with all the rest of the site configuration (`/api/v1/sites/{site_id}/setting` Mist API Endpoint). To simplify this resource, all the site level switches related settings are moved into the `junipermist.site.Networktemplate` resource
9
+ *
10
+ * !> Only ONE `junipermist.site.Setting` resource can be configured per site. If multiple ones are configured, only the last one defined we be succesfully deployed to Mist
11
+ *
8
12
  * ## Import
9
13
  *
10
14
  * Using `pulumi import`, import `mist_site_setting` with:
@@ -63,10 +67,6 @@ export declare class Setting extends pulumi.CustomResource {
63
67
  * is desired, use the following
64
68
  */
65
69
  readonly deviceUpdownThreshold: pulumi.Output<number>;
66
- /**
67
- * if some system-default port usages are not desired - namely, ap / iot / uplink
68
- */
69
- readonly disabledSystemDefinedPortUsages: pulumi.Output<string[] | undefined>;
70
70
  /**
71
71
  * **Note**: if hours does not exist, it’s treated as everyday of the week, 00:00-23:59. Currently we don’t allow
72
72
  * multiple ranges for the same day **Note**: default values for `dwellTags`: passerby (1,300) bounce (301, 14400) engaged
@@ -215,10 +215,6 @@ export interface SettingState {
215
215
  * is desired, use the following
216
216
  */
217
217
  deviceUpdownThreshold?: pulumi.Input<number>;
218
- /**
219
- * if some system-default port usages are not desired - namely, ap / iot / uplink
220
- */
221
- disabledSystemDefinedPortUsages?: pulumi.Input<pulumi.Input<string>[]>;
222
218
  /**
223
219
  * **Note**: if hours does not exist, it’s treated as everyday of the week, 00:00-23:59. Currently we don’t allow
224
220
  * multiple ranges for the same day **Note**: default values for `dwellTags`: passerby (1,300) bounce (301, 14400) engaged
@@ -358,10 +354,6 @@ export interface SettingArgs {
358
354
  * is desired, use the following
359
355
  */
360
356
  deviceUpdownThreshold?: pulumi.Input<number>;
361
- /**
362
- * if some system-default port usages are not desired - namely, ap / iot / uplink
363
- */
364
- disabledSystemDefinedPortUsages?: pulumi.Input<pulumi.Input<string>[]>;
365
357
  /**
366
358
  * **Note**: if hours does not exist, it’s treated as everyday of the week, 00:00-23:59. Currently we don’t allow
367
359
  * multiple ranges for the same day **Note**: default values for `dwellTags`: passerby (1,300) bounce (301, 14400) engaged
package/site/setting.js CHANGED
@@ -9,6 +9,10 @@ const utilities = require("../utilities");
9
9
  * This resource manages the Site Settings.
10
10
  * The Site Settings can used to customize the Site configuration and assign Site Variables (Sites Variables can be reused in configuration templates)
11
11
  *
12
+ * > When using the Mist APIs, all the switch settings defined at the site level are stored under the site settings with all the rest of the site configuration (`/api/v1/sites/{site_id}/setting` Mist API Endpoint). To simplify this resource, all the site level switches related settings are moved into the `junipermist.site.Networktemplate` resource
13
+ *
14
+ * !> Only ONE `junipermist.site.Setting` resource can be configured per site. If multiple ones are configured, only the last one defined we be succesfully deployed to Mist
15
+ *
12
16
  * ## Import
13
17
  *
14
18
  * Using `pulumi import`, import `mist_site_setting` with:
@@ -56,7 +60,6 @@ class Setting extends pulumi.CustomResource {
56
60
  resourceInputs["configPushPolicy"] = state ? state.configPushPolicy : undefined;
57
61
  resourceInputs["criticalUrlMonitoring"] = state ? state.criticalUrlMonitoring : undefined;
58
62
  resourceInputs["deviceUpdownThreshold"] = state ? state.deviceUpdownThreshold : undefined;
59
- resourceInputs["disabledSystemDefinedPortUsages"] = state ? state.disabledSystemDefinedPortUsages : undefined;
60
63
  resourceInputs["engagement"] = state ? state.engagement : undefined;
61
64
  resourceInputs["gatewayMgmt"] = state ? state.gatewayMgmt : undefined;
62
65
  resourceInputs["gatewayUpdownThreshold"] = state ? state.gatewayUpdownThreshold : undefined;
@@ -102,7 +105,6 @@ class Setting extends pulumi.CustomResource {
102
105
  resourceInputs["configPushPolicy"] = args ? args.configPushPolicy : undefined;
103
106
  resourceInputs["criticalUrlMonitoring"] = args ? args.criticalUrlMonitoring : undefined;
104
107
  resourceInputs["deviceUpdownThreshold"] = args ? args.deviceUpdownThreshold : undefined;
105
- resourceInputs["disabledSystemDefinedPortUsages"] = args ? args.disabledSystemDefinedPortUsages : undefined;
106
108
  resourceInputs["engagement"] = args ? args.engagement : undefined;
107
109
  resourceInputs["gatewayMgmt"] = args ? args.gatewayMgmt : undefined;
108
110
  resourceInputs["gatewayUpdownThreshold"] = args ? args.gatewayUpdownThreshold : undefined;