This is rather straight forward: for each object (in correct order), if the object exists in VPP, we can skip it. We know that it will exist only if it was valid (ie correct encapsulation, tc). If it does not exist in VPP, issue the correct creation request to VPP. Implement the creation of all types, in the following order: - create_loopbacks() and create_bvis() - create_bondethernets() - create_vxlan_tunnels() - create_sub_interfaces() first 1-tag, then 2-tag - create_bridgedomains() - create_lcps() bottomsup: first 0-tag, then 1-tag, then 2-tag names. Add a placeholder TODO to fix a bug with prune_sub_interfaces() which should allow for TAPs belonging to LCPs; will fix in followup commit.
33 KiB
33 KiB