Commit Graph

13 Commits

Author SHA1 Message Date
Pim van Pelt d6e3496809 Add TAP syntax/semantic validator 2022-04-09 19:56:48 +00:00
Pim van Pelt 2360d28d0a Add the ability to set any mode/lb on bonds
This requires a schema change, adding 'mode' and 'load-balance' fields,
a semantic invariant that 'load-balance' can only be set in the case of
LACP and XOR bonds, a mapper from the mode/lb strings, ie.
"round-robin" to their VPP numeric counterparts, a bunch of unit tests.

Then in the reconciler, changing bonds (__bond_has_diff()) will
invalidate any LCP or sub-interfaces built on them, so those will have
to be pruned. create_bondethernet() will now create (or re-create)
the bond with the correct flags.

Unit-tests, YAML tests and the integration test all pass.

Updated config-guide.
2022-04-05 15:05:03 +00:00
Pim van Pelt fdb732142a Add bridgedomain settings.
Bridges can be created with default settings, with specific settings,
and they can be sync'd at runtime with all of the settings in this
change.

Notably missing are two features:
- unknown unicast flooding into specific interfaces (as opposed to
  on/off on the bridge)
- learn-limit, which does not have an API getter, only a setter.
2022-04-05 12:01:13 +00:00
Pim van Pelt b461ef49bb Add 'state' field to interfaces and sub-interfaces
Assert that children cannot be 'up' of their parent is 'down'. Add tests. Update user-guide.
2022-04-05 11:06:33 +00:00
Pim van Pelt 593ffed772 Clarify the encap is optional 2022-04-03 15:03:10 +00:00
Pim van Pelt 196e09b2d2 Add interface/sub-interface config documentation 2022-04-03 15:01:28 +00:00
Pim van Pelt dc3fb57274 Add config documentation for VXLAN tunnels 2022-04-03 14:46:59 +00:00
Pim van Pelt 79f41d447d Add caveat on bridgedomain configurability 2022-04-03 14:29:35 +00:00
Pim van Pelt dc0d785818 Add example.yaml reference 2022-04-03 14:22:31 +00:00
Pim van Pelt e25f73db9c Add BondEthernet documentation, with a caveat on its restrictive types 2022-04-03 14:20:30 +00:00
Pim van Pelt 15daa65c0b Add bridgedomain config structure 2022-04-03 13:58:45 +00:00
Pim van Pelt 1b13ab7c0c Add a first piece of explanation on the YAML config structure 2022-04-03 13:41:56 +00:00
Pim van Pelt ef475a200a Move docs into their own directory 2022-04-03 12:03:55 +00:00