Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-2034

Add bridge_domain_allocate l2 api to vpp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 23.02
    • None
    • None
    • None

      As a user of vpp when creating bridge domain interface the bridge domain ID must be specified. This means that this ID must be managed outside of VPP and can cause collision with more clients or api users.

      Beside the existing l2.api function bridge_domain_add_del an allocation function should be added: bridge_domain_allocate.

      /** \brief L2 bridge domain allocation request
          @param client_index - opaque cookie to identify the sender
          @param context - sender context, to match reply w/ request
      @param bd_id - if the id == ~0 vpp allocates an unused id and proceeds as in bridge_domain_add_del
                     if the id != ~0 vpp set the id and proceed as in bridge_domain_add_del
          @param flood - enable/disable bcast/mcast flooding in the bd
          @param uu_flood - enable/disable unknown unicast flood in the bd
          @param forward - enable/disable forwarding on all interfaces in the bd
          @param learn - enable/disable learning on all interfaces in the bd
          @param arp_term - enable/disable arp termination in the bd
          @param arp_ufwd - enable/disable arp unicast forwarding in the bd
          @param mac_age - mac aging time in min, 0 for disabled
      */
      define bridge_domain_allocate
      {
        u32 client_index;
        u32 context;
        u32 bd_id;
        bool flood;
        bool uu_flood;
        bool forward;
        bool learn;
        bool arp_term;
        bool arp_ufwd;
        u8 mac_age;
        string bd_tag[64];
      };
      
      /** \brief L2 bridge domain allocation response
          @param context - sender context, to match reply w/ request
          @param retval - return code for the set bridge flags request
          @param resulting_id - the allocated id for the new bridge domain
      */
      define bridge_domain_allocate_reply
      {
        u32 context;
        i32 retval;
        u32 resulting_id;
      }
      
      

            ljkiraly Laszlo Kiraly
            ljkiraly Laszlo Kiraly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: