Skip to content

Commit

Permalink
doc: fix: fixed lists in configurator tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgeorge309 committed Jan 15, 2024
1 parent 109fd67 commit 49c0a92
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions tutorials/configurator/doc/step6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,11 @@ static routing table configuration. If no ``<autoroute>`` element is
specified, the configurator assumes a default that affects all routing
tables in the network, and computes shortest paths to all interfaces
according to the hop count metric. The ``<autoroute>`` element can
contain the following attributes: - ``sourceHosts``: Selector attribute
that selects which hosts' routing tables should be modified. The default
value is ``"**"``. - ``destinationInterfaces``: Parameter attribute that
selects destination interfaces for which the shortest paths will be
calculated. The default value is ``"**"``. - ``metric``: Parameter
attribute that sets the metric to be used when calculating shortest
paths. The default value is ``"hopCount"``.
contain the following attributes:

- ``sourceHosts``: Selector attribute that selects which hosts' routing tables should be modified. The default value is ``"**"``.
- ``destinationInterfaces``: Parameter attribute that selects destination interfaces for which the shortest paths will be calculated. The default value is ``"**"``.
- ``metric``: Parameter attribute that sets the metric to be used when calculating shortest paths. The default value is ``"hopCount"``.

There are sub-elements available in ``<autoroute>``, which will be
discussed in Part B.
Expand Down Expand Up @@ -171,14 +169,10 @@ The XML configuration in step6b.xml is as follows:
:language: xml

The ``<autoroute>`` elements can also contain the following optional
sub-elements, which can be used to specify costs in the graph: -
``<node>``: Specifies cost parameters to network nodes. The ``hosts``
selector attribute selects which hosts are affected, and the ``cost``
parameter sets their costs. Both attributes are mandatory. - ``<link>``:
Specifies cost parameters to network links. The ``interfaces`` selector
attribute selects which links are affected, by specifying an interface
they belong to. The ``cost`` parameter sets the cost. Both attributes
are mandatory.
sub-elements, which can be used to specify costs in the graph:

- ``<node>``: Specifies cost parameters to network nodes. The ``hosts`` selector attribute selects which hosts are affected, and the ``cost`` parameter sets their costs. Both attributes are mandatory.
- ``<link>``: Specifies cost parameters to network links. The ``interfaces`` selector attribute selects which links are affected, by specifying an interface they belong to. The ``cost`` parameter sets the cost. Both attributes are mandatory.

This XML configuration specifies the metric to be hop count and sets
the cost of ``router0``'s eth2 interface to infinite. This affects the
Expand Down

0 comments on commit 49c0a92

Please sign in to comment.