OSPFv3 can automatically calculate the link cost for an interface according to the interface bandwidth. You can also set the link cost for the interface by using the related command.
You can control route calculation by setting the link cost of OSPFv3 on different interfaces.
interface interface-type interface-number
ospfv3 cost cost [ instance instance-id ]
By default, the cost value of the OSPFv3 interface is 1.