code: func (i *bridgeInterface) addresses() ([]netlink.Addr, []netlink.Addr, error) {
  	v4addr, err := i.nlh.AddrList(i.Link, netlink.FAMILY_V4)
  	if err != nil {
  		return nil, nil, fmt.Errorf("Failed to retrieve V4 addresses: %v", err)
  	}
  
  	v6addr, err := i.nlh.AddrList(i.Link, netlink.FAMILY_V6)
  	if err != nil {
  		return nil, nil, fmt.Errorf("Failed to retrieve V6 addresses: %v", err)
  	}
  
  	if len(v4addr) == 0 {
  		return nil, v6addr, nil
  	}
  	return v4addr, v6addr, nil
  }
docs: // addresses returns all IPv4 addresses and all IPv6 addresses for the bridge interface.