original_docstring: Ensure a BVI loopback interface for the bridge.
docstring: Ensure a BVI loopback interface for the bridge.
docstring_tokens: Ensure a BVI loopback interface for the bridge .
code: def ensure_bridge_bvi(self,
                            bridge_idx: vpp.br_idx_t,
                            mac_address: vpp.mac_str_t = None) -> vpp.if_idx_t:
          """Ensure a BVI loopback interface for the bridge."""
          bvi_if_idx = self.vpp.get_bridge_bvi(bridge_idx)
          if not bvi_if_idx:
              bvi_if_idx = self.vpp.create_loopback(mac_address)
              self.vpp.set_loopback_bridge_bvi(bvi_if_idx, bridge_idx)
          return bvi_if_idx
code_tokens: def ensure_bridge_bvi ( self , bridge_idx : vpp . br_idx_t , mac_address : vpp . mac_str_t = None ) -> vpp . if_idx_t : bvi_if_idx = self . vpp . get_bridge_bvi ( bridge_idx ) if not bvi_if_idx : bvi_if_idx = self . vpp . create_loopback ( mac_address ) self . vpp . set_loopback_bridge_bvi ( bvi_if_idx , bridge_idx ) return bvi_if_idx
short_docstring: Ensure a BVI loopback interface for the bridge.
short_docstring_tokens: Ensure a BVI loopback interface for the bridge .
comment: """Ensure a BVI loopback interface for the bridge."""