1. Packages
  2. Packages
  3. Panos Provider
  4. API Docs
  5. Ospfv3RedistributionRoutingProfile
Viewing docs for panos 2.0.11
published on Tuesday, Apr 28, 2026 by paloaltonetworks
Viewing docs for panos 2.0.11
published on Tuesday, Apr 28, 2026 by paloaltonetworks

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as panos from "@pulumi/panos";
    
    // OSPFv3 Redistribution Profile - Connected Routes
    // This example redistributes directly connected routes into OSPFv3
    // with Type-1 metric, making OSPFv3 prefer these routes based on
    // accumulated cost from the redistributing router
    const connectedRoutes = new panos.Ospfv3RedistributionRoutingProfile("connected_routes", {
        location: {
            template: {
                name: "production-template",
            },
        },
        name: "ospfv3-redistribute-connected",
        connected: {
            enable: true,
            metric: 10,
            metricType: "type-1",
        },
    });
    // OSPFv3 Redistribution Profile - Default Route with Always Option
    // This example advertises a default route into OSPFv3 even if the
    // router doesn't have one in its routing table. The 'always' flag
    // is critical for ensuring default route availability
    const defaultRoute = new panos.Ospfv3RedistributionRoutingProfile("default_route", {
        location: {
            template: {
                name: "production-template",
            },
        },
        name: "ospfv3-default-originate",
        defaultRoute: {
            enable: true,
            always: true,
            metric: 1,
            metricType: "type-1",
        },
    });
    // OSPFv3 Redistribution Profile - Multiple Sources with Route Map
    // This example redistributes multiple route sources (connected, static, BGP)
    // into OSPFv3. BGP routes use a route-map for selective redistribution and
    // metric manipulation, while connected/static use direct metrics
    const multiSource = new panos.Ospfv3RedistributionRoutingProfile("multi_source", {
        location: {
            template: {
                name: "production-template",
            },
        },
        name: "ospfv3-redistribute-all",
        connected: {
            enable: true,
            metric: 10,
            metricType: "type-1",
        },
        static: {
            enable: true,
            metric: 50,
            metricType: "type-2",
        },
        bgp: {
            enable: true,
            routeMap: "bgp-to-ospfv3-filter",
        },
    });
    
    import pulumi
    import pulumi_panos as panos
    
    # OSPFv3 Redistribution Profile - Connected Routes
    # This example redistributes directly connected routes into OSPFv3
    # with Type-1 metric, making OSPFv3 prefer these routes based on
    # accumulated cost from the redistributing router
    connected_routes = panos.Ospfv3RedistributionRoutingProfile("connected_routes",
        location={
            "template": {
                "name": "production-template",
            },
        },
        name="ospfv3-redistribute-connected",
        connected={
            "enable": True,
            "metric": 10,
            "metric_type": "type-1",
        })
    # OSPFv3 Redistribution Profile - Default Route with Always Option
    # This example advertises a default route into OSPFv3 even if the
    # router doesn't have one in its routing table. The 'always' flag
    # is critical for ensuring default route availability
    default_route = panos.Ospfv3RedistributionRoutingProfile("default_route",
        location={
            "template": {
                "name": "production-template",
            },
        },
        name="ospfv3-default-originate",
        default_route={
            "enable": True,
            "always": True,
            "metric": 1,
            "metric_type": "type-1",
        })
    # OSPFv3 Redistribution Profile - Multiple Sources with Route Map
    # This example redistributes multiple route sources (connected, static, BGP)
    # into OSPFv3. BGP routes use a route-map for selective redistribution and
    # metric manipulation, while connected/static use direct metrics
    multi_source = panos.Ospfv3RedistributionRoutingProfile("multi_source",
        location={
            "template": {
                "name": "production-template",
            },
        },
        name="ospfv3-redistribute-all",
        connected={
            "enable": True,
            "metric": 10,
            "metric_type": "type-1",
        },
        static={
            "enable": True,
            "metric": 50,
            "metric_type": "type-2",
        },
        bgp={
            "enable": True,
            "route_map": "bgp-to-ospfv3-filter",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/panos/v2/panos"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// OSPFv3 Redistribution Profile - Connected Routes
    		// This example redistributes directly connected routes into OSPFv3
    		// with Type-1 metric, making OSPFv3 prefer these routes based on
    		// accumulated cost from the redistributing router
    		_, err := panos.NewOspfv3RedistributionRoutingProfile(ctx, "connected_routes", &panos.Ospfv3RedistributionRoutingProfileArgs{
    			Location: &panos.Ospfv3RedistributionRoutingProfileLocationArgs{
    				Template: &panos.Ospfv3RedistributionRoutingProfileLocationTemplateArgs{
    					Name: pulumi.String("production-template"),
    				},
    			},
    			Name: pulumi.String("ospfv3-redistribute-connected"),
    			Connected: &panos.Ospfv3RedistributionRoutingProfileConnectedArgs{
    				Enable:     pulumi.Bool(true),
    				Metric:     pulumi.Float64(10),
    				MetricType: pulumi.String("type-1"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// OSPFv3 Redistribution Profile - Default Route with Always Option
    		// This example advertises a default route into OSPFv3 even if the
    		// router doesn't have one in its routing table. The 'always' flag
    		// is critical for ensuring default route availability
    		_, err = panos.NewOspfv3RedistributionRoutingProfile(ctx, "default_route", &panos.Ospfv3RedistributionRoutingProfileArgs{
    			Location: &panos.Ospfv3RedistributionRoutingProfileLocationArgs{
    				Template: &panos.Ospfv3RedistributionRoutingProfileLocationTemplateArgs{
    					Name: pulumi.String("production-template"),
    				},
    			},
    			Name: pulumi.String("ospfv3-default-originate"),
    			DefaultRoute: &panos.Ospfv3RedistributionRoutingProfileDefaultRouteArgs{
    				Enable:     pulumi.Bool(true),
    				Always:     pulumi.Bool(true),
    				Metric:     pulumi.Float64(1),
    				MetricType: pulumi.String("type-1"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// OSPFv3 Redistribution Profile - Multiple Sources with Route Map
    		// This example redistributes multiple route sources (connected, static, BGP)
    		// into OSPFv3. BGP routes use a route-map for selective redistribution and
    		// metric manipulation, while connected/static use direct metrics
    		_, err = panos.NewOspfv3RedistributionRoutingProfile(ctx, "multi_source", &panos.Ospfv3RedistributionRoutingProfileArgs{
    			Location: &panos.Ospfv3RedistributionRoutingProfileLocationArgs{
    				Template: &panos.Ospfv3RedistributionRoutingProfileLocationTemplateArgs{
    					Name: pulumi.String("production-template"),
    				},
    			},
    			Name: pulumi.String("ospfv3-redistribute-all"),
    			Connected: &panos.Ospfv3RedistributionRoutingProfileConnectedArgs{
    				Enable:     pulumi.Bool(true),
    				Metric:     pulumi.Float64(10),
    				MetricType: pulumi.String("type-1"),
    			},
    			Static: &panos.Ospfv3RedistributionRoutingProfileStaticArgs{
    				Enable:     pulumi.Bool(true),
    				Metric:     pulumi.Float64(50),
    				MetricType: pulumi.String("type-2"),
    			},
    			Bgp: &panos.Ospfv3RedistributionRoutingProfileBgpArgs{
    				Enable:   pulumi.Bool(true),
    				RouteMap: pulumi.String("bgp-to-ospfv3-filter"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Panos = Pulumi.Panos;
    
    return await Deployment.RunAsync(() => 
    {
        // OSPFv3 Redistribution Profile - Connected Routes
        // This example redistributes directly connected routes into OSPFv3
        // with Type-1 metric, making OSPFv3 prefer these routes based on
        // accumulated cost from the redistributing router
        var connectedRoutes = new Panos.Ospfv3RedistributionRoutingProfile("connected_routes", new()
        {
            Location = new Panos.Inputs.Ospfv3RedistributionRoutingProfileLocationArgs
            {
                Template = new Panos.Inputs.Ospfv3RedistributionRoutingProfileLocationTemplateArgs
                {
                    Name = "production-template",
                },
            },
            Name = "ospfv3-redistribute-connected",
            Connected = new Panos.Inputs.Ospfv3RedistributionRoutingProfileConnectedArgs
            {
                Enable = true,
                Metric = 10,
                MetricType = "type-1",
            },
        });
    
        // OSPFv3 Redistribution Profile - Default Route with Always Option
        // This example advertises a default route into OSPFv3 even if the
        // router doesn't have one in its routing table. The 'always' flag
        // is critical for ensuring default route availability
        var defaultRoute = new Panos.Ospfv3RedistributionRoutingProfile("default_route", new()
        {
            Location = new Panos.Inputs.Ospfv3RedistributionRoutingProfileLocationArgs
            {
                Template = new Panos.Inputs.Ospfv3RedistributionRoutingProfileLocationTemplateArgs
                {
                    Name = "production-template",
                },
            },
            Name = "ospfv3-default-originate",
            DefaultRoute = new Panos.Inputs.Ospfv3RedistributionRoutingProfileDefaultRouteArgs
            {
                Enable = true,
                Always = true,
                Metric = 1,
                MetricType = "type-1",
            },
        });
    
        // OSPFv3 Redistribution Profile - Multiple Sources with Route Map
        // This example redistributes multiple route sources (connected, static, BGP)
        // into OSPFv3. BGP routes use a route-map for selective redistribution and
        // metric manipulation, while connected/static use direct metrics
        var multiSource = new Panos.Ospfv3RedistributionRoutingProfile("multi_source", new()
        {
            Location = new Panos.Inputs.Ospfv3RedistributionRoutingProfileLocationArgs
            {
                Template = new Panos.Inputs.Ospfv3RedistributionRoutingProfileLocationTemplateArgs
                {
                    Name = "production-template",
                },
            },
            Name = "ospfv3-redistribute-all",
            Connected = new Panos.Inputs.Ospfv3RedistributionRoutingProfileConnectedArgs
            {
                Enable = true,
                Metric = 10,
                MetricType = "type-1",
            },
            Static = new Panos.Inputs.Ospfv3RedistributionRoutingProfileStaticArgs
            {
                Enable = true,
                Metric = 50,
                MetricType = "type-2",
            },
            Bgp = new Panos.Inputs.Ospfv3RedistributionRoutingProfileBgpArgs
            {
                Enable = true,
                RouteMap = "bgp-to-ospfv3-filter",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.panos.Ospfv3RedistributionRoutingProfile;
    import com.pulumi.panos.Ospfv3RedistributionRoutingProfileArgs;
    import com.pulumi.panos.inputs.Ospfv3RedistributionRoutingProfileLocationArgs;
    import com.pulumi.panos.inputs.Ospfv3RedistributionRoutingProfileLocationTemplateArgs;
    import com.pulumi.panos.inputs.Ospfv3RedistributionRoutingProfileConnectedArgs;
    import com.pulumi.panos.inputs.Ospfv3RedistributionRoutingProfileDefaultRouteArgs;
    import com.pulumi.panos.inputs.Ospfv3RedistributionRoutingProfileStaticArgs;
    import com.pulumi.panos.inputs.Ospfv3RedistributionRoutingProfileBgpArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // OSPFv3 Redistribution Profile - Connected Routes
            // This example redistributes directly connected routes into OSPFv3
            // with Type-1 metric, making OSPFv3 prefer these routes based on
            // accumulated cost from the redistributing router
            var connectedRoutes = new Ospfv3RedistributionRoutingProfile("connectedRoutes", Ospfv3RedistributionRoutingProfileArgs.builder()
                .location(Ospfv3RedistributionRoutingProfileLocationArgs.builder()
                    .template(Ospfv3RedistributionRoutingProfileLocationTemplateArgs.builder()
                        .name("production-template")
                        .build())
                    .build())
                .name("ospfv3-redistribute-connected")
                .connected(Ospfv3RedistributionRoutingProfileConnectedArgs.builder()
                    .enable(true)
                    .metric(10.0)
                    .metricType("type-1")
                    .build())
                .build());
    
            // OSPFv3 Redistribution Profile - Default Route with Always Option
            // This example advertises a default route into OSPFv3 even if the
            // router doesn't have one in its routing table. The 'always' flag
            // is critical for ensuring default route availability
            var defaultRoute = new Ospfv3RedistributionRoutingProfile("defaultRoute", Ospfv3RedistributionRoutingProfileArgs.builder()
                .location(Ospfv3RedistributionRoutingProfileLocationArgs.builder()
                    .template(Ospfv3RedistributionRoutingProfileLocationTemplateArgs.builder()
                        .name("production-template")
                        .build())
                    .build())
                .name("ospfv3-default-originate")
                .defaultRoute(Ospfv3RedistributionRoutingProfileDefaultRouteArgs.builder()
                    .enable(true)
                    .always(true)
                    .metric(1.0)
                    .metricType("type-1")
                    .build())
                .build());
    
            // OSPFv3 Redistribution Profile - Multiple Sources with Route Map
            // This example redistributes multiple route sources (connected, static, BGP)
            // into OSPFv3. BGP routes use a route-map for selective redistribution and
            // metric manipulation, while connected/static use direct metrics
            var multiSource = new Ospfv3RedistributionRoutingProfile("multiSource", Ospfv3RedistributionRoutingProfileArgs.builder()
                .location(Ospfv3RedistributionRoutingProfileLocationArgs.builder()
                    .template(Ospfv3RedistributionRoutingProfileLocationTemplateArgs.builder()
                        .name("production-template")
                        .build())
                    .build())
                .name("ospfv3-redistribute-all")
                .connected(Ospfv3RedistributionRoutingProfileConnectedArgs.builder()
                    .enable(true)
                    .metric(10.0)
                    .metricType("type-1")
                    .build())
                .static_(Ospfv3RedistributionRoutingProfileStaticArgs.builder()
                    .enable(true)
                    .metric(50.0)
                    .metricType("type-2")
                    .build())
                .bgp(Ospfv3RedistributionRoutingProfileBgpArgs.builder()
                    .enable(true)
                    .routeMap("bgp-to-ospfv3-filter")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # OSPFv3 Redistribution Profile - Connected Routes
      # This example redistributes directly connected routes into OSPFv3
      # with Type-1 metric, making OSPFv3 prefer these routes based on
      # accumulated cost from the redistributing router
      connectedRoutes:
        type: panos:Ospfv3RedistributionRoutingProfile
        name: connected_routes
        properties:
          location:
            template:
              name: production-template
          name: ospfv3-redistribute-connected
          connected:
            enable: true
            metric: 10
            metricType: type-1
      # OSPFv3 Redistribution Profile - Default Route with Always Option
      # This example advertises a default route into OSPFv3 even if the
      # router doesn't have one in its routing table. The 'always' flag
      # is critical for ensuring default route availability
      defaultRoute:
        type: panos:Ospfv3RedistributionRoutingProfile
        name: default_route
        properties:
          location:
            template:
              name: production-template
          name: ospfv3-default-originate
          defaultRoute:
            enable: true
            always: true
            metric: 1
            metricType: type-1
      # OSPFv3 Redistribution Profile - Multiple Sources with Route Map
      # This example redistributes multiple route sources (connected, static, BGP)
      # into OSPFv3. BGP routes use a route-map for selective redistribution and
      # metric manipulation, while connected/static use direct metrics
      multiSource:
        type: panos:Ospfv3RedistributionRoutingProfile
        name: multi_source
        properties:
          location:
            template:
              name: production-template
          name: ospfv3-redistribute-all
          connected:
            enable: true
            metric: 10
            metricType: type-1
          static:
            enable: true
            metric: 50
            metricType: type-2
          bgp:
            enable: true
            routeMap: bgp-to-ospfv3-filter
    

    Create Ospfv3RedistributionRoutingProfile Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Ospfv3RedistributionRoutingProfile(name: string, args: Ospfv3RedistributionRoutingProfileArgs, opts?: CustomResourceOptions);
    @overload
    def Ospfv3RedistributionRoutingProfile(resource_name: str,
                                           args: Ospfv3RedistributionRoutingProfileArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ospfv3RedistributionRoutingProfile(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           location: Optional[Ospfv3RedistributionRoutingProfileLocationArgs] = None,
                                           bgp: Optional[Ospfv3RedistributionRoutingProfileBgpArgs] = None,
                                           connected: Optional[Ospfv3RedistributionRoutingProfileConnectedArgs] = None,
                                           default_route: Optional[Ospfv3RedistributionRoutingProfileDefaultRouteArgs] = None,
                                           name: Optional[str] = None,
                                           static: Optional[Ospfv3RedistributionRoutingProfileStaticArgs] = None)
    func NewOspfv3RedistributionRoutingProfile(ctx *Context, name string, args Ospfv3RedistributionRoutingProfileArgs, opts ...ResourceOption) (*Ospfv3RedistributionRoutingProfile, error)
    public Ospfv3RedistributionRoutingProfile(string name, Ospfv3RedistributionRoutingProfileArgs args, CustomResourceOptions? opts = null)
    public Ospfv3RedistributionRoutingProfile(String name, Ospfv3RedistributionRoutingProfileArgs args)
    public Ospfv3RedistributionRoutingProfile(String name, Ospfv3RedistributionRoutingProfileArgs args, CustomResourceOptions options)
    
    type: panos:Ospfv3RedistributionRoutingProfile
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args Ospfv3RedistributionRoutingProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args Ospfv3RedistributionRoutingProfileArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args Ospfv3RedistributionRoutingProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Ospfv3RedistributionRoutingProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Ospfv3RedistributionRoutingProfileArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ospfv3RedistributionRoutingProfileResource = new Panos.Ospfv3RedistributionRoutingProfile("ospfv3RedistributionRoutingProfileResource", new()
    {
        Location = new Panos.Inputs.Ospfv3RedistributionRoutingProfileLocationArgs
        {
            Ngfw = new Panos.Inputs.Ospfv3RedistributionRoutingProfileLocationNgfwArgs
            {
                NgfwDevice = "string",
            },
            Template = new Panos.Inputs.Ospfv3RedistributionRoutingProfileLocationTemplateArgs
            {
                Name = "string",
                NgfwDevice = "string",
                PanoramaDevice = "string",
            },
            TemplateStack = new Panos.Inputs.Ospfv3RedistributionRoutingProfileLocationTemplateStackArgs
            {
                Name = "string",
                NgfwDevice = "string",
                PanoramaDevice = "string",
            },
        },
        Bgp = new Panos.Inputs.Ospfv3RedistributionRoutingProfileBgpArgs
        {
            Enable = false,
            Metric = 0,
            MetricType = "string",
            RouteMap = "string",
        },
        Connected = new Panos.Inputs.Ospfv3RedistributionRoutingProfileConnectedArgs
        {
            Enable = false,
            Metric = 0,
            MetricType = "string",
            RouteMap = "string",
        },
        DefaultRoute = new Panos.Inputs.Ospfv3RedistributionRoutingProfileDefaultRouteArgs
        {
            Always = false,
            Enable = false,
            Metric = 0,
            MetricType = "string",
        },
        Name = "string",
        Static = new Panos.Inputs.Ospfv3RedistributionRoutingProfileStaticArgs
        {
            Enable = false,
            Metric = 0,
            MetricType = "string",
            RouteMap = "string",
        },
    });
    
    example, err := panos.NewOspfv3RedistributionRoutingProfile(ctx, "ospfv3RedistributionRoutingProfileResource", &panos.Ospfv3RedistributionRoutingProfileArgs{
    	Location: &panos.Ospfv3RedistributionRoutingProfileLocationArgs{
    		Ngfw: &panos.Ospfv3RedistributionRoutingProfileLocationNgfwArgs{
    			NgfwDevice: pulumi.String("string"),
    		},
    		Template: &panos.Ospfv3RedistributionRoutingProfileLocationTemplateArgs{
    			Name:           pulumi.String("string"),
    			NgfwDevice:     pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    		},
    		TemplateStack: &panos.Ospfv3RedistributionRoutingProfileLocationTemplateStackArgs{
    			Name:           pulumi.String("string"),
    			NgfwDevice:     pulumi.String("string"),
    			PanoramaDevice: pulumi.String("string"),
    		},
    	},
    	Bgp: &panos.Ospfv3RedistributionRoutingProfileBgpArgs{
    		Enable:     pulumi.Bool(false),
    		Metric:     pulumi.Float64(0),
    		MetricType: pulumi.String("string"),
    		RouteMap:   pulumi.String("string"),
    	},
    	Connected: &panos.Ospfv3RedistributionRoutingProfileConnectedArgs{
    		Enable:     pulumi.Bool(false),
    		Metric:     pulumi.Float64(0),
    		MetricType: pulumi.String("string"),
    		RouteMap:   pulumi.String("string"),
    	},
    	DefaultRoute: &panos.Ospfv3RedistributionRoutingProfileDefaultRouteArgs{
    		Always:     pulumi.Bool(false),
    		Enable:     pulumi.Bool(false),
    		Metric:     pulumi.Float64(0),
    		MetricType: pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	Static: &panos.Ospfv3RedistributionRoutingProfileStaticArgs{
    		Enable:     pulumi.Bool(false),
    		Metric:     pulumi.Float64(0),
    		MetricType: pulumi.String("string"),
    		RouteMap:   pulumi.String("string"),
    	},
    })
    
    var ospfv3RedistributionRoutingProfileResource = new Ospfv3RedistributionRoutingProfile("ospfv3RedistributionRoutingProfileResource", Ospfv3RedistributionRoutingProfileArgs.builder()
        .location(Ospfv3RedistributionRoutingProfileLocationArgs.builder()
            .ngfw(Ospfv3RedistributionRoutingProfileLocationNgfwArgs.builder()
                .ngfwDevice("string")
                .build())
            .template(Ospfv3RedistributionRoutingProfileLocationTemplateArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .panoramaDevice("string")
                .build())
            .templateStack(Ospfv3RedistributionRoutingProfileLocationTemplateStackArgs.builder()
                .name("string")
                .ngfwDevice("string")
                .panoramaDevice("string")
                .build())
            .build())
        .bgp(Ospfv3RedistributionRoutingProfileBgpArgs.builder()
            .enable(false)
            .metric(0.0)
            .metricType("string")
            .routeMap("string")
            .build())
        .connected(Ospfv3RedistributionRoutingProfileConnectedArgs.builder()
            .enable(false)
            .metric(0.0)
            .metricType("string")
            .routeMap("string")
            .build())
        .defaultRoute(Ospfv3RedistributionRoutingProfileDefaultRouteArgs.builder()
            .always(false)
            .enable(false)
            .metric(0.0)
            .metricType("string")
            .build())
        .name("string")
        .static_(Ospfv3RedistributionRoutingProfileStaticArgs.builder()
            .enable(false)
            .metric(0.0)
            .metricType("string")
            .routeMap("string")
            .build())
        .build());
    
    ospfv3_redistribution_routing_profile_resource = panos.Ospfv3RedistributionRoutingProfile("ospfv3RedistributionRoutingProfileResource",
        location={
            "ngfw": {
                "ngfw_device": "string",
            },
            "template": {
                "name": "string",
                "ngfw_device": "string",
                "panorama_device": "string",
            },
            "template_stack": {
                "name": "string",
                "ngfw_device": "string",
                "panorama_device": "string",
            },
        },
        bgp={
            "enable": False,
            "metric": float(0),
            "metric_type": "string",
            "route_map": "string",
        },
        connected={
            "enable": False,
            "metric": float(0),
            "metric_type": "string",
            "route_map": "string",
        },
        default_route={
            "always": False,
            "enable": False,
            "metric": float(0),
            "metric_type": "string",
        },
        name="string",
        static={
            "enable": False,
            "metric": float(0),
            "metric_type": "string",
            "route_map": "string",
        })
    
    const ospfv3RedistributionRoutingProfileResource = new panos.Ospfv3RedistributionRoutingProfile("ospfv3RedistributionRoutingProfileResource", {
        location: {
            ngfw: {
                ngfwDevice: "string",
            },
            template: {
                name: "string",
                ngfwDevice: "string",
                panoramaDevice: "string",
            },
            templateStack: {
                name: "string",
                ngfwDevice: "string",
                panoramaDevice: "string",
            },
        },
        bgp: {
            enable: false,
            metric: 0,
            metricType: "string",
            routeMap: "string",
        },
        connected: {
            enable: false,
            metric: 0,
            metricType: "string",
            routeMap: "string",
        },
        defaultRoute: {
            always: false,
            enable: false,
            metric: 0,
            metricType: "string",
        },
        name: "string",
        static: {
            enable: false,
            metric: 0,
            metricType: "string",
            routeMap: "string",
        },
    });
    
    type: panos:Ospfv3RedistributionRoutingProfile
    properties:
        bgp:
            enable: false
            metric: 0
            metricType: string
            routeMap: string
        connected:
            enable: false
            metric: 0
            metricType: string
            routeMap: string
        defaultRoute:
            always: false
            enable: false
            metric: 0
            metricType: string
        location:
            ngfw:
                ngfwDevice: string
            template:
                name: string
                ngfwDevice: string
                panoramaDevice: string
            templateStack:
                name: string
                ngfwDevice: string
                panoramaDevice: string
        name: string
        static:
            enable: false
            metric: 0
            metricType: string
            routeMap: string
    

    Ospfv3RedistributionRoutingProfile Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Ospfv3RedistributionRoutingProfile resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Ospfv3RedistributionRoutingProfile resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Ospfv3RedistributionRoutingProfile Resource

    Get an existing Ospfv3RedistributionRoutingProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: Ospfv3RedistributionRoutingProfileState, opts?: CustomResourceOptions): Ospfv3RedistributionRoutingProfile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bgp: Optional[Ospfv3RedistributionRoutingProfileBgpArgs] = None,
            connected: Optional[Ospfv3RedistributionRoutingProfileConnectedArgs] = None,
            default_route: Optional[Ospfv3RedistributionRoutingProfileDefaultRouteArgs] = None,
            location: Optional[Ospfv3RedistributionRoutingProfileLocationArgs] = None,
            name: Optional[str] = None,
            static: Optional[Ospfv3RedistributionRoutingProfileStaticArgs] = None) -> Ospfv3RedistributionRoutingProfile
    func GetOspfv3RedistributionRoutingProfile(ctx *Context, name string, id IDInput, state *Ospfv3RedistributionRoutingProfileState, opts ...ResourceOption) (*Ospfv3RedistributionRoutingProfile, error)
    public static Ospfv3RedistributionRoutingProfile Get(string name, Input<string> id, Ospfv3RedistributionRoutingProfileState? state, CustomResourceOptions? opts = null)
    public static Ospfv3RedistributionRoutingProfile get(String name, Output<String> id, Ospfv3RedistributionRoutingProfileState state, CustomResourceOptions options)
    resources:  _:    type: panos:Ospfv3RedistributionRoutingProfile    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:

    Supporting Types

    Ospfv3RedistributionRoutingProfileBgp, Ospfv3RedistributionRoutingProfileBgpArgs

    Enable bool
    Enable (default) or Disable
    Metric double
    Set Metric (Field ignored if route-map configured).
    MetricType string
    Set Metric-Type (Field ignored if route-map configured).
    RouteMap string
    Apply Route-Map on Redistributed Routes
    Enable bool
    Enable (default) or Disable
    Metric float64
    Set Metric (Field ignored if route-map configured).
    MetricType string
    Set Metric-Type (Field ignored if route-map configured).
    RouteMap string
    Apply Route-Map on Redistributed Routes
    enable Boolean
    Enable (default) or Disable
    metric Double
    Set Metric (Field ignored if route-map configured).
    metricType String
    Set Metric-Type (Field ignored if route-map configured).
    routeMap String
    Apply Route-Map on Redistributed Routes
    enable boolean
    Enable (default) or Disable
    metric number
    Set Metric (Field ignored if route-map configured).
    metricType string
    Set Metric-Type (Field ignored if route-map configured).
    routeMap string
    Apply Route-Map on Redistributed Routes
    enable bool
    Enable (default) or Disable
    metric float
    Set Metric (Field ignored if route-map configured).
    metric_type str
    Set Metric-Type (Field ignored if route-map configured).
    route_map str
    Apply Route-Map on Redistributed Routes
    enable Boolean
    Enable (default) or Disable
    metric Number
    Set Metric (Field ignored if route-map configured).
    metricType String
    Set Metric-Type (Field ignored if route-map configured).
    routeMap String
    Apply Route-Map on Redistributed Routes

    Ospfv3RedistributionRoutingProfileConnected, Ospfv3RedistributionRoutingProfileConnectedArgs

    Enable bool
    Metric double
    Set Metric (Field ignored if route-map configured).
    MetricType string
    Set Metric-Type (Field ignored if route-map configured).
    RouteMap string
    Apply Route-Map on Redistributed Routes
    Enable bool
    Metric float64
    Set Metric (Field ignored if route-map configured).
    MetricType string
    Set Metric-Type (Field ignored if route-map configured).
    RouteMap string
    Apply Route-Map on Redistributed Routes
    enable Boolean
    metric Double
    Set Metric (Field ignored if route-map configured).
    metricType String
    Set Metric-Type (Field ignored if route-map configured).
    routeMap String
    Apply Route-Map on Redistributed Routes
    enable boolean
    metric number
    Set Metric (Field ignored if route-map configured).
    metricType string
    Set Metric-Type (Field ignored if route-map configured).
    routeMap string
    Apply Route-Map on Redistributed Routes
    enable bool
    metric float
    Set Metric (Field ignored if route-map configured).
    metric_type str
    Set Metric-Type (Field ignored if route-map configured).
    route_map str
    Apply Route-Map on Redistributed Routes
    enable Boolean
    metric Number
    Set Metric (Field ignored if route-map configured).
    metricType String
    Set Metric-Type (Field ignored if route-map configured).
    routeMap String
    Apply Route-Map on Redistributed Routes

    Ospfv3RedistributionRoutingProfileDefaultRoute, Ospfv3RedistributionRoutingProfileDefaultRouteArgs

    Always bool
    Generate default route if it doesn't exist
    Enable bool
    Enable (default) or Disable
    Metric double
    Set Metric
    MetricType string
    Set Metric-Type
    Always bool
    Generate default route if it doesn't exist
    Enable bool
    Enable (default) or Disable
    Metric float64
    Set Metric
    MetricType string
    Set Metric-Type
    always Boolean
    Generate default route if it doesn't exist
    enable Boolean
    Enable (default) or Disable
    metric Double
    Set Metric
    metricType String
    Set Metric-Type
    always boolean
    Generate default route if it doesn't exist
    enable boolean
    Enable (default) or Disable
    metric number
    Set Metric
    metricType string
    Set Metric-Type
    always bool
    Generate default route if it doesn't exist
    enable bool
    Enable (default) or Disable
    metric float
    Set Metric
    metric_type str
    Set Metric-Type
    always Boolean
    Generate default route if it doesn't exist
    enable Boolean
    Enable (default) or Disable
    metric Number
    Set Metric
    metricType String
    Set Metric-Type

    Ospfv3RedistributionRoutingProfileLocation, Ospfv3RedistributionRoutingProfileLocationArgs

    ngfw Property Map
    Located in a specific NGFW device
    template Property Map
    Located in a specific template
    templateStack Property Map
    Located in a specific template stack

    Ospfv3RedistributionRoutingProfileLocationNgfw, Ospfv3RedistributionRoutingProfileLocationNgfwArgs

    NgfwDevice string
    The NGFW device
    NgfwDevice string
    The NGFW device
    ngfwDevice String
    The NGFW device
    ngfwDevice string
    The NGFW device
    ngfw_device str
    The NGFW device
    ngfwDevice String
    The NGFW device

    Ospfv3RedistributionRoutingProfileLocationTemplate, Ospfv3RedistributionRoutingProfileLocationTemplateArgs

    Name string
    Specific Panorama template
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    Name string
    Specific Panorama template
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    name String
    Specific Panorama template
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device
    name string
    Specific Panorama template
    ngfwDevice string
    The NGFW device
    panoramaDevice string
    Specific Panorama device
    name str
    Specific Panorama template
    ngfw_device str
    The NGFW device
    panorama_device str
    Specific Panorama device
    name String
    Specific Panorama template
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device

    Ospfv3RedistributionRoutingProfileLocationTemplateStack, Ospfv3RedistributionRoutingProfileLocationTemplateStackArgs

    Name string
    Specific Panorama template stack
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    Name string
    Specific Panorama template stack
    NgfwDevice string
    The NGFW device
    PanoramaDevice string
    Specific Panorama device
    name String
    Specific Panorama template stack
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device
    name string
    Specific Panorama template stack
    ngfwDevice string
    The NGFW device
    panoramaDevice string
    Specific Panorama device
    name str
    Specific Panorama template stack
    ngfw_device str
    The NGFW device
    panorama_device str
    Specific Panorama device
    name String
    Specific Panorama template stack
    ngfwDevice String
    The NGFW device
    panoramaDevice String
    Specific Panorama device

    Ospfv3RedistributionRoutingProfileStatic, Ospfv3RedistributionRoutingProfileStaticArgs

    Enable bool
    Metric double
    Set Metric (Field ignored if route-map configured).
    MetricType string
    Set Metric-Type (Field ignored if route-map configured).
    RouteMap string
    Apply Route-Map on Redistributed Routes
    Enable bool
    Metric float64
    Set Metric (Field ignored if route-map configured).
    MetricType string
    Set Metric-Type (Field ignored if route-map configured).
    RouteMap string
    Apply Route-Map on Redistributed Routes
    enable Boolean
    metric Double
    Set Metric (Field ignored if route-map configured).
    metricType String
    Set Metric-Type (Field ignored if route-map configured).
    routeMap String
    Apply Route-Map on Redistributed Routes
    enable boolean
    metric number
    Set Metric (Field ignored if route-map configured).
    metricType string
    Set Metric-Type (Field ignored if route-map configured).
    routeMap string
    Apply Route-Map on Redistributed Routes
    enable bool
    metric float
    Set Metric (Field ignored if route-map configured).
    metric_type str
    Set Metric-Type (Field ignored if route-map configured).
    route_map str
    Apply Route-Map on Redistributed Routes
    enable Boolean
    metric Number
    Set Metric (Field ignored if route-map configured).
    metricType String
    Set Metric-Type (Field ignored if route-map configured).
    routeMap String
    Apply Route-Map on Redistributed Routes

    Import

    #!/bin/bash

    An OSPFv3 redistribution routing profile can be imported by providing a base64 encoded JSON object as the ID

    Import from an NGFW device

    {

    “location”: {

    "ngfw": {
    
      "ngfw_device": "localhost.localdomain"
    
    }
    

    },

    “name”: “ospfv3-redistribute-connected”

    }

    $ pulumi import panos:index/ospfv3RedistributionRoutingProfile:Ospfv3RedistributionRoutingProfile connected_routes $(echo '{"location":{"ngfw":{"ngfw_device":"localhost.localdomain"}},"name":"ospfv3-redistribute-connected"}' | base64)
    

    Import from a Panorama template

    {

    “location”: {

    "template": {
    
      "name": "production-template",
    
      "panorama_device": "localhost.localdomain",
    
      "ngfw_device": "localhost.localdomain"
    
    }
    

    },

    “name”: “ospfv3-redistribute-connected”

    }

    $ pulumi import panos:index/ospfv3RedistributionRoutingProfile:Ospfv3RedistributionRoutingProfile connected_routes $(echo '{"location":{"template":{"name":"production-template","panorama_device":"localhost.localdomain","ngfw_device":"localhost.localdomain"}},"name":"ospfv3-redistribute-connected"}' | base64)
    

    Import from a Panorama template stack

    {

    “location”: {

    "template_stack": {
    
      "name": "production-stack",
    
      "panorama_device": "localhost.localdomain",
    
      "ngfw_device": "localhost.localdomain"
    
    }
    

    },

    “name”: “ospfv3-redistribute-connected”

    }

    $ pulumi import panos:index/ospfv3RedistributionRoutingProfile:Ospfv3RedistributionRoutingProfile connected_routes $(echo '{"location":{"template_stack":{"name":"production-stack","panorama_device":"localhost.localdomain","ngfw_device":"localhost.localdomain"}},"name":"ospfv3-redistribute-connected"}' | base64)
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    panos paloaltonetworks/terraform-provider-panos
    License
    Notes
    This Pulumi package is based on the panos Terraform Provider.
    Viewing docs for panos 2.0.11
    published on Tuesday, Apr 28, 2026 by paloaltonetworks
      Try Pulumi Cloud free. Your team will thank you.