@pulumiverse/fortios
Version:
A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0
169 lines • 8.16 kB
JavaScript
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ospf6 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Configure IPv6 OSPF.
*
* > The provider supports the definition of Ospf6-Interface in Router Ospf6 `fortios.router.Ospf6`, and also allows the definition of separate Ospf6-Interface resources `fortios.router/ospf6.Ospf6interface`, but do not use a `fortios.router.Ospf6` with in-line Ospf6-Interface in conjunction with any `fortios.router/ospf6.Ospf6interface` resources, otherwise conflicts and overwrite will occur.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as fortios from "@pulumiverse/fortios";
*
* const trname = new fortios.router.Ospf6("trname", {
* abrType: "standard",
* autoCostRefBandwidth: 1000,
* bfd: "disable",
* defaultInformationMetric: 10,
* defaultInformationMetricType: "2",
* defaultInformationOriginate: "disable",
* defaultMetric: 10,
* logNeighbourChanges: "enable",
* redistributes: [
* {
* metric: 0,
* metricType: "2",
* name: "connected",
* status: "disable",
* },
* {
* metric: 0,
* metricType: "2",
* name: "static",
* status: "disable",
* },
* {
* metric: 0,
* metricType: "2",
* name: "rip",
* status: "disable",
* },
* {
* metric: 0,
* metricType: "2",
* name: "bgp",
* status: "disable",
* },
* {
* metric: 0,
* metricType: "2",
* name: "isis",
* status: "disable",
* },
* ],
* routerId: "0.0.0.0",
* spfTimers: "5 10",
* });
* ```
*
* ## Import
*
* Router Ospf6 can be imported using any of these accepted formats:
*
* ```sh
* $ pulumi import fortios:router/ospf6:Ospf6 labelname RouterOspf6
* ```
*
* If you do not want to import arguments of block:
*
* $ export "FORTIOS_IMPORT_TABLE"="false"
*
* ```sh
* $ pulumi import fortios:router/ospf6:Ospf6 labelname RouterOspf6
* ```
*
* $ unset "FORTIOS_IMPORT_TABLE"
*/
class Ospf6 extends pulumi.CustomResource {
/**
* Get an existing Ospf6 resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new Ospf6(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Ospf6. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === Ospf6.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["abrType"] = state ? state.abrType : undefined;
resourceInputs["areas"] = state ? state.areas : undefined;
resourceInputs["autoCostRefBandwidth"] = state ? state.autoCostRefBandwidth : undefined;
resourceInputs["bfd"] = state ? state.bfd : undefined;
resourceInputs["defaultInformationMetric"] = state ? state.defaultInformationMetric : undefined;
resourceInputs["defaultInformationMetricType"] = state ? state.defaultInformationMetricType : undefined;
resourceInputs["defaultInformationOriginate"] = state ? state.defaultInformationOriginate : undefined;
resourceInputs["defaultInformationRouteMap"] = state ? state.defaultInformationRouteMap : undefined;
resourceInputs["defaultMetric"] = state ? state.defaultMetric : undefined;
resourceInputs["dynamicSortSubtable"] = state ? state.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = state ? state.getAllTables : undefined;
resourceInputs["logNeighbourChanges"] = state ? state.logNeighbourChanges : undefined;
resourceInputs["ospf6Interfaces"] = state ? state.ospf6Interfaces : undefined;
resourceInputs["passiveInterfaces"] = state ? state.passiveInterfaces : undefined;
resourceInputs["redistributes"] = state ? state.redistributes : undefined;
resourceInputs["restartMode"] = state ? state.restartMode : undefined;
resourceInputs["restartOnTopologyChange"] = state ? state.restartOnTopologyChange : undefined;
resourceInputs["restartPeriod"] = state ? state.restartPeriod : undefined;
resourceInputs["routerId"] = state ? state.routerId : undefined;
resourceInputs["spfTimers"] = state ? state.spfTimers : undefined;
resourceInputs["summaryAddresses"] = state ? state.summaryAddresses : undefined;
resourceInputs["vdomparam"] = state ? state.vdomparam : undefined;
}
else {
const args = argsOrState;
if ((!args || args.routerId === undefined) && !opts.urn) {
throw new Error("Missing required property 'routerId'");
}
resourceInputs["abrType"] = args ? args.abrType : undefined;
resourceInputs["areas"] = args ? args.areas : undefined;
resourceInputs["autoCostRefBandwidth"] = args ? args.autoCostRefBandwidth : undefined;
resourceInputs["bfd"] = args ? args.bfd : undefined;
resourceInputs["defaultInformationMetric"] = args ? args.defaultInformationMetric : undefined;
resourceInputs["defaultInformationMetricType"] = args ? args.defaultInformationMetricType : undefined;
resourceInputs["defaultInformationOriginate"] = args ? args.defaultInformationOriginate : undefined;
resourceInputs["defaultInformationRouteMap"] = args ? args.defaultInformationRouteMap : undefined;
resourceInputs["defaultMetric"] = args ? args.defaultMetric : undefined;
resourceInputs["dynamicSortSubtable"] = args ? args.dynamicSortSubtable : undefined;
resourceInputs["getAllTables"] = args ? args.getAllTables : undefined;
resourceInputs["logNeighbourChanges"] = args ? args.logNeighbourChanges : undefined;
resourceInputs["ospf6Interfaces"] = args ? args.ospf6Interfaces : undefined;
resourceInputs["passiveInterfaces"] = args ? args.passiveInterfaces : undefined;
resourceInputs["redistributes"] = args ? args.redistributes : undefined;
resourceInputs["restartMode"] = args ? args.restartMode : undefined;
resourceInputs["restartOnTopologyChange"] = args ? args.restartOnTopologyChange : undefined;
resourceInputs["restartPeriod"] = args ? args.restartPeriod : undefined;
resourceInputs["routerId"] = args ? args.routerId : undefined;
resourceInputs["spfTimers"] = args ? args.spfTimers : undefined;
resourceInputs["summaryAddresses"] = args ? args.summaryAddresses : undefined;
resourceInputs["vdomparam"] = args ? args.vdomparam : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Ospf6.__pulumiType, name, resourceInputs, opts);
}
}
exports.Ospf6 = Ospf6;
/** @internal */
Ospf6.__pulumiType = 'fortios:router/ospf6:Ospf6';
//# sourceMappingURL=ospf6.js.map
;