Skip to content

Commit

Permalink
OSPF: Allow global/node default setting of ospf.passive (default: Fal…
Browse files Browse the repository at this point in the history
…se) (#1614)
  • Loading branch information
jbemmel authored Dec 5, 2024
1 parent af1ab99 commit c955952
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/module/ospf.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ OSPF routing daemons support these interface-level features:

* **ospf.reference_bandwidth** sets the OSPF auto-cost reference bandwidth (in Mbps) for all devices in the network.
* **ospf.bfd.strict** enables RFC9355 BFD Strict-Mode (default: False)
* **ospf.passive** sets the global default for passive interfaces (default: False)

## Node Parameters

Expand All @@ -155,6 +156,7 @@ OSPF routing daemons support these interface-level features:
* **ospf.bfd** -- enable BFD for OSPF (default: False)
* **ospf.import** -- [import (redistribute) routes](routing_import) into the global OSPF instance. By default, no routes are redistributed into the global OSPF instance.
* **ospf.router_id** -- set [static router ID](routing_router_id).
* **ospf.passive** -- node-level default for passive interfaces (default: False)

You can specify most node parameters as global values (top-level topology elements) or within individual nodes (see [example](#example) for details).

Expand Down
4 changes: 3 additions & 1 deletion netsim/modules/ospf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ attributes:
ipv4: bool
ipv6: bool
area: { type: ipv4, use: id }
passive: bool
process: { type: int, min_value: 1 }
reference_bandwidth: { type: int, min_value: 1 }
bfd:
Expand All @@ -23,6 +24,7 @@ attributes:
node:
af:
area:
passive:
process:
reference_bandwidth:
bfd:
Expand All @@ -37,7 +39,7 @@ attributes:
cost: int
type: { type: str, valid_values: [ e1, e2 ] }

node_copy: [ area ]
node_copy: [ area, passive ]
vrf_aware: [ area ]
vrf_copy: [ area, router_id, reference_bandwidth ]
vrf:
Expand Down

0 comments on commit c955952

Please sign in to comment.